Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12256 - emerge seems to count wrong config files to be updated
Summary: emerge seems to count wrong config files to be updated
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-16 14:46 UTC by Martin Holzer (RETIRED)
Modified: 2005-02-27 22:09 UTC (History)
3 users (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 Martin Holzer (RETIRED) gentoo-dev 2002-12-16 14:46:14 UTC
>>> 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"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2002-12-16 14:48:24 UTC
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 

Comment 2 Talamona Francesco 2004-09-27 10:48:18 UTC
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
Comment 3 Talamona Francesco 2004-11-04 10:44:35 UTC
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. 

Comment 4 Brian Harring (RETIRED) gentoo-dev 2005-02-27 22:09:24 UTC
thunk.