Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22064 - etc-update feature request (option to delete new config files)
Summary: etc-update feature request (option to delete new config files)
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14321 20223
  Show dependency tree
 
Reported: 2003-06-01 16:40 UTC by Simon Ask Ulsnes
Modified: 2004-05-18 15:59 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 Simon Ask Ulsnes 2003-06-01 16:40:06 UTC
Hello! First of all, thank you for giving us Gentoo... I'm a new person now... ;-) 
 
But! I really miss an option in etc-update to delete all new config files (might be 
accompanied be a warning). Most of the time, for example when updating Apache, 
PHP, or Portage, I don't want to overwrite my configs, as those can be difficult to 
reproduce. 
 
I am not certain that this is the right category for such a request, but feel free to move 
it somewhere more appropriate. 
 
- Simon 

Reproducible: Always
Steps to Reproduce:
1. Emerge Apache 
2. Configure it 
3. Emerge it again 
4. Realize that etc-update wants to overwrite your precious configs! 
Actual Results:  
I filed a feature request... 

Expected Results:  
Let me delete the new configs instead of making me create a mess messing around 
with messy shell scripts... 

I don't think you're really going to need this, but whatever... 
 
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) 
================================================================= 
System uname: 2.4.20-gaming-r3 i686 AMD Athlon(tm) Processor 
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="/usr/local/portage" 
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg gnome libg++ mikmod mmx 
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa 
gdbm berkdb slang readline arts tetex aalib bonobo svga tcltk java guile mysql X sdl 
gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl cdr 
acl acpi acpi4linux apache2 artswrappersuid dvd fbcon flash gd gnomedb gtk2 gtkhtml 
ipv6 libgda pic plotutils pnp samba sasl smooth usb vim-with-x wmf xml xosd" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=athlon -mcpu=athlon -O3 -pipe -fomit-frame-pointer -fforce-addr 
-falign-functions=4 -fprefetch-loop-arrays" 
CXXFLAGS="-march=athlon -mcpu=athlon -O3 -pipe -fomit-frame-pointer -fforce-addr 
-falign-functions=4 -fprefetch-loop-arrays" 
ACCEPT_KEYWORDS="x86 ~x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache"
Comment 1 Benjamin Collins 2003-07-22 08:24:22 UTC
umm....you can do this: cd /etc && rm -rf ._cfg* and that will delete all the new config files.
Comment 2 Zhen Lin 2003-07-22 08:27:12 UTC
Not good enough...

Actually, etc-update has the CONFIG_PROTECT directories hardcoded, it seems. It didn't offer to "update" my /var/bind/named.ca

find $CONFIG_PROTECT -name '._cfg*' -exec rm -fv {} \;
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2004-05-18 12:33:38 UTC
Not going to add delete-all.

etc-update uses the follow for the protected and masked dirs:
/usr/lib/portage/bin/portageq config_protect
/usr/lib/portage/bin/portageq config_protect_mask