>>> Regenerating /etc/ld.so.cache... >>> Regenerating /etc/ld.so.cache... >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. * IMPORTANT: 2 config files in /etc need updating. * Type emerge --help config to learn how to update config files. sv24 wolk-sources # etc-update Scanning Configuration files... The following is the list of files which need updating, each configuration file is followed by a list of possible replacement files. 1) /etc/cron.daily/syslog.cron /etc/cron.daily/._cfg0000_syslog.cron Please select a file to edit by entering the corresponding number (-1 to exit): sv24 wolk-sources # emerge info Portage 2.0.45-r5 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Celeron (Coppermine) USE="x86 oss 3dnow apm avi crypt cups encode jpeg kde libg++ mikmod motif mpeg ncurses pdflib qtmt quicktime spell truetype xml2 xmms arts berkdb esd gdbm gif gnome-libs gpm guile imlib java ldap libwww oggvorbis opengl pam perl png python qt readline sdl slang snmp ssl svga tcltk tcpd tiff X gtk gnome mmx dga alsa xv nls" ARCH="x86" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi g /usr/kde/3/share/config /usr/kde/3/share/config:/usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j2" JDK_HOME="/opt/blackdown-jdk-1.3.1" JAVA_HOME="/opt/blackdown-jdk-1.3.1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://192.168.1.4/gentoo"
this happens when 1 new versions of config files from the same source file are available sv24 cron.daily # touch ._cfg0000_syslog.cron sv24 cron.daily # touch ._cfg0001_syslog.cron
It's not emerge, it's etc-update: macula etc # ll ._* -rw-r--r-- 1 root root 0 Sep 27 19:34 ._cfg0000_syslog.cron -rw-r--r-- 1 root root 0 Sep 27 19:35 ._cfg0001_syslog.cron -rw-r--r-- 1 root root 0 Sep 27 19:35 ._cfg0002_syslog.cron emerge something [...] * GNU info directory index is up-to-date. * IMPORTANT: 3 config files in /etc need updating. * Type emerge --help config to learn how to update config files. macula etc # ll ._* -rw-r--r-- 1 root root 0 Sep 27 19:34 ._cfg0000_syslog.cron -rw-r--r-- 1 root root 0 Sep 27 19:35 ._cfg0001_syslog.cron -rw-r--r-- 1 root root 0 Sep 27 19:35 ._cfg0002_syslog.cron macula etc # etc-update Scanning Configuration files... The following is the list of files which need updating, each configuration file is followed by a list of possible replacement files. 1) /etc/syslog.cron /etc/._cfg0000_syslog.cron Please select a file to edit by entering the corresponding number. (-1 to exit) (-3 to auto merge all remaining files) (-5 to auto-merge AND not use 'mv -i'): -1 Exiting: User termination! macula etc # ll ._* -rw-r--r-- 1 root root 0 Sep 27 19:35 ._cfg0000_syslog.cron
I rerun my test (with portage 2.0.51-r2), and now etc-update tells "Automerging trivial changes in: <filename>" so files are not just deleted, they are correctly processed. Extra files are deleted if no difference is found. I think this bug is fixed.
thunk.