Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#9445 - pkg-config path

Attached to Project: Arch Linux
Opened by DaNiMoTh (DaNiMoTh) - Saturday, 02 February 2008, 17:39 GMT
Last edited by Aaron Griffin (phrakture) - Monday, 16 February 2009, 05:30 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
With the actually configuration, default PKG_CONFIG_PATH isn't set; so, the first script in /etc/profile.d will use export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:some_others_path will have $PKG_CONFIG_PATH empty, that result in
echo $PKG_CONFIG_PATH
:some_others_path
It isn't a bug, but we know that default dir for pkgconfig file is /usr/lib/pkgconfig; if you see man of pkg-config, in the Environment variables, in the PKG_CONFIG_PATH description would see: "..The default directory will always be searched after searching the path". So, if we have two identical entries in /usr/lib/pkgconfig or /elsewhere/pkgconfig, the /elsewhere/pkgconfig entries will be read as first. And we don't want this, because default location is /usr/lib/pkgconfig ( I think that /elsewhere/pkgconfig entries, with the same name of /usr/lib/pkgconfig is created erroneously by some malformed PKGBUILD)

As Roman said, imho best solution is set in /etc/profile the PKG_CONFIG_PATH, by default as /usr/lib/pkgconfig.
This task depends upon

Closed by  Aaron Griffin (phrakture)
Monday, 16 February 2009, 05:30 GMT
Reason for closing:  Fixed
Comment by Aaron Griffin (phrakture) - Monday, 06 October 2008, 00:00 GMT
Committed changes to svn trunk
Comment by Glenn Matthys (RedShift) - Friday, 05 December 2008, 14:45 GMT
What's the status of this issue?
Comment by Alessandro Doro (adoroo) - Sunday, 15 February 2009, 19:54 GMT
It seems fixed with /etc/profile in filesystem 2009.01-1.

# Export default pkg-config path
PKG_CONFIG_PATH="/usr/lib/pkgconfig"
export PKG_CONFIG_PATH

Loading...