<!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 Sun, 2011-06-05 at 03:45 +0200, Cyril Brulebois wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Gaetan Nadon &lt;<A HREF="mailto:memsize@videotron.ca">memsize@videotron.ca</A>&gt; (04/06/2011):
&gt; I never used DESTDIR with distcheck. I don't know if it makes sense or
&gt; not. I tried any way, just to see what happens. The building of
&gt; x11proto.pdf failed. 
&gt; 
&gt;         [warning] /usr/bin/fop: Unable to locate fop in /home/nadon/xorg/src/proto/x11proto/tmp/usr/share/java
&gt; 
&gt; Somehow $DESTDIR is used in front of /usr/share/java. That makes think
&gt; your build did not have DESTDIR set when running distcheck as you would
&gt; get the same error I had, in theory.

I never used DESTDIR for distcheck either, but since I'm not building as
root (!), *something* in there has to come into play and stop automake
from trying to install to the &#8220;bare&#8221; location. A non-root make install
with default settings just can't work.

Some doc about distcheck is found here:
  <A HREF="http://www.gnu.org/software/automake/manual/automake.html#Preparing-Distributions">http://www.gnu.org/software/automake/manual/automake.html#Preparing-Distributions</A>

Looking at the log:
| test -d xproto-7.0.21/_build || exit 0; \
|         dc_install_base=`CDPATH=&quot;${ZSH_VERSION+.}:&quot; &amp;&amp; cd
| xproto-7.0.21/_inst &amp;&amp; pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|           &amp;&amp; dc_destdir=&quot;${TMPDIR-/tmp}/am-dc-$$/&quot; \
|           &amp;&amp; am__cwd=`pwd` \
|           &amp;&amp; CDPATH=&quot;${ZSH_VERSION+.}:&quot; &amp;&amp; cd xproto-7.0.21/_build \
|           &amp;&amp; ../configure --srcdir=.. --prefix=&quot;$dc_install_base&quot; \
|              \
|           &amp;&amp; make  \
|           &amp;&amp; make  dvi \
|           &amp;&amp; make  check \
|           &amp;&amp; make  install \

So it's assumed --prefix will do everything, and no DESTDIR is used at
this point (it's checked later that setting DESTDIR works though).

That's why the &#8220;let's ask xorg-sgml-doctools for the prefix&#8221; dance and
its direct use breaks distcheck. Unless one has a user-specific (as
opposed to system-wide) xorg-sgml-doctools, with appropriate permissions
on the target directory.

</PRE>
</BLOCKQUOTE>
<BR>
I have submitted a patch for xorg-sgml-doctools so that this situation no longer occurs. I also need to release a patch for the 21 modules with DocBook. In any case, don't let that hold the release of the package. There is no impact to the end user, he won't be able to install the package anyway if he does not have write permission.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
Mraw,
KiBi.
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>