[PATCH] pkgconfig files should be installed to $(libdir)

Gaetan Nadon memsize at videotron.ca
Thu Nov 17 06:04:36 PST 2011


On Thu, 2011-11-17 at 15:37 +0400, Dmitry Shatrov wrote:

> Daniel,
> 
> I looked at several other protocol modules, and all of them use
> $(libdir) for their pkgconfig files.
> 
> I'm building a self-contained binary distribution which includes
> several libraries from x.org, and libxtrans is the only module with
> such problem. I don't add share/pkgconfig to PKG_CONFIG_PATH, and it

It took a while to sink in, but the libxtrans package is not a library.
It is source code to build one. There is only one set of source code for
all platforms/cpu architecture. I am no expert, but this is the way I
use to remember this rather unusual setup. If you don't add /share in
the path you will most likely be missing some packages such as
util-macros which is needed to configure the packages.

We need to comply with the FHS standard. If we don't, other
installations will break as they use a /usr/share as a common filesystem
for architecture independent data. The location is not really a project
preference but a standard that OS are expecting we follow.

http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREARCHITECTUREINDEPENDENTDATA


> is fine in all cases except this one. Te disto consists of more than
> 100 packages, many of which use pkg-config.
> 
> Specifically, libX11 configure fails without moving xtrans.pc to
> $(prefix)/lib/pkgconfig
> 
> Regards,
> Dmitry
> 
> On Thu, Nov 17, 2011 at 3:28 PM, Daniel Stone <daniel at fooishbar.org> wrote:
> > Hi,
> >
> > On 17 November 2011 11:10, Dmitry Shatrov <shatrov at gmail.com> wrote:
> >> --- a/Makefile.am
> >> +++ b/Makefile.am
> >> @@ -14,7 +14,7 @@ Xtransinclude_HEADERS = \
> >>  aclocaldir = $(datadir)/aclocal
> >>  aclocal_DATA = xtrans.m4
> >>
> >> -pkgconfigdir = $(datadir)/pkgconfig
> >> +pkgconfigdir = $(libdir)/pkgconfig
> >>  pkgconfig_DATA = xtrans.pc
> >>
> >>  MAINTAINERCLEANFILES = ChangeLog INSTALL
> >
> > Actually, no.  xtrans (despite the name) isn't actually
> > architecture-dependent in any way: it just installs a bunch of source
> > files to /usr/include.  So, like the protocol modules, its pkg-config
> > can go in $(datadir).
> >
> > Cheers,
> > Daniel
> >
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20111117/c52398da/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20111117/c52398da/attachment.pgp>


More information about the xorg-devel mailing list