[MacPorts] #66715: pkgconfig @0.29.2 (devel) Should pkgconfig not look in /opt/local/lib/pkgconfig by default?
MacPorts
noreply at macports.org
Wed Jan 18 13:41:06 UTC 2023
#66715: pkgconfig @0.29.2 (devel) Should pkgconfig not look in
/opt/local/lib/pkgconfig by default?
---------------------------+------------------------
Reporter: MarcKaufmann | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: pkgconfig |
---------------------------+------------------------
Changes (by jmroot):
* status: new => assigned
* cc: ryandesign (removed)
* owner: (none) => ryandesign
Comment:
The pkgconfig Portfile configures the default search path thus:
{{{
--with-pc-path=${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig
}}}
and it seems to work:
{{{
% pkg-config --debug --exists zlib
Error printing disabled by default due to use of output options --exists,
--atleast/exact/max-version, --list-all or no output option at all. Value
of --print-errors: 0
Error printing disabled
Adding virtual 'pkg-config' package to list of known packages
Looking for package 'zlib'
Looking for package 'zlib-uninstalled'
Reading 'zlib' from file '/opt/local/lib/pkgconfig/zlib.pc'
Parsing package file '/opt/local/lib/pkgconfig/zlib.pc'
line>prefix=/opt/local
Variable declaration, 'prefix' has value '/opt/local'
line>exec_prefix=${prefix}
Variable declaration, 'exec_prefix' has value '/opt/local'
line>libdir=${exec_prefix}/lib
Variable declaration, 'libdir' has value '/opt/local/lib'
line>sharedlibdir=${libdir}
Variable declaration, 'sharedlibdir' has value '/opt/local/lib'
line>includedir=${prefix}/include
Variable declaration, 'includedir' has value '/opt/local/include'
line>
line>Name: zlib
line>Description: zlib compression library
line>Version: 1.2.13
line>
line>Requires:
line>Libs: -L${libdir} -L${sharedlibdir} -lz
line>Cflags: -I${includedir}
Path position of 'zlib' is 1
Adding 'zlib' to list of known packages
}}}
You could try running something like the above command without
`PKG_CONFIG_PATH` set to see what's going on?
--
Ticket URL: <https://trac.macports.org/ticket/66715#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list