<!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 01:34 +0200, Cyril Brulebois wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Gaetan Nadon <<A HREF="mailto:memsize@videotron.ca">memsize@videotron.ca</A>> (04/06/2011):
> What is unusual about the "target dbs" file (which aren't docs), it
> that they are not installed in any location governed by the x11proto
> package *dir variables such as docdir, datarootdir and so on. The
> installation location is obtained by questioning xorg-sgml-doctools
> package. I suspect this package, on your build, has been installed in
> /usr. I would be nice if you could verify that.
Sorry it wasn't clear. Everything ends up (inside Debian packages, and
on filesystems) under /usr. Here are files from xorg-sgml-doctools:
/usr/share/pkgconfig/xorg-sgml-doctools.pc
/usr/share/sgml/X11/defs.ent
/usr/share/sgml/X11/xorg-fo.xsl
/usr/share/sgml/X11/dbs/masterdb.pdf.xml
/usr/share/sgml/X11/dbs/masterdb.txt.xml
/usr/share/sgml/X11/dbs/masterdb.html.xml
/usr/share/sgml/X11/dbs/masterdb.ps.xml
/usr/share/sgml/X11/xorg.css
/usr/share/sgml/X11/xorg.xsl
/usr/share/sgml/X11/xorg-xhtml.xsl
/usr/share/doc/xorg-sgml-doctools/changelog.gz
/usr/share/doc/xorg-sgml-doctools/copyright
/usr/share/doc/xorg-sgml-doctools/changelog.Debian.gz
> Forgot to ask, you mention distcheck, but what happens with a regular
> "make install"? It should behave the same way. If not, we are falling
> in that category of scenario where "we know we do not have permissions
> to install at that location, but we just want to create a tarball
> using distcheck, not really install the package". There are a few
> video drivers in that situation and there is a workaround. It's so
> hard to explain :-)
With --prefix=/usr, make install DESTDIR=/tmp/foo installs everything
under /tmp/foo/usr
With --prefix=/blah, make install DESTDIR=/tmp/foo installs most files
under /tmp/foo/blah, but db files under /tmp/foo/usr, so it's the prefix
chosen when building xorg-sgml-doctools that's taken into account, and
DESTDIR is prepended, as expected:
/tmp/foo/usr/share/sgml/X11/dbs/x11protocol.html.db
/tmp/foo/usr/share/sgml/X11/dbs/x11protocol.fo.db
vs:
/tmp/foo/blah/lib/pkgconfig/xproto.pc
/tmp/foo/blah/include/X11/*
</PRE>
</BLOCKQUOTE>
That looks right.
<BLOCKQUOTE TYPE=CITE>
<PRE>
I really don't know what distcheck does (DESTDIR or something else), but
I'm on my way to the manual.
</PRE>
</BLOCKQUOTE>
I never used DESTDIR with distcheck. I don't know if it makes sense or not. I tried any way, just to see what happens. The building of x11proto.pdf failed.
<BLOCKQUOTE>
<PRE>
[warning] /usr/bin/fop: Unable to locate fop in /home/nadon/xorg/src/proto/x11proto/tmp/usr/share/java
</PRE>
</BLOCKQUOTE>
Somehow $DESTDIR is used in front of /usr/share/java. That makes think your build did not have DESTDIR set when running distcheck as you would get the same error I had, in theory.<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
Mraw,
KiBi.
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>