Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159148 - Proposal to add X.org getconfig's directories to CONFIG_PROTECT
Summary: Proposal to add X.org getconfig's directories to CONFIG_PROTECT
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2006-12-26 10:12 UTC by Christian Schlotter
Modified: 2007-05-08 05:56 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 Christian Schlotter 2006-12-26 10:12:57 UTC
Hi!

When reemerging xorg-x11/xserver, the file /usr/lib/X11/getconfig/xorg.cfg got overwritten.  I edited this file, so my changes were lost.

I propose to add the following directories to CONFIG_PROTECT, as they are searched by getconfig on every X server start:

/usr/etc/X11
/usr/lib/xorg/modules
/usr/lib/X11/getconfig

From my Xorg.0.log:
Running "getconfig -X 70101000 -I /etc/X11,/usr/etc/X11,/usr/lib/xorg/modules,/usr/lib/X11/getconfig -v 0x8086 -d 0x2592 -r 0x03 -s 0x1025 -b 0x006a -c 0x0300"

Best regards
Christian

# equery list xorg-server
[ Searching for package 'xorg-server' in all categories among: ]
 * installed packages
[I--] [  ] x11-base/xorg-server-1.1.1-r1 (0)

# emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.19-suspend2-r1 i686)
=================================================================
System uname: 2.6.19-suspend2-r1 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.12.6
Last Sync: Tue, 26 Dec 2006 13:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/"
LANG="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/gentopia"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
...
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-26 11:15:19 UTC
Has nothing to do with baselayout.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-26 11:18:50 UTC
So add it yourself in make.conf
Comment 3 Christian Schlotter 2006-12-26 11:24:21 UTC
Jakub, then please assign it to the proper component.

getconfig is a way to configure the X server, so this should not be blocked by the default Gentoo install.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-12-26 11:29:46 UTC
How's that blocking anything? Stick it into make.conf if you are modifying such weird stuff that no normal user needs, default CONFIG_PROTECT is already bloated enough with junk (I particularly hate /usr/share/X11/xkb being protected).
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-12-31 20:04:26 UTC
I'm adding Inclusion because this needs more review, not because I agree with the change.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2007-05-08 05:56:35 UTC
We aren't going to add this to the default CONFIG_PROTECT, because so few people make any modifications to it. Feel free to add your own /etc/env.d file that does this.