[PATCH] util-macros: Addition of a meta data file xorg-macros.pc.in used by XORG_INSTALL

Carl Worth cworth at cworth.org
Wed Dec 2 08:07:56 PST 2009


On Tue, 01 Dec 2009 20:57:42 -0800, Alan Coopersmith <Alan.Coopersmith at Sun.COM> wrote:
> Carl Worth wrote:
> > I assumed that *must* have been a mistake and changed it, but now I see
> > it was intentional. Can someone explain to me the intent here? So far
> > I'm not seeing much more than "make everyone update their build
> > environment to add $(prefix)/share/pkgconfig to PKG_CONFIG_PATH).
> > 
> > Can someone tell me how this is actually helpful?
> 
> http://lists.freedesktop.org/archives/xorg-devel/2009-September/002226.html
> http://lists.freedesktop.org/archives/xorg-devel/2009-September/002268.html
> http://lists.freedesktop.org/archives/xorg-devel/2009-September/002281.html

Hi Alan,

Thanks for the link, but I still don't understand the issue.

What does the following even mean?

	pkg-config does not look for .pc in /usr/lib/pkg-config during
	cross-compilation to avoid picking up wrong libraries.

I'm sure I'm just being dense, but can someone please show me the
scenario in which a pkg-config file must be in ${prefix}/share/pkgconfig
in order for a build to work? I've not seen any documentation about
pkgconfig not looking into lib/pkgconfig in any situation, (and I can't
imagine scenarios where builds would be functional if most of the .pc
files were hidden from pkg-config).

And even were that required, is moving things from lib/pkgconfig to
share/pkgconfig even the right thing? I'd frankly be happier with just
installing the files into *both* places for the cases like this.

My big concern is with making the build even more fragile than it
already is. We already have lots of documentation teaching people to add
${prefix}/lib/pkgconfig to PKG_CONFIG_PATH and I've not ever seen
documentation telling people to add ${prefix}/share/pkgconfig as
well. So the change makes a lot of existing instructions stop working.

-Carl

PS. I've always wished that pkg-config could accept a list of prefixes
rather than a list of directories containing .pc files. And if it did
that, then it could look into both lib/pkgconfig and share/pkgconfig for
each prefix if it really wanted to.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20091202/20538014/attachment.pgp 


More information about the xorg-devel mailing list