Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 140045

Summary: sys-apps/portage-2.1.1_pre2-r7 clobbers configuration files
Product: Portage Development Reporter: Paul Taylor <birder>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: critical Keywords: InVCS, REGRESSION
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 136244    

Description Paul Taylor 2006-07-11 15:27:13 UTC
I updated two packages this morning on one of my boxes:  sys-apps/portage-2.1.1_pre2-r7 and net-firewall/shorewall-3.0.8.

After the latter was installed, I noticed that it didn't prompt me to merge my configuration as it normally does, and discovered that it had simply overwritten the existing configuration instead of creating ._cfg* files.  That's bad.

The ebuilds for shorewall-3.0.7 and 3.0.8 are the same (except for the header), which points the finger squarely at the portage update as the cause.

I suggest that sys-apps/portage-2.1.1_pre2-r7 is masked ASAP, as this will bite a lot of people.


# emerge --info
Portage 2.1.1_pre2-r7 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r2 i686)
=================================================================
                       System Settings
=================================================================
System uname: 2.6.17-gentoo-r2 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -O3 -pipe -msse -mfpmath=sse -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
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/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O3 -pipe -msse -mfpmath=sse -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.iinet.com.au/linux/Gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_AU"
LC_ALL="en_AU"
PKGDIR="/usr/portage/packages"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 3dnow X acl alsa apache2 apm arts async avi berkdb bitmap-fonts chroot cli crypt cups dlloader dri dvd eds emboss encode foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 imap imlib ipv6 isdnlog java jpeg kde libclamav libg++ libwww lm_sensors mad maildir mikmod mmap mmx modperl motif mp3 mpeg mpm-worker ncurses nls nptl nptlonly nvidia ogg opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection session spamassassin spell spl ssl symlink tcpd threads tiff truetype truetype-fonts type1-fonts udev userlocales virus-scan vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Paul Taylor 2006-07-11 15:34:12 UTC
Just to confirm, after I downgraded to sys-apps/portage-2.1.1_pre2-r6, configuration files are once again protected.
Comment 2 Zac Medico gentoo-dev 2006-07-12 03:50:57 UTC
Sorry about that.  The problem is fixed in svn r3837 and released in 2.1.1_pre2-r8.