[MacPorts] #72151: neomutt @20240329 -doc: Error: No usable pkg-config
MacPorts
noreply at macports.org
Fri Mar 7 13:11:31 UTC 2025
#72151: neomutt @20240329 -doc: Error: No usable pkg-config
------------------------+----------------------
Reporter: kprussing | Owner: l2dy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: neomutt |
------------------------+----------------------
Comment (by kprussing):
I decided to go to the source and see if it might be some oddity in
neomutt directly. I cloned the upstream repo and tried to configure off
the latest main branch, but I appear to be getting the same error. I
tried
{{{
% PKG_CONFIG=`which pkg-config` ./configure --prefix=/opt/local --disable-
doc --with-ncurses=/opt/local --with-nls=/opt/local --lz4 --with-
ssl=/opt/local --with-zlib=/opt/local --zstd --gpgme --with-
idn2=/opt/local
<snip>
Checking for pkg-config.../opt/local/bin/pkg-config (not found)
Error: No usable pkg-config
}}}
Which is the same error when building the port.
I took a look in the autosetup directory and found autosetup/pkg-
config.tcl which has a check in `pkg-config-init` that appears to run
`pkg-config --version`. When I run that in the terminal I get 0.29.2 with
no problem. However, I modified the pkg-config.tcl to print the contents
of the `$version`:
{{{
diff --git a/autosetup/pkg-config.tcl b/autosetup/pkg-config.tcl
index 9ce7111f5..2d6e433ff 100644
--- a/autosetup/pkg-config.tcl
+++ b/autosetup/pkg-config.tcl
@@ -40,6 +40,7 @@ proc pkg-config-init {{required 1}} {
if {[catch {exec [get-define PKG_CONFIG] --version} version]} {
msg-result "[get-define PKG_CONFIG] (not found)"
+ msg-result "version: $version"
if {$required} {
user-error "No usable pkg-config"
}
}}}
Rerunning `./configure` I now see the output contains {{{version: couldn't
create error file for command: permission denied}}}. I am not familiar
with tcl so this could well be another red herring.
--
Ticket URL: <https://trac.macports.org/ticket/72151#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list