[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] new automake system
From: |
Bertrand Garrigues |
Subject: |
Re: [Groff] new automake system |
Date: |
Sun, 28 Sep 2014 00:14:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Hi Ralph and Werner,
On Thu, Sep 25 2014 at 01:10:35 PM, Ralph Corderoy <address@hidden> wrote:
> Hi Werner,
>
>> Contrary to many other packages, a `/usr/local/X11' hierarchy normally
>> doesn't exist, and only the `/usr/X11' tree gets checked for
>> configuration files. Maybe this has changed recently, but I doubt it.
>
> Ah, I've seen them under /usr/local in the past. There's various
> environment variables that can be set up to say where to look, e.g.
>
> $ XFILESEARCHPATH=/foo/%N:/bar/%N strace appres Werner 2>&1 | grep Werner
> execve("/usr/bin/appres", ["appres", "Werner"], [/* 60 vars */]) = 0
> access("/home/ralph/en_GB.utf8/Werner", R_OK) = -1 ENOENT (No such file
> or directory)
> access("/home/ralph/en/Werner", R_OK) = -1 ENOENT (No such file or
> directory)
> access("/home/ralph/Werner", R_OK) = -1 ENOENT (No such file or
> directory)
> access("/home/ralph/en_GB.utf8/Werner", R_OK) = -1 ENOENT (No such file
> or directory)
> access("/home/ralph/en/Werner", R_OK) = -1 ENOENT (No such file or
> directory)
> access("/home/ralph/Werner", R_OK) = -1 ENOENT (No such file or
> directory)
> access("/foo/Werner", R_OK) = -1 ENOENT (No such file or
> directory)
> access("/bar/Werner", R_OK) = -1 ENOENT (No such file or
> directory)
> $
>
> http://www.faqs.org/faqs/x-faq/part2/section-22.html covers it as does
> http://www.x.org/archive/X11R6.8.0/doc/X.7.html where it says
I'm not familiar with X11 at all, so sorry in advance if I say something
obviously silly.
I've looked a bit to the source code of libXt
(git://anongit.freedesktop.org/xorg/lib/libXt), particularly the
XtAppInitialize call, to try fo figure out how the paths to the
resources are set. When I compile libXt with some debug traces (just
added:
#include <stdio.h>
#define XNL_DEBUG
in src/Intrinsic.c), I see this when I call 'appres' :
Massaged path:
/home/bertrand/%L/%N%C:/home/bertrand/%l/%N%C:/home/bertrand/%N%C:/home/bertrand/%L/%N:/home/bertrand/%l/%N:/home/bertrand/%N
Testing file /home/bertrand/en_US.UTF-8/-AppResTest-
Testing file /home/bertrand/en/-AppResTest-
Testing file /home/bertrand/-AppResTest-
Testing file /home/bertrand/en_US.UTF-8/-AppResTest-
Testing file /home/bertrand/en/-AppResTest-
Testing file /home/bertrand/-AppResTest-
Massaged path:
/usr/etc/X11/%L/%T/%N%C%S:/usr/etc/X11/%l/%T/%N%C%S:/usr/etc/X11/%T/%N%C%S:/usr/etc/X11/%L/%T/%N%S:/usr/etc/X11/%l/%T/%N%S:/usr/etc/X11/%T/%N%S:/usr/share/X11/%L/%T/%N%C%S:/usr/share/X11/%l/%T/%N%C%S:/usr/share/X11/%T/%N%C%S:/usr/share/X11/%L/%T/%N%S:/usr/share/X11/%l/%T/%N%S:/usr/share/X11/%T/%N%S:/usr/lib/X11/%L/%T/%N%C%S:/usr/lib/X11/%l/%T/%N%C%S:/usr/lib/X11/%T/%N%C%S:/usr/lib/X11/%L/%T/%N%S:/usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S
Testing file /usr/etc/X11/en_US.UTF-8/app-defaults/-AppResTest-
Testing file /usr/etc/X11/en/app-defaults/-AppResTest-
Testing file /usr/etc/X11/app-defaults/-AppResTest-
Testing file /usr/etc/X11/en_US.UTF-8/app-defaults/-AppResTest-
Testing file /usr/etc/X11/en/app-defaults/-AppResTest-
Testing file /usr/etc/X11/app-defaults/-AppResTest-
Testing file /usr/share/X11/en_US.UTF-8/app-defaults/-AppResTest-
Testing file /usr/share/X11/en/app-defaults/-AppResTest-
Testing file /usr/share/X11/app-defaults/-AppResTest-
Testing file /usr/share/X11/en_US.UTF-8/app-defaults/-AppResTest-
Testing file /usr/share/X11/en/app-defaults/-AppResTest-
Testing file /usr/share/X11/app-defaults/-AppResTest-
Testing file /usr/lib/X11/en_US.UTF-8/app-defaults/-AppResTest-
Testing file /usr/lib/X11/en/app-defaults/-AppResTest-
Testing file /usr/lib/X11/app-defaults/-AppResTest-
Testing file /usr/lib/X11/en_US.UTF-8/app-defaults/-AppResTest-
Testing file /usr/lib/X11/en/app-defaults/-AppResTest-
Testing file /usr/lib/X11/app-defaults/-AppResTest-
It seems that the path /usr/X11/lib/X11/app-defaults is no longer used,
while there are plenty of default paths available,
/usr/share/X11/app-defaults or /usr/lib/X11/app-defaults.
Thus, if I call 'gxditview' freshly installed from groff sources, the
file installed in /usr/X11/lib/X11/app-defaults/GXditview is not
found. If I add it for example in /usr/share/X11/app-defaults/GXditview,
it is OK, I have this:
$ gxditview
[...]
Testing file /usr/share/X11/app-defaults/GXditview
File found.
Moreover, on my Arch Linux PC, the package groff is installted with
GXditview in /usr/share/X11/app-defaults/GXditview. They build the
package like this (see
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/groff):
./configure --prefix=/usr --with-x --with-appresdir=/usr/share/X11/app-defaults
I haven't found a lot of information in the Xorg mailing list archive on
this topic, I found this:
http://lists.freedesktop.org/archives/xorg/2006-July/016937.html
which says:
"Since the default location for app-defaults files in X.Org 7 is now
/usr/share/X11/app-defaults [...]"
Finally. http://www.faqs.org/faqs/x-faq/part2/section-22.html says:
"The default XFILESEARCHPATH, compiled into Xt, is:
/usr/lib/X11/%L/%T/%N%C:\ (R5)
/usr/lib/X11/%l/%T/%N%C:\ (R5)
/usr/lib/X11/%T/%N%C:\ (R5)
/usr/lib/X11/%L/%T/%N:\
/usr/lib/X11/%l/%T/%N:\ /usr/lib/X11/%T/%N"
So it seems to me that we should move GXditview into
/usr/lib/X11/app-defaults/ or /usr/share/X11/app-defaults/
Regards,
--
Bertrand Garrigues
- Re: [Groff] new automake system, (continued)
- Re: [Groff] new automake system, Bernd Warken, 2014/09/22
- Re: [Groff] new automake system, Bertrand Garrigues, 2014/09/22
- Re: [Groff] new automake system, Bernd Warken, 2014/09/23
- Re: [Groff] new automake system, Bertrand Garrigues, 2014/09/23
- Re: [Groff] new automake system, Ralph Corderoy, 2014/09/24
- Re: [Groff] new automake system, Bertrand Garrigues, 2014/09/24
- Re: [Groff] new automake system, Ralph Corderoy, 2014/09/25
- Re: [Groff] new automake system, Werner LEMBERG, 2014/09/25
- Re: [Groff] new automake system, Ralph Corderoy, 2014/09/25
- Re: [Groff] new automake system, Werner LEMBERG, 2014/09/25
- Re: [Groff] new automake system,
Bertrand Garrigues <=
- Re: [Groff] new automake system, Ralph Corderoy, 2014/09/28
- Re: [Groff] new automake system, Bertrand Garrigues, 2014/09/28
- Re: [Groff] new automake system, Werner LEMBERG, 2014/09/29
- Re: [Groff] new automake system, Bertrand Garrigues, 2014/09/29
- Re: [Groff] new automake system, Werner LEMBERG, 2014/09/30
- Re: [Groff] new automake system, Ingo Schwarze, 2014/09/22
- Re: [Groff] new automake system, Werner LEMBERG, 2014/09/22
- Re: [Groff] new automake system, Bertrand Garrigues, 2014/09/22
- Re: [Groff] new automake system, Ralph Corderoy, 2014/09/23
- Re: [Groff] new automake system, Ingo Schwarze, 2014/09/24