Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193142 - FEATURES=unmerge-orphans unmerges CONFIG_PROTECTed files
Summary: FEATURES=unmerge-orphans unmerges CONFIG_PROTECTed files
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-09-20 04:45 UTC by Colin Macdonald
Modified: 2007-09-21 18:01 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Colin Macdonald 2007-09-20 04:45:43 UTC
Is unmerging xorg-x11 supposed to remove /etc/X11/xorg.conf?  See the output below.

I've noticed several times over the last year that my xorg.conf disappeared: I'm now thinking this was because of my habit of unmerging xorg-x11 so that "emerge -vuab xorg-x11" would bring it any new X apps/deps.

# emerge -Ca xorg-x11

>>> These are the packages that would be unmerged:

    selected: 7.3 
   protected: none 
     omitted: none 

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Would you like to unmerge these packages? [Yes/No] y
>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1 
>>> Unmerging x11-base/xorg-x11-7.3...
No package files given... Grabbing a set.
<<<          sym /usr/X11R6
<<<          obj /etc/X11/xorg.conf
--- !empty   dir /usr
--- !empty   dir /etc/X11
--- !empty   dir /etc
 * GNU info directory index is up-to-date.

emerge --info
Portage (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.6.1-r0, i686)
System uname: i686 AMD Athlon(tm) Processor
Timestamp of tree: Wed, 19 Sep 2007 00:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
CFLAGS="-march=i686 -O2 -pipe"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=i686 -O2 -pipe"
FEATURES="collision-protection distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
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 --filter=H_**/files/digest-*"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/ag-portage"
USE="3dnow X Xaw3d a52 aac aalib acpi alsa apache2 arts audiofile avahi berkdb bitmap-fonts blas bzip2 cairo cdr cjk cli cracklib crypt cups curl dbus dga dri dts dv dvb dvd dvdr eds emacs emboss encode esd exif expat f77 faad fam fbcon ffmpeg fftw firefox flac fortran gcj gd gdbm gif ginac glut gmp gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv idn imagemagick imlib isdnlog jack java jpeg lapack lcms leim libcaca libnotify libsamplerate lirc live mad matroska midi mikmod mmap mmx mng mono mozilla mp3 mpeg mudflap mysql nas ncurses nls nptl nptlonly offensive ogg openal opengl openmp oss pam pcre pdf perl plotutils png ppds pppd pulseaudio python qhull qt3 quicktime radeon readline reflection rtc samba scanner sdk sdl session slang sndfile speex spell spl sqlite sse ssl startup-notification svg tcl tcltk tcpd tetex theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vorbis win32codecs wmf wxwindows x264 x86 xinerama xml xorg xosd xv xvid zlib" ALSA_CARDS="emu10k1 via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="realmagic" USERLAND="GNU" VIDEO_CARDS="i810 radeon mach64 vesa vga fbdev v4l"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-20 08:50:02 UTC
It's intended. Remove unmerge-orphans from FEATURES if you dislike this.
Comment 2 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-09-21 14:59:13 UTC
> It's intended. Remove unmerge-orphans from FEATURES if you dislike this.

To be clear CONFIG_PROTECT'ed files are removed only if they have not been modified since they were installed. :)
Comment 3 Colin Macdonald 2007-09-21 17:49:22 UTC
hmmm now that's odd!  I certainly do modify my xorg.conf.  Re-opening.

Do you mean if the mtime matches the ebuild install time?  So:

1)  2007-09-01  change xorg.conf
2)  2007-09-10  emerge new xorg-x11
3)  2007-09-15  unmerge xorg-x11

step 2) makes changes to my xorg.conf (remove rgb path for example) via etc-update.

step 3) removed my xorg.conf.  I suspect that has something to do with the etc-update changes in step 2) (which would have the same mtime as the ebuild?).
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-09-21 17:51:46 UTC
What do you mean "change by etc-update"? If you replace your modified file with the installed one, you didn't modify anything, you are using the default configfile as installed by the ebuild.
Comment 5 Colin Macdonald 2007-09-21 17:58:49 UTC
the xorg-x11 ebuild makes changes too your xorg.conf.  Because xorg.conf is config-protected, it leaves thoses changes in ._xorg.conf.  I use etc-update to replace my xorg.conf with the new ._xorg.conf.

However, xorg-x11 ebuild edited *my* original xorg.conf to make ._xorg.conf.

Now my system is in a state where emerge believes that the xorg.conf was not modified by me but of course it was originally.  At least that's my thought about what's going on based on commment #2.
Comment 6 Colin Macdonald 2007-09-21 18:01:18 UTC
To clarify: 

"the default configfile as installed by the ebuild" is a copy of my highly modified xorg.conf with a few sed changes done by the xorg-x11 ebuild.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-09-21 18:01:44 UTC
(In reply to comment #5)
Uh, you replaced your original file with the default installed one, at least that's what you described. Make some manual changed to xorg.conf, unmerge the ebuild. Is the file still there?