Comment 33 for bug 336634

Revision history for this message
In , Rex (rex-redhat-bugs) wrote :

Using pkg-config-0.21 given /usr/lib/pkgconfig/foo.pc
containing:

##############
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: foo
Description: fof Library
Version: 1.0
Requires.private: bar
Cflags: -I${includedir}
Libs: -L${libdir} -lfoo
##################

$ pkg-config --libs foo
Package bar was not found in the pkg-config search path.
Perhaps you should add the directory containing `bar.pc'
to the PKG_CONFIG_PATH environment variable
Package 'bar', required by 'foo', not found

Libs.private and Requires.private should be ignored and not be used when/if one
doesn't use
$ pkg-config --static

This has been reported upstream:
https://bugs.freedesktop.org/show_bug.cgi?id=4738
with patch supplied (testing that now myself to confirm it works as advertised).

Please consider including this patch, as it fixes a few concrete examples of
brokenness, in particular,
$ yum remove libXext-devel
$ yum install libXmu-devel
$ pkgconfig --libs Xmu
Package xext was not found in the pkg-config search path.
Perhaps you should add the directory containing `xext.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xext', required by 'Xmu', not found
since xmu.pc contains:
Requires.private: ... xext