Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107431 - Directory app-defaults doesn't have any locale specific counterpart under /etc/X11
Summary: Directory app-defaults doesn't have any locale specific counterpart under /et...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-27 12:09 UTC by Oldrich Jedlicka
Modified: 2007-04-08 16:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oldrich Jedlicka 2005-09-27 12:09:02 UTC
As the lookup path for xorg-x11 (as of `man X` says) looks at /usr/X11R6/lib/X11
 (XFILESEARCHPATH), there is no possibility for X to access locale specific
parts under /etc/X11/{lang}/app-defaults.

Example of the problem is MoTV, which uses
/etc/X11/{de,fr,fs,it...}/app-defaults for its locale-dependent strings. But X
knows only about /usr/X11R6/lib/X11/app-defaults, which is a symlink to
/etc/X11/app-defaults. I think the way how to do this correctly is to modify the
search path of X for searching /etc/X11 instead of only /usr/X11R6/lib/X11 by
default.

Reproducible: Always
Steps to Reproduce:




Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.13.1 i686)
=================================================================
System uname: 2.6.13.1 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandboc sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="cs_CZ.ISO-8859-2"
LC_ALL="cs_CZ.ISO-8859-2"
LINGUAS="cz cs en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://147.32.127.222/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa apache2 arts audiofile avi bash-completion
bdf berkdb bitmap-fonts browserplugin ccache cdda cddb cdparanoia cdr
cpudetection crypt cups curl dbus dga dhcp divx4linux dpms dvd dvdr dvdread eds
emboss encode esd extensions fam fbcon ffmpeg firefox flac font-server
foomaticdb fortran freetype ftp gd gdbm gif gimp gimpprint gphoto2 gpm gs
gstreamer gtk2 hal iconv icq ieee1394 imagemagick imlib ipv6 java javascript
jikes jp2 jpeg jpeg2k junit kde kdeenablefinal kdexdeltas kqemu lame libcaca
libg++ libwww lirc lzo lzw mad maildir matroska mikmod mjpeg mmx mng motif
mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mplayer mysql ncurses
network nls no-old-linux nosrc nptl odbc offensive ogg oggvorbis openexr opengl
oscar oss pam pam_chroot pam_console pam_timestamp pccts pcmcia pcre pdflib perl
php png pnp posix postgres ppds python qt quicktime quotas readline real rtc
samba scanner sdl sharedmem slang sox spell sql sqlite sse sse2 ssl stroke svg
svga tcltk tcpd tetex tga theora threads tidy tiff transcode truetype
truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vim-with-x
vorbis wifi win32codecs wmf xine xinerama xml2 xmms xosd xpm xprint xrandr
xscreensaver xv xvid xvmc yv12 zlib zvbi video_cards_radeon linguas_cz
linguas_cs linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-09-27 12:42:46 UTC
This sounds like an upstream feature request, so I'm marking it as such. Please
file a bug at bugs.freedesktop.org, in the xorg product.

Then post the URL here. Thanks!
Comment 2 Oldrich Jedlicka 2005-09-27 12:48:39 UTC
Only one question: It is xorg-x11, who moved /usr/X11R6/lib/app-defaults into
/etc/X11/app-defaults and created a symlink for it? If yes, I'll create new
feature request.

Thanks.
Comment 3 Oldrich Jedlicka 2005-09-27 12:50:01 UTC
I mean it was not the ebuild (and Gentoo), who made this change. I'm I right?
Comment 4 Joshua Baergen (RETIRED) gentoo-dev 2005-09-27 20:26:11 UTC
Although the recent ebuilds have moved existing installation structions from the
X11R6 directories to their present locations, this was only to prepare the way
for the directory choices made by upstream.

In short, Gentoo's X-related directories are not Gentoo-specific, they're all
from upstream.
Comment 5 Oldrich Jedlicka 2005-09-28 11:18:55 UTC
Thanks for the explanation. Added a bug at freedesktop.org:

https://bugs.freedesktop.org/show_bug.cgi?id=4626
Comment 6 Joshua Baergen (RETIRED) gentoo-dev 2005-09-29 11:20:53 UTC
Much thanks.
Comment 7 Oldrich Jedlicka 2005-10-18 00:10:49 UTC
Resolved also on bugs.freedesktop.org:

We've agreed that the app-defaults should still be installed in
/usr/X11R6/lib/X11/app-defaults, as was done before. All the apps in Xorg
CVS head are now fixed to install there again.
Comment 8 Joshua Baergen (RETIRED) gentoo-dev 2005-11-20 21:44:00 UTC
It looks like we've configured the path to be /usr/lib/X11/app-defaults, except
a few applications (notably xterm and openmotif) do stuff in /etc/X11.  Does
this break anything currently?
Comment 9 Oldrich Jedlicka 2005-11-21 01:58:59 UTC
This is what I figured out with XTerm-204 with and without removed libdir
settings in its ebuild for X.org-7.0.0_rc2:

1) /etc/X11/app-defaults and /etc/X11/{LANGUAGE}/app-defaults are used, when present
2) /usr/lib/X11/app-defaults and /usr/lib/X11/{LANGUAGE}/app-defaults are used
as well

So the only difference for X.org-7 is where app-defaults are normally installed.
Nothing more. /etc/X11/app-defaults and /usr/lib/X11/app-defaults are searched
(in this order) anyway (for XTerm at least).
Comment 10 Joshua Baergen (RETIRED) gentoo-dev 2005-11-23 20:51:07 UTC
I'm re-opening here.  Upstream's new paths should take effect the next time we
update the respective tarballs.  Probably won't happen before then since nothing
is actually broken by modular's current paths, if I understand your comments
correctly.
Comment 11 Rob 2006-03-30 14:35:37 UTC
(In reply to comment #10)
> I'm re-opening here.  Upstream's new paths should take effect the next time we
> update the respective tarballs.  Probably won't happen before then since nothing
> is actually broken by modular's current paths, if I understand your comments
> correctly.

Any update, as all timestamps for Xorg7.0 have 21-Dec-2005, nearly one full month since Joshua's respons?
Comment 12 Oldrich Jedlicka 2006-04-03 09:36:25 UTC
I cannot confirm anything now as I do not have my Gentoo computer available for at least 14 days. Sorry.

The question is if all ebuilds (xterm for example) installs things into /usr/lib/X11/app-defaults dir and not info /etc/X11/app-defaults.
Comment 13 Oldrich Jedlicka 2006-04-10 08:03:50 UTC
A brief look (equery) told me that x11-libs/motif-config-0.10 installs files into /etc/X11/app-defaults.
Comment 14 Jack 2006-07-08 16:42:24 UTC
I'm still not sure whether the correct location is /etc/X11/app-defaults or /usr/lib/X11/app-defaults.  (With the modular xorg, /usr/X11 -> /usr)
Please see bug 106173, which corrected from the latter to the former for xosview.  Bug 133881 seems to ask the same question for xlockmore.  
Comment 15 Oldrich Jedlicka 2006-07-08 17:01:23 UTC
(In reply to comment #14)
> I'm still not sure whether the correct location is /etc/X11/app-defaults or
> /usr/lib/X11/app-defaults.  (With the modular xorg, /usr/X11 -> /usr)
> Please see bug 106173, which corrected from the latter to the former for
> xosview.  Bug 133881 seems to ask the same question for xlockmore.  

Maybe Donnie Berkholz knows more. I found one xorg bug, but I do not understand, what is the result... Just for reference:

https://bugs.freedesktop.org/show_bug.cgi?id=5051
Comment 16 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-08 18:06:49 UTC
In modular X, packages should install their app-defaults files to /usr/share/X11/app-defaults/. /etc/X11/app-defaults/ is the location for system administrator overrides to these defaults.