On 12/16/2009 03:00 PM, [email protected] wrote:
> Hi guys:
> Thank you very much for your comments.
>
> NO error, meaning that the default is brought into play sometime
> (who knows when), AFTER the first component, /usr/share/pkgconfig/,
> is searched! Who would've thunk it!
> In direct contradiction with the manual - Excerpt:
>
> << By default, pkg-config looks in the directory
> prefix/lib/pkgconfig for these files; it will
> ALSO (my emphasis) look in the colon-separated
> list of directories specified by the
> PKG_CONFIG_PATH environment variable.>>
>
There is no contradiction. It looks in both ${prefix}/lib/pkgconfig
*and* ${prefix}/share/pkgconfig...granted, as mentioned before, the
"share" part is not really clear from the manpage, but it *is* there,
sorta (it says ${datadir}/pkgconfig, and ${datadir} is usually
/usr/share). Apparently, as you describe in a later message, your
problem is that you have 2 different versions of Xtrans installed - one
puts a .pc file in /usr/lib/pkgconfig, and the other into
/usr/share/pkgconfig. The problem is simply that /usr/lib/pkgconfig is
searched *first*. /usr/share/pkgconfig *will* be searched by default,
but only if the appropriate .pc file is *not* found in
/usr/lib/pkgconfig. The excerpt from the manpage that you pasted above
is simply a general description. If you look more closely at the
manpage, specifically the section describing PKG_CONFIG_PATH, it
specifies the exact order in which directories are searched...
PKG_CONFIG_PATH
A colon-separated (on Windows, semicolon-separated)
list of directories to search for .pc files. The default directory
will always be searched after searching the path; the default is
libdir/pkgconfig:datadir/pkgconfig where libdir is the libdir where
pkg-config and datadir is the datadir where pkg-config was installed.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page