Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90148 - portage-2.0.51.20: etc-update reports nothing to do despite config files needing updating
Summary: portage-2.0.51.20: etc-update reports nothing to do despite config files need...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-23 11:50 UTC by Michael Hill
Modified: 2005-04-24 04:11 UTC (History)
2 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 Michael Hill 2005-04-23 11:50:28 UTC
I just emerged portage-2.0.51.20 (part of emerge -u world) on two of my systems, and each one reported "X config files in /etc need updating."  etc-update reports the following:

# etc-update
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)

It exits with rc=0.  Looks like something got b0rked within etc-update .
Comment 1 Ciaran McCreesh 2005-04-23 11:55:33 UTC
Same here.

ciaranm@snowdrop ~ 0 0.31 $ find /etc/ -name '.*cfg*'
/etc/._cfg0000_dispatch-conf.conf
/etc/._cfg0000_make.conf.example
ciaranm@snowdrop ~ 0 0.13 $ sudo /usr/sbin/etc-update 
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)
Comment 2 Torsten Veller (RETIRED) gentoo-dev 2005-04-23 15:50:39 UTC
This directory is not in CONFIG_PROTECT so it is not scanned?
Comment 3 Renat Golubchyk 2005-04-23 16:09:32 UTC
Yes, thers is NO /etc in CONFIG_PROTECT. Here is mine:

CONFIG_PROTECT="/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"

There is no CONFIG_PROTECT in make.globals. Emerging baselayout just wiped out all my configs in /etc because of this! I noticed it only after env-update said there is nothing to update.

BTW, is it possible that portage-2.0.51.20.tar.bz2 is not complete? If you compare it to portage-2.0.51.19.tar.bz2 you'll see that the directory cnf does not contain arch-specific make.globals while they were present in 2.0.51.19. 

Hope you put /etc in CONFIG_PROTECT as soon as possible or many more people will have to restore their configuration from backup...
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-04-23 19:44:48 UTC
CONFIG_PROTECT has been updated in the profiles. It will hit the rsync mirrors in about 20 minutes (if it's not there already).

Yes, it was my fault for forgetting to add these, but why didn't anybody add these (at least to base) when it was first found?
Comment 5 Renat Golubchyk 2005-04-24 04:11:45 UTC
Damn, seems I sync'd my tree too early :-) Anyway, I've added CONFIG_PROTECT="/etc" to my make.conf just for the case something similar happens again. Maybe it's worth mentioning somewhere (newsletter?) as a trivial safeguard.