<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
On Thu, 2011-11-17 at 15:37 +0400, Dmitry Shatrov wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
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
</PRE>
</BLOCKQUOTE>
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.<BR>
<BR>
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.<BR>
<BR>
<A HREF="http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREARCHITECTUREINDEPENDENTDATA">http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREARCHITECTUREINDEPENDENTDATA</A><BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
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 <<A HREF="mailto:daniel@fooishbar.org">daniel@fooishbar.org</A>> wrote:
> Hi,
>
> On 17 November 2011 11:10, Dmitry Shatrov <<A HREF="mailto:shatrov@gmail.com">shatrov@gmail.com</A>> 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
>
_______________________________________________
<A HREF="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</A>: X.Org development
Archives: <A HREF="http://lists.x.org/archives/xorg-devel">http://lists.x.org/archives/xorg-devel</A>
Info: <A HREF="http://lists.x.org/mailman/listinfo/xorg-devel">http://lists.x.org/mailman/listinfo/xorg-devel</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>