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

Bug 104359

Summary: Emerging gentoo-sources erases /usr/src/linux/.config (and all .name files)
Product: Gentoo Linux Reporter: MinusVee
Component: New packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED DUPLICATE    
Severity: critical CC: ferringb
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The log of the "emerge gentoo-sources" which erased the file

Description MinusVee 2005-08-31 02:03:25 UTC
When I try to "emerge gentoo-sources" (originally caused by running "emerge -e 
world"), the system erases my .(name) files in "/usr/src/linux". (Most 
notably .config gets erased).

I am on kernel 2.6.12-gentoo-sources-r9

Reproducible: Always
Steps to Reproduce:
1. verify that files exist (ls -a /usr/src/linux)
2. run emerge gentoo-sources

Actual Results:  
All files starting with a . are erased

Expected Results:  
Not erased the files

Results from "emerge --info":

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.5-
r1, 2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share
/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/
mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/getoo/ 
ftp://gentoo.chem.wisc.edu/gentoo/ 
ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ 
http://distro.ibiblio.org/pub/linux/distributions/gentoo/ 
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo 
ftp://mirror.iawnet.sandia.gov/pub/gentoo/ 
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.seren.com/gentoo 
http://gentoo.ccccom.com ftp://gentoo.ccccom.com 
http://gentoo.mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dvd dvdr 
eds emboss encode esd fam foomaticdb fortran ftp gd gdbm gif gnome gpm 
gstreamer gtk gtk2 hal howl imlib ipv6 jpeg kde libg++ libwww mad mikmod motif 
mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png 
python qt quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts 
type1-fonts usb vorbis xinetd xml2 xmms xv zlib userland_GNU kernel_linux 
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 MinusVee 2005-08-31 02:07:34 UTC
Created attachment 67330 [details]
The log of the "emerge gentoo-sources" which erased the file
Comment 2 MinusVee 2005-08-31 02:09:04 UTC
emerge --info below (attached in case previous "info" comment vanished):

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.5-
r1, 2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share
/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/
mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/getoo/ 
ftp://gentoo.chem.wisc.edu/gentoo/ 
ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ 
http://distro.ibiblio.org/pub/linux/distributions/gentoo/ 
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo 
ftp://mirror.iawnet.sandia.gov/pub/gentoo/ 
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.seren.com/gentoo 
http://gentoo.ccccom.com ftp://gentoo.ccccom.com 
http://gentoo.mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dvd dvdr 
eds emboss encode esd fam foomaticdb fortran ftp gd gdbm gif gnome gpm 
gstreamer gtk gtk2 hal howl imlib ipv6 jpeg kde libg++ libwww mad mikmod motif 
mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png 
python qt quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts 
type1-fonts usb vorbis xinetd xml2 xmms xv zlib userland_GNU kernel_linux 
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

Comment 3 Henrik Brix Andersen 2005-08-31 02:32:54 UTC
Your configuration file should be available as
/usr/src/linux-2.6.12-gentoo-r9.config.gz after unmerging the kernel source.

*** This bug has been marked as a duplicate of 101426 ***
Comment 4 Brian Harring (RETIRED) gentoo-dev 2005-08-31 02:36:16 UTC
Care to elaborate on why this package is 
A) running make clean within the livefs (this is kind of a no no)
B) why specifically for his run, it's nuking his config, yet for my tests it
doesn't?

In his case, the removal of the .config is horking up portage's building;
additionally, in digging through the logs I'm not seeing any output to indicate
this is occuring.

Reopening.
Comment 5 Brian Harring (RETIRED) gentoo-dev 2005-08-31 02:37:36 UTC
Scratch that, bugzie at 4:36 am is a stupid move on my part, slapping my
comments into 101426 (then sleep, and less annoying others)

*** This bug has been marked as a duplicate of 101426 ***