Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259098 - portage-2.2_rc23: crash for every packet with error "unset: IUSE: cannot unset: readonly variable"
Summary: portage-2.2_rc23: crash for every packet with error "unset: IUSE: cannot unse...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-15 14:37 UTC by Tiou
Modified: 2009-02-15 16:43 UTC (History)
1 user (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 Tiou 2009-02-15 14:37:32 UTC
for every version of portage >2.2, i've got an error which i've been unable to find on google.
The only workaround is to download portage-2.2_rc15.tar.bz2 from distfiles.gentoo.org, and copy "bin" an"pym" directory to my system.

I also tried to emerge portage with paludis, but i get the same error.
Unmerge portage is impossible, but i managed to delete every file listed by "equery files portage", then reinstalling with paludis. Again, the bug occurs.

Thanks by 

Reproducible: Always

Steps to Reproduce:
1. emerge <any_package>
2.
3.

Actual Results:  
>>> Emerging (1 of 1) net-analyzer/nmap-4.76
 * nmap-4.76.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                   [ ok ]
 * checking ebuild checksums ;-) ...                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                 [ ok ]
>>> Unpacking source...                                                                                                      
>>> Unpacking nmap-4.76.tar.bz2 to /var/tmp/portage/net-analyzer/nmap-4.76/work                                              
 * Applying nmap-4.75-include.patch ...                                                                                 [ ok ]
 * Applying nmap-4.75-nolua.patch ...                                                                                   [ ok ]
>>> Source unpacked in /var/tmp/portage/net-analyzer/nmap-4.76/work
 * QA Notice: ECLASS 'versionator' inherited illegally in net-analyzer/nmap-4.76 compile
/usr/lib64/portage/bin/ebuild.sh: line 1234: unset: IUSE: cannot unset: readonly variable
/usr/lib64/portage/bin/ebuild.sh: line 1234: unset: DEPEND: cannot unset: readonly variable
/usr/lib64/portage/bin/ebuild.sh: line 1234: unset: RDEPEND: cannot unset: readonly variable
/usr/lib64/portage/bin/ebuild.sh: line 1234: unset: PDEPEND: cannot unset: readonly variable
/usr/lib64/portage/bin/ebuild.sh: line 1250: IUSE: readonly variable



emerge --info                               
Portage 2.2_rc23 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 x86_64)
=================================================================                                                
System uname: Linux-2.6.28-gentoo-r1-x86_64-AMD_Processor_model_-with-glibc2.2.5                                 
Timestamp of tree: Sun, 15 Feb 2009 07:30:01 +0000                                                               
ccache version 2.4 [disabled]                                                                                    
app-shells/bash:     3.2_p39                                                                                     
dev-java/java-config: 1.3.7-r1, 2.1.6-r1                                                                         
dev-lang/python:     2.5.2-r7                                                                                    
dev-util/ccache:     2.4-r7                                                                                      
dev-util/cmake:      2.6.2-r1                                                                                    
sys-apps/baselayout: 1.12.11.1                                                                                   
sys-apps/sandbox:    1.2.18.1-r2                                                                                 
sys-devel/autoconf:  2.13, 2.63                                                                                  
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                            
sys-devel/binutils:  2.19.51.0.2                                                                                 
sys-devel/gcc-config: 1.4.0-r4                                                                                   
sys-devel/libtool:   1.5.26                                                                                      
virtual/os-headers:  2.6.27-r2                                                                                   
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8-sse3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,--hash-style=both"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi aiglx alsa amd64 apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt css cups dbus divx dri dvd dvdr dvdread eds emboss encode esd evo exif fam ffmpeg ffpmeg firefox fortran gdbm geoip gif gimp glibc-omitfp glitz gnome gphoto2 gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg jpeg2k kde kdehiddenvisibility kdeprefix kerberos kipi kpathsea ldap libnotify lm_sensors logitech-mouse mad matroska midi mikmod mmx mng mp3 mp4 mpeg mudflap multilib musicbrainz mysql ncurses nepomuk nls npp nptl nptlonly nsplugin nxclient ogg opengl openmp pam pcre pdf perl php pic plasma png ppds pppd python qt3 qt3support qt4 quicktime raw rdesktop readline reflection samba sasl scanner sdl sessionsmp speex spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb userlocales v4lv4l2 vorbis webkit x264 xcb xcomposite xine xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Martin Väth 2009-02-15 16:24:29 UTC
I had found to my regret some months ago that this problem occurs if you use
e.g. some "inherit" in some /etc/portage/env/*/* file; probably the same holds
also for /etc/portage/bashrc.

(The reason why I wanted "inherit" in such a file is that I wanted to
use "epatch" which is only available in some eclass - I ended up
reinventing the wheel... eerh... reimplementing epatch).
Comment 2 Tiou 2009-02-15 16:43:34 UTC
It's OK now.
I tried to play with a /etc/portage/bashrc to optimize a blender compilation some months ago.

Thanks !