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

Bug 66057

Summary: portage won't install configure file (foo) into /etc anymore if /etc/foo exist (and has been modified.)
Product: Portage Development Reporter: Tuan Van (RETIRED) <langthang>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tuan Van (RETIRED) gentoo-dev 2004-10-01 12:49:04 UTC
portage doesn't install configure file (patch/to/foo) to /etc anyomre if /etc/path/to/ existed and the same package version has been installed.
I'll pick syslog-ng for example.

Reproducible: Always
Steps to Reproduce:
1. emerge syslog-ng
2. syslog-ng has been installed by portage (previous version sometime in the past)
# genlop -t syslog-ng
 * app-admin/syslog-ng

     Wed Aug 18 09:34:26 2004 >>> app-admin/syslog-ng-1.6.5
       merge time: 2 minutes and 12 seconds.

     Fri Oct  1 12:19:13 2004 >>> app-admin/syslog-ng-1.6.5-r1
       merge time: 2 minutes and 6 seconds.

     Fri Oct  1 12:21:35 2004 >>> app-admin/syslog-ng-1.6.5-r1
       merge time: 1 minute and 37 seconds.

     Fri Oct  1 12:25:31 2004 >>> app-admin/syslog-ng-1.6.5-r1
       merge time: 2 minutes and 18 seconds.

After syslog-ng emerged, portage correctly copy the syslog-ng.conf to /etc/syslog-ng/._cfg0000_syslog-ng.conf
I did a etc-update and merged the changed.
3. emerge syslog-ng (again)

Actual Results:  
syslog-ng doesn't get copy to /etc/syslog-ng/

Expected Results:  
syslog-ng get copy to /etc/syslog-ng/._cfg0000_syslog-ng.conf and prompt me to
do a etc-update.

the reason I emerge then reemerge is I am testing some USE flags for an ebuild I
maintained and notice this.

# emerge info
Portage 2.0.51_rc7 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.1,
glibc-2.3.4.20040808-r0, 2.6.8 i686)
=================================================================
System uname: 2.6.8 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs cvs distlocks sandbox sfperms sign userpriv usersanbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb bitmap-fonts crypt cups dba encode foomaticdb gd
gd-external gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww
mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png
postgres python qt quicktime readline sdl session slang spell sse ssl tcltk tcpd
tifftruetype unicode x86 xml2 xmms xprint xv zlib"
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-10-01 13:23:59 UTC
> carpaski: emerge --noconfmem\

Sorry for the noise.