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

Dan Nicholson dbn.lists at gmail.com
Mon Oct 5 12:52:30 PDT 2009


On Mon, Oct 5, 2009 at 12:28 PM, Adam Jackson <ajax at nwnk.net> wrote:
> On Sun, 2009-10-04 at 11:55 +1100, Daniel Stone wrote:
>> On Sat, Sep 26, 2009 at 04:39:20AM +0700, Mikhail Gusarov wrote:
>> > This fixes configuration in cross-compilation mode:
>> > pkg-config does not look for .pc in /usr/lib/pkg-config during
>> > cross-compilation to avoid picking up wrong libraries.
>>
>> Hmm.  Doesn't that mean that we'd have to change every instance?
>> Additionally, do we have any decent plan for handling the move? If
>> datadir is searched before libdir then we're fine, else if libdir is
>> searched by datadir, it effectively makes the .pc files immutable, as
>> everyone will be picking up stale versions.
>
> Everyone not using a sane packaging system, sure.
>
> Fedora's been building xtrans as arch-independent and installed
> in /usr/share for about a year now, though it seems I did it the lame
> way (configure --libdir=%{_datadir} instead of Mikhail's fix).  Hasn't
> caused any problems for us.

Fedora is, of course, using the pkg-config default paths. People
building X outside of /usr (including the build tools in modular)
might not be prepared with the appropriate PKG_CONFIG_PATH. Arguably,
it's their fault for not being prepared since ${datadir}/pkgconfig is
completely reasonable whether it was being used yet or not.

--
Dan


More information about the xorg-devel mailing list