[MacPorts] #66715: pkgconfig @0.29.2 (devel) Should pkgconfig not look in /opt/local/lib/pkgconfig by default?

MacPorts noreply at macports.org
Tue Jan 31 11:45:38 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     |
---------------------------+------------------------

Comment (by MarcKaufmann):

 Sorry for the late reply, I missed yours. I have now commented out the
 setting of PKG_CONFIG_PATH in my .zprofile, logged out and back in, and it
 seems unset. And now it seems to work:

 {{{
 % echo $PKG_CONFIG_PATH
 % 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
 }}}

 The other command also seems to work (I should have included it in my
 message above, but I think the following did not work):

 {{{
 % pkg-config harfbuzz --cflags
 -I/opt/local/include/harfbuzz -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16
 -I/opt/local/include
 }}}

 Not sure what happened or if the first time it found it it (re)set
 something that got it into a working order? Thanks for the reply, if there
 is something else I can do to investigate, let me know.

-- 
Ticket URL: <https://trac.macports.org/ticket/66715#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list