Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108070 - unmerging app-admin/sudo-1.6.8_p9 failed
Summary: unmerging app-admin/sudo-1.6.8_p9 failed
Status: RESOLVED CANTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-04 07:05 UTC by Andreas Höhmann
Modified: 2005-10-23 01:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
tarball of /var/db/pkg/app-admin/sudo-1.6.8_p9 (sudo-1.6.8_p9.tgz,32.92 KB, application/x-compressed-tar)
2005-10-13 01:49 UTC, Andreas Höhmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Höhmann 2005-10-04 07:05:24 UTC
000001 *** emerge unmerge --verbose --nospinner app-admin/sudo ***
000002 
000003  app-admin/sudo
000004     selected: 1.6.8_p9 1.6.8_p9-r2
000005    protected: none
000006      omitted: none
000007 
000008 >>> 'Selected' packages are slated for removal.
000009 >>> 'Protected' and 'omitted' packages will not be removed.
000010 
000011 >>> Waiting 5 seconds before starting...
000012 >>> (Control-C to abort)...
000013 >>> Unmerging in: 5 4 3 2 1 
000014 >>> Unmerging app-admin/sudo-1.6.8_p9...
000015 No package files given... Grabbing a set.
000016 Traceback (most recent call last):
000017   File "/usr/bin/emerge", line 2954, in ?
000018     if 1==unmerge(myaction, myfiles):
000019   File "/usr/bin/emerge", line 2251, in unmerge
000020    
retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,mysettings,unmerge_action
not in ["clean","prune"])
000021   File "/usr/lib/portage/pym/portage.py", line 2901, in unmerge
000022     mylink.unmerge(trimworld=mytrimworld,cleanup=1)
000023   File "/usr/lib/portage/pym/portage.py", line 6119, in unmerge
000024     spawn("bzip2 -d "+self.dbdir+"/environment.bz2",self.settings,free=1)
000025   File "/usr/lib/portage/pym/portage.py", line 1603, in spawn
000026     return portage_exec.spawn_bash(mystring,env=env,**keywords)
000027   File "/usr/lib/portage/pym/portage_exec.py", line 48, in spawn_bash
000028     return spawn(args,env=env,opt_name=opt_name,**keywords)
000029   File "/usr/lib/portage/pym/portage_exec.py", line 164, in spawn
000030     raise str(e)+":\n   "+myc+" "+string.join(myargs)
000031 execve() arg 3 contains a non-string value:
000032    /bin/bash [sudo-1.6.8_p9] bash -c bzip2 -d
/var/db/pkg/app-admin/sudo-1.6.8_p9/environment.bz2
000033 Traceback (most recent call last):
000034   File "/usr/bin/emerge", line 2954, in ?
000035     if 1==unmerge(myaction, myfiles):
000036   File "/usr/bin/emerge", line 2251, in unmerge
000037    
retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,mysettings,unmerge_action
not in ["clean","prune"])
000038   File "/usr/lib/portage/pym/portage.py", line 2901, in unmerge
000039     mylink.unmerge(trimworld=mytrimworld,cleanup=1)
000040   File "/usr/lib/portage/pym/portage.py", line 6130, in unmerge
000041    
a=doebuild(myebuildpath,"prerm",self.myroot,self.settings,cleanup=cleanup,use_cache=0,tree="vartree")
000042   File "/usr/lib/portage/pym/portage.py", line 2611, in doebuild
000043     return spawn(EBUILD_SH_BINARY+"
"+mydo,mysettings,debug=debug,free=1,logfile=logfile)
000044   File "/usr/lib/portage/pym/portage.py", line 1603, in spawn
000045     return portage_exec.spawn_bash(mystring,env=env,**keywords)
000046   File "/usr/lib/portage/pym/portage_exec.py", line 48, in spawn_bash
000047     return spawn(args,env=env,opt_name=opt_name,**keywords)
000048   File "/usr/lib/portage/pym/portage_exec.py", line 164, in spawn
000049     raise str(e)+":\n   "+myc+" "+string.join(myargs)
000050 execve() arg 3 contains a non-string value:
000051    /bin/bash [sudo-1.6.8_p9] bash -c /usr/lib/portage/bin/ebuild.sh prerm
000052 !!! FAILED prerm: 1
000053 *** process completed ***


Reproducible: Always
Steps to Reproduce:
1. emerge --unmerge app-admin/sudo
2.
3.




troll ~ # emerge --info admin-app/sudo
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1300MHz
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2
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-r1
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="-O3 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /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/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 apm arts atk audiofile avi bash-completion berkdb
bitmap-fonts bl bootsplash browserplugin bzip2 ccache cdr cpudetection crypt
cups curl dmx doc dvd dvdr dvdread ecc eds emboss encode esd fam fat fbcon
font-server foomaticdb fortran freetds gatos gd gdbm gif glibc-omitfp gnokii
gnome gpm gstreamer gtk gtk2 hal hpn i8x0 idea ieee1394 imagemagick imlib
ithreads java jikes jpeg junit kde libclamav libg++ libwww linuxthreads-tls
logitech-mouse mad mailwrapper mikmod mmx motif mozilla mozsvg mp3 mpeg
multislot mysql ncurses nls no-old-linux ntfs ogg oggvorbis opengl openssh
openssl osc pam pam_console pcre pdflib perl png posix postgres python qt
quicktime readline recode reiserfs rtc sdl sendmail shared sharedmem smime
sockets spell sql sse sse2 ssl subtitles sybase sybase-ct sysfs tcpd threads
tiff truetype truetype-fonts type1-fonts usb userlocales vim vim-pager
vim-with-x vorbis wifi xine xinerama xml xml2 xmms xv zlib video_cards_i810
linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-10-12 21:38:29 UTC
tarball up /var/db/pkg/app-admin/sudo-1.6.8_p9 , and post it here.
You've got corruption in your vdb entry, marking as cantfix in the meantime,
since it's not something portage can fix.
Comment 2 Andreas Höhmann 2005-10-13 01:49:00 UTC
Created attachment 70534 [details]
tarball of /var/db/pkg/app-admin/sudo-1.6.8_p9

note: i can do "emerge --unmerge sudo-1.6.8_p9-r2" without problems.
I thin you are right ... my var-partition was defekt week's ago.
is it possible to "rebuild" the var-db?
Comment 3 Brian Harring (RETIRED) gentoo-dev 2005-10-13 02:27:18 UTC
your DEPEND is corrupted, invalid chars in it.
echo '' > /var/db/pkg/app-admin/sudo-1.6.8_p9/DEPEND ; then unmerge
sudo-1.6.8_p9 should solve it.

Don't leave the DEPEND empty like that long term though, it's not a good idea;
the trick above just nukes the corruption by emptying the file, but that'll
screw up portage's dependency tracking for -D.

Regarding rebuilding the vdb (/var/db/pkg), nope, you're pretty much boned if fs
corrupts it.