[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:17:04 UTC 2023


#66715: pkgconfig @0.29.2 (devel) Should pkgconfig not look in
/opt/local/lib/pkgconfig by default?
--------------------------+-----------------------
 Reporter:  MarcKaufmann  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:
 Keywords:                |       Port:  pkgconfig
--------------------------+-----------------------
 I had a problem installing some package for R from source, since pkg-
 config did not find an installed library (harfbuzz), with the harfbuzz.pc
 file being in /opt/local/lib/pkgconfig. I have now set the PKG_CONFIG_PATH
 environment variable in my .zprofile:

 {{{
 export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH"
 }}}

 While this works (harfbuzz.pc is now found), I am surprised that pkg-
 config does not look in this folder by default. If this is not the case,
 shouldn't there be some instructions to set the environment variable as
 above -- or is that not the right way to do it either? Since it is the
 first time that I found out about the existence of pkg-config, it is
 possible that I misunderstand its use, or an error may have occurred
 somewhere else that caused this.

 I am on an M1, Ventura 13.0.1.

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


More information about the macports-tickets mailing list