Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105391 - emerge traceback when unmerging system packages
Summary: emerge traceback when unmerging system packages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 106646 (view as bug list)
Depends on:
Blocks: 108082
  Show dependency tree
 
Reported: 2005-09-09 07:59 UTC by Barbu Eros Iulian
Modified: 2005-10-04 08:37 UTC (History)
3 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 Barbu Eros Iulian 2005-09-09 07:59:09 UTC
emerge -pC gcc

>>> These are the packages that I would unmerge:
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2966, in ?
    if 1==unmerge(myaction, myfiles):
  File "/usr/bin/emerge", line 2208, in unmerge
    print red("\a\n\n!!! '%s' is part of your system profile. '%s'" % (mykey))
TypeError: not enough arguments for format string


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-09 08:01:31 UTC
You neglected to post emerge --info output.
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2005-09-09 08:04:52 UTC
It's valid.  
 
Comment 3 Barbu Eros Iulian 2005-09-09 22:54:50 UTC
Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gentoo i686)
=================================================================
System uname: 2.6.13-gentoo i686 AMD Duron(tm) processor
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-tbird -mtune=athlon-tbird -fstack-protector
-fomit-frame-pointer"
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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-tbird -mtune=athlon-tbird -fstack-protector
-fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks prelink sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://gentoo.umfiasi.ro/gentoo-portage/"
USE="x86 3dnow 3dnowext X aalib alsa apache2 apm arts avi berkdb bitmap-fonts
cdr crypt cups curl dba divx4linux dvdr eds emboss encode esd flac foomaticdb
fortran gd gdbm gif gimp gnokii gnome gphoto2 gpm gstreamer gtk gtk2 hal
imagemagick imlib jack java jpeg junit kde ldap libg++ libwww mad mikmod mmx
mmxext motif mozilla mp3 mpeg ncurses nls nvidia ogg oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline real samba scanner sdl skey slang
sms snmp spell sse ssl svga symlink tcltk tcpd tiff truetype truetype-fonts
type1-fonts usb vl4 vorbis win32codecs xine xml2 xmms xv xvid yahoo zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY

Comment 4 Paul Varner (RETIRED) gentoo-dev 2005-09-15 13:54:17 UTC
I have gentoolkit in /etc/portage/profile/packages and ran into the error when
trying to unmerge gentoolkit. I removed gentoolkit from my system profile and it
worked fine.

Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.13
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.8.1-r1, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -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/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en"
MAKEOPTS=""
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="x86 X acpi alsa arts crypt esd gif gtk gtk2 imap java jpeg kde kdexdeltas
mbox mmx mozilla mp3 nsplugin oggvorbis pam png readline spell sse ssl tiff usb
vorbis xscreensaver zlib linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 5 Harold Anderson 2005-09-16 08:59:32 UTC
(In reply to comment #4)
> I have gentoolkit in /etc/portage/profile/packages and ran into the error when
> trying to unmerge gentoolkit. I removed gentoolkit from my system profile and it
> worked fine.
I don't even have such a file on my system.

I have a directory /usr/portage/profile (not /etc),
but there is no packages file in it.

Anyway, I'm haveing the same problem trying to unmerge glibc
on AMD with ACCEPT_KEYWORDS="~amd" and USE="nptl".
Comment 6 Paul Varner (RETIRED) gentoo-dev 2005-09-16 09:15:12 UTC
That is because in my case, I had extended my system profile using files in
/etc/portage.  glibc and gcc are in your system profile (which is the directory
pointed to by the /etc/make.profile symbolic link). If you understand the
profiles, you could remove them in order to work around this bug.  However,
messing with the profiles and unmerging system packages can quickly make your
system unusable. So I wouldn't recommend doing that, unless you have a good
backup and understand what you are doing. For more information "man portage" is
a good place to start.
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2005-09-19 23:12:38 UTC
*** Bug 106646 has been marked as a duplicate of this bug. ***
Comment 8 Krzysztof Pawlik (RETIRED) gentoo-dev 2005-10-01 11:34:57 UTC
Yeap... I've hit it:

nelchael@nelchael ~$ emerge -pvC binutils glibc

>>> These are the packages that I would unmerge:
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2966, in ?
    if 1==unmerge(myaction, myfiles):
  File "/usr/bin/emerge", line 2208, in unmerge
    print red("\a\n\n!!! '%s' is part of your system profile. '%s'" % (mykey))
TypeError: not enough arguments for format string
nelchael@nelchael ~$ emerge -pv portage binutils glibc

These are the packages that I would merge, in order:

Calculating dependencies    ...done!

[ebuild   R   ] sys-apps/portage-2.0.52-r1  -build (-selinux) 0 kB 
*** Portage will stop merging at this point and reload itself,
    recalculate dependencies, and complete the merge.
    You may avoid the remerging of packages by updating portage on its own.
[ebuild   R   ] sys-devel/binutils-2.16.1  -multislot -multitarget +nls -test 0 kB 
[ebuild   R   ] sys-libs/glibc-2.3.5-r1  -build -erandom -glibc-compat20
-glibc-omitfp -hardened -linuxthreads-tls (-multilib) +nls +nptl +nptlonly -pic
-profile (-selinux) +userlocales 24 kB 

Total size of downloads: 24 kB
nelchael@nelchael ~$ emerge info
Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-ck6 i686)
=================================================================
System uname: 2.6.13-ck6 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [disabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy cvs digest distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://mirrors1.netvisao.pt/gentoo/ http://gentoo.seren.com/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm avi bash-completion berkdb bitmap-fonts bzip2 cdr
crypt eds emboss foomaticdb fortran gstreamer gtk gtk2 imlib java jpeg
kdeenablefinal libg++ libwww mad mmx mmx2 mmxext mpeg ncurses nls nptl offensive
ogg oggvorbis opengl pam perl png python qt quicktime readline samba sse sse2
ssl svg tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xv zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

nelchael@nelchael ~$ 
Comment 9 Brian Harring (RETIRED) gentoo-dev 2005-10-01 14:33:26 UTC
fixed in the masked .53