Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300911 - X11 app-defaults are installed in wrong location for some X apps
Summary: X11 app-defaults are installed in wrong location for some X apps
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-13 21:35 UTC by Phil Stracchino (Unix Ronin)
Modified: 2022-11-13 18:54 UTC (History)
0 users

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 Phil Stracchino (Unix Ronin) 2010-01-13 21:35:53 UTC
Installing x11-base/xorg-x11-1.6.5-r1 (and apparently other versions) results in the app-defaults files being installed at /usr/share/X11/app-defaults/$foo.  However, at least some X applications, including xterm, are actually looking for it at /usr/lib/X11/app-defaults.  This causes several problems including failure of xterm active-icon mode and failure of the xterm vt100 font menu.

Reproducible: Always

Steps to Reproduce:
1.  On a standard install, pull up the vt100 font menu (ctrl-rightbutton by default).  Observe the header says 'no app-defaults'.
2.  Start an xterm with +ai and iconize it.  Note that it does not iconize.
3.  Create a symbolic link to /usr/share/X11/app-defaults at /usr/lib/X11/app-defaults.  Start a new xterm +ai and note that active-icon now works properly.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-11-28 05:18:15 UTC
I can't reproduce this w/ xterm-266 and x11-base/xorg-x11-7.4-r1.
Specifically, the ctrl-rightclick does give me a set of working font choices.
iconize doesn't exist in my WM, so not testing that presently.

/usr/lib/X11/app-defaults already exists as a symlink here:
/usr/lib/X11/app-defaults -> ../../../etc/X11/app-defaults
Said symlink is owned by x11-misc/xxkb-1.11-r1.

Please upgrade and retest?

Comment 2 Phil Stracchino (Unix Ronin) 2010-11-28 16:07:12 UTC
(In reply to comment #1)
> I can't reproduce this w/ xterm-266 and x11-base/xorg-x11-7.4-r1.
> Specifically, the ctrl-rightclick does give me a set of working font choices.
> iconize doesn't exist in my WM, so not testing that presently.
> 
> /usr/lib/X11/app-defaults already exists as a symlink here:
> /usr/lib/X11/app-defaults -> ../../../etc/X11/app-defaults
> Said symlink is owned by x11-misc/xxkb-1.11-r1.
> 
> Please upgrade and retest?
> 

I'm already on x11-base/xorg-x11-7.4-r1, but I have x11-terms/xterm-262.  Testing 266...

babylon5:root:~:6 # ls -l /usr/bin/xterm
-rwxr-xr-x 1 root root 428816 Nov 28 10:55 /usr/bin/xterm*
babylon5:root:~:7 # eix -I x11-terms/xterm
[I] x11-terms/xterm
     Available versions:  262 (~)266 {Xaw3d toolbar truetype unicode}
     Installed versions:  266(10:55:10 11/28/10)(truetype unicode -Xaw3d -toolbar)

Xterm-266 is still using /usr/lib/X11/app-defaults.  On a new install, I did not get a symlink /usr/lib/X11/app-defaults -> ../../../etc/X11/app-defaults.  I did get an /etc/X11/app-defaults directory, but it contained only app-defaults for Xgps and Xgpsspeed.  After moving Xgps and Xgpsspeed to /usr/share/X11/app-defaults where all the other app-defaults files are, removing the /etc/X11/app-defaults directory, and manually symlinking /etc/X11/app-defaults and /usr/lib/X11/app-defaults (or in this case /usr/lib64/X11/app-defaults) to /usr/share/X11/app-defaults, it works properly.  Given that Xgps and Xgpsspeed got installed in /etc/X11/app-defaults, it looks as though there are now THREE different locations on the system where X apps are looking for app-defaults, and apparently none of them are checking all three possible locations.  Either /etc/X11/app-defaults or /usr/share/X11/app-defaults makes sense (/etc/X11/app-defaults makes a great deal of sense, actually); /usr/lib/X11/app-defaults really does not, except for historical reasons.