<!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 Wed, 2011-09-07 at 21:03 +0000, Egbert Eich wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Wed, Sep 07, 2011 at 01:50:06PM -0400, Gaetan Nadon wrote:
&gt; On Wed, 2011-09-07 at 15:00 +0000, Egbert Eich wrote:
&gt; 
&gt; &gt; Sorry, forgot to metion in the header: this was for libXt.
&gt; &gt; 
&gt; 
&gt; Can you also explain in the commit text the reasons why the location has
&gt; changed? Most likely it is because the data it contains is architecture
&gt; independent. Any impact regarding backward compatibility? Any thing a
&gt; user should do after an upgrade?

Will do, will post a new patch once I've gotten some sleep.

Side effects of this change should be minimal as this file has never
existed as far as I can tell.
This change is to keep the location in sync with the location of
XErrorDB which would be very similar to XtErrorDB.

&gt; 
&gt; I don't know anything about libXt, just noticed the commit text being
&gt; identical to the code.
&gt; 
&gt; Why is datarootdir being added to the pc file? I don't see it being used
&gt; in any way through pkg-config. Usually there is a separate variable for
&gt; specific resources being queried by other modules. For example the
&gt; server has sdkdir for the development header files. Should they ever
&gt; change location, the callers using pkg-config would not be affected.
&gt; 
&gt; This is the list of variables used by modules to query resources from
&gt; other modules:
&gt; 
&gt;         --variable=appdefaultdir 
&gt;         --variable=dridriverdir 
&gt;         --variable=icondir 
&gt;         --variable=includedir 
&gt;         --variable=includex11dir 
&gt;         --variable=pythondir 
&gt;         --variable=sdkdir 
&gt;         --variable=sysconfigdir 
&gt;         --variable=systemdsystemunitdir 
&gt;         --variable=xcbincludedir 
&gt;         --variable=xkb_base 
&gt;         --variable=xthreadlib 
&gt; 
&gt; If there is a need for a module to get at the XtErrorDB path, I would
&gt; suggest an explicit variable name. One should be able to figure it out
&gt; simply by looking at the pc file.


Ok, this is a valid point. Like in libXcursor it should be:
datarootdir=@datarootdir@
...
errordbdir=${datarootdir}

or just:

errordbdir=@datarootdir@
</PRE>
</BLOCKQUOTE>
<BR>
libXcursor is a good example. The ICONDIR is defined is one location, configure.ac, and made available to both the makefile and the pc file. If the value is changed, both are in sync. Note that the statement ICONDIR=@ICONDIR@ in the makefile is redundant.<BR>
<BR>
The way it is for libXt in the patch has a loophole. The value for errordbdir is defined separately in two locations. If the value is changed in the makefile, there is a high risk of not being changed in the pc file.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
This is in case a '3rd party' wants to supply this file. All this 
is pretty much overkill anyway as I don't expect this to happen ever.
</PRE>
</BLOCKQUOTE>
There is always the option of waiting for a requirement to implement this feature. Now that you mention this feature has never existed before, it should be in a separate patch. It would be easier to locate when reading the change log.<BR>
<BR>
Thanks, and sorry for the extra work.
<BLOCKQUOTE TYPE=CITE>
<PRE>

Thanks!

Cheers,
        Egbert.
_______________________________________________
<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>