Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 130876

Summary: xdm-1.0.3-r1 overwrites /usr/lib/X11/xdm.
Product: Gentoo Linux Reporter: Pietro Franchi <tinaught>
Component: New packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED WONTFIX    
Severity: normal CC: mmokrejs
Priority: High Keywords: Inclusion
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pietro Franchi 2006-04-22 12:05:09 UTC
Hi, I'm not sure if this is a real issue or just me doing something I'm not supposed to do, but the new xdm overwrote my /usr/lib/X11/xdm/Xsetup_0 that I did modify, because it was calling xconsole (that I don't want to install.)

So I would suggest to put /usr/lib/X11/xdm in CONFIG_PROTECT in the default profile, or somehow move Xsetup_0 again in /etc/X11/xdm as it used to be.

(I don't quite know all this new X stuff, so sorry if this is INVALID) :-)
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-22 14:10:44 UTC
I think a better solution might involve just changing that in the installed Xsetup_0, I don't see why it's default.
Comment 2 Pietro Franchi 2006-04-22 14:36:39 UTC
That sounds good, but in the same time you could use Xsetup_0 to make your xdm display stuff (i.e. let say that you take away xconsole, but someone wants it, or xclock or something else)...any update in xdm will erase the configuration.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-22 14:40:18 UTC
The general idea should be that only the xdm files installed into /etc should require configuration.

There must be a better spot to put programs to run.

xdm installs these:
/etc/X11/xdm/Xaccess
/etc/X11/xdm/xdm-config
/etc/X11/xdm/Xresources
/etc/X11/xdm/Xservers

xinit installs these:
/etc/X11/xinit/xinitrc
/etc/X11/Sessions/Xsession

Do any of those work? Is there another system-level config file that would be more suitable?
Comment 4 Pietro Franchi 2006-04-22 15:39:59 UTC
The fact is that according to many howto's and from xdm-config Xsetup_0 is the correct place to make modifications to xdm appearence. You can run xconsole, or xclock, or put fancy buttons etc. I can't see any other files where to do the same things in a clean way.

It's easy to change the location of Xsetup_0, just change /etc/X11/xdm/xdm-config. I did that and I'll leave my Xsetup_0 in /etc, but I still think that since it's a file that supposely (AFAIK) is user modifiable the best location should be by default in /etc/X11/xdm. 

Probably a similar problem can arise with Xstartup, GiveConsole and TakeConsole, since I know that people use them to do stuff, see for example this thread http://forums.gentoo.org/viewtopic.php?t=272135

But my knowledge of how X works is very limited, so I might be wrong. :-)
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-26 09:52:14 UTC
*** Bug 131309 has been marked as a duplicate of this bug. ***
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-18 09:44:46 UTC
Since upstream treats these as scripts rather than configuration files, so will we. Users may opt to add a custom file in /etc/env.d/ that adds /usr/lib/X11/xdm to CONFIG_PROTECT or change the location of these files as suggested in comment #5.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-18 09:46:42 UTC
And by comment #5 I meant comment #4.