[PATCH] Move xtrans.pc to /usr/share/pkg-config

Dan Nicholson dbn.lists at gmail.com
Tue Sep 29 06:40:29 PDT 2009


On Mon, Sep 28, 2009 at 9:19 AM, Alan Coopersmith
<Alan.Coopersmith at sun.com> wrote:
> Mikhail Gusarov wrote:
>> Twas brillig at 04:39:20 26.09.2009 UTC+07 when dottedmag at dottedmag.net did gyre and gimble:
>>
>>  MG> This fixes configuration in cross-compilation mode:
>>
>> Whoops. This was a patch for libxt, sorry for not making it clear.
>
> Don't you mean libxtrans?   As for the patch, the pkg-config man page
> on my system only documents /usr/lib/pkgconfig, not
> /usr/share/pkgconfig.   Is the share directory commonly used but missing
> from the man page?   Or is a minimum version required?   (If so, perhaps
> it's best for now to install to both locations, so that older pkgconfig
> still works.)

This has been in pkg-config since rev 74 in 2005, which I think is
pkg-config-0.16, also released in 2005. I think that's pretty
reasonable for any modern hosts. Oh, and Mikhail points out that X
uses Requires.private, which is in even newer pkg-config.

What could be more problematic is where people are doing installations
outside the system directories. It's been pretty customary to just do
"export PKG_CONFIG_PATH=$XPREFIX/lib/pkgconfig" and carry on. Now
you'd need to add $XPREFIX/data/pkgconfig. This affects at least all
the build tools in the modular repo and probably tons of others in the
wild.

It's probably the right thing to do. The proto packages are arch
independent and should be moved, too. I know fedora moves all the
proto .pc files to /usr/share. Whether it's worth the pain, I don't
know.

--
Dan


More information about the xorg-devel mailing list