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

Bug 371423

Summary: InvalidDependString: USE flag 'extras' referenced in conditional 'extras?' is not in IUSE
Product: Portage Development Reporter: Marcin Gryszkalis <mg>
Component: CoreAssignee: Portage team <dev-portage>
Severity: normal CC: gmurray
Priority: Normal Keywords: REGRESSION
Version: unspecified   
Hardware: All   
OS: All   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 358927    
Attachments: avoid the InvalidDependString exception

Description Marcin Gryszkalis 2011-06-13 14:42:01 UTC
# emerge -uptv world

Calculating dependencies... done!
Traceback (most recent call last):
  File "/usr/bin/emerge", line 43, in <module>
    retval = emerge_main()
  File "/usr/lib/portage/pym/_emerge/", line 1907, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib/portage/pym/_emerge/", line 295, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib/portage/pym/_emerge/", line 6673, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib/portage/pym/_emerge/", line 6705, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib/portage/pym/_emerge/", line 2178, in select_files
    return self._resolve(myfavorites)
  File "/usr/lib/portage/pym/_emerge/", line 2293, in _resolve
    if not self._create_graph():
  File "/usr/lib/portage/pym/_emerge/", line 814, in _create_graph
    if not self._pop_disjunction(allow_unsatisfied):
  File "/usr/lib/portage/pym/_emerge/", line 1811, in _pop_disjunction
    pkg, dep_root, dep_priority, dep_string, allow_unsatisfied):
  File "/usr/lib/portage/pym/_emerge/", line 1431, in _add_pkg_dep_string
  File "/usr/lib/portage/pym/_emerge/", line 1552, in _wrapped_add_pkg_dep_string
  File "/usr/lib/portage/pym/_emerge/", line 896, in _add_dep
  File "/usr/lib/portage/pym/_emerge/", line 3269, in _select_pkg_highest_available
    ret = self._select_pkg_highest_available_imp(root, atom, onlydeps=onlydeps)
  File "/usr/lib/portage/pym/_emerge/", line 3325, in _select_pkg_highest_available_imp
  File "/usr/lib/portage/pym/_emerge/", line 3748, in _wrapped_select_pkg_highest_available_imp
    use = self._pkg_use_enabled(pkg, target_use)
  File "/usr/lib/portage/pym/_emerge/", line 3518, in _pkg_use_enabled
    if want_restart_for_use_change(pkg, new_use):
  File "/usr/lib/portage/pym/_emerge/", line 3482, in want_restart_for_use_change
    old_val = set(portage.dep.use_reduce(dep, pkg.use.enabled, is_valid_flag=pkg.iuse.is_valid_flag, flat=True))
  File "/usr/lib/portage/pym/portage/dep/", line 400, in use_reduce
    if is_active(stack[level][-1]):
  File "/usr/lib/portage/pym/portage/dep/", line 324, in is_active
    raise InvalidDependString(msg, errors=(e,))
InvalidDependString: USE flag 'extras' referenced in conditional 'extras?' is not in IUSE

Reproducible: Always

# emerge --info

Portage 2.2.0_alpha39 (default/linux/x86/10.0, gcc-4.5.2, glibc-2.13-r1, 2.6.39-gentoo-ines i686)
System uname: Linux-2.6.39-gentoo-ines-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.2
Timestamp of tree: Mon, 13 Jun 2011 10:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 3.1.5 [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.6-r1, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.4
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r1
Repositories: gentoo x-portage
Installed sets:
CFLAGS="-march=prescott -O2 -pipe -ggdb -fvar-tracking -DDEBUG_FASTCGI"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=prescott -O2 -pipe -ggdb -fvar-tracking -DDEBUG_FASTCGI"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages installsources metadata-transfer news nostrip notitles parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en pl"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="3dnow 3dnowex X acl acpi adns alsa apache2 apng aspell async audio berkdb bittorrent bluetooth branding browserplugin bzip2 cairo cgi cleartype cli consolekit cracklib crypt css cups curl cxx dbus dga divx4linux dlloader doc dri dvd dvdr enca encode exif expat fam fastcgi ffmpeg flac fontconfig fortran gd gdbm geoip gif gimp gimpprint glitz gmp gnome google-gadgets gpm gstreamer gtk gtkhtml hash iconv imagemagick inifile innodb ipv6 irda ispell jabber jack java java6 javamail javascript jpeg junit kde kipi kpathsea lcms ldap libnotify lm_sensors lua lzma maildir mbox mikmod mmx mmxext mng modules mono mozdevelop mp3 mp4 mplayer mudflap multimedia musepack musicbrainz mysql mysqli ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp openssl pam pcre pdf perl phonon php png policykit posix ppd ppds pppd python qt3support qt4 rar rdp readline reports ruby samba schroedinger script sdl secure-delete semantic-desktop server session slang source speex spell sql sqlite sse sse2 ssl ssse3 svg symlink sysfs tcpd theora threads tiff tk transcode trayicon truetype tv type1 udev unicode usb v4l v4l2 vaapi vdpau video vim-syntax visualization vnc vorbis webkit wf win32codecs wxwidgets x264 x86 xcb xcomposite xetex xinerama xml xorg xsl xulrunner xv xvid zlib zsh-completion zvbi" 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 cgi 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 speling status unique_id userdir usertrack vhost_alias asis authn_alias substitute version cern_meta charset_lite dumpio" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="aox canon digigr8 digita directory fuji hp215 iclick konica lg_gsm mustek pccam300 pccam600 ptp2 ricoh samsung template adc65 agfa_cl20 barbie casio_qv clicksmart310 dimagev dimera3500 enigma13 gsmart300 jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 largan mars panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z toshiba_pdrm11 agfacl20 casio dimera kodak minolta panasonic polaroid sipix sonydscf1 sonydscf55 toshiba" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" NETBEANS_MODULES="apisupport harness ide identity java nb php profiler websvccommon ruby enterprise" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_req limit_zone map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition dav degradation gzip_static headers_more image_filter perl push random_index realip stub_status sub xslt" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nvidia vesa nv" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 Marcin Gryszkalis 2011-06-13 20:55:29 UTC
just fyi - I had extras in USE, I removed it to test if it helps (no difference).
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-13 21:12:31 UTC
Portage probably checked USE flags from VDB instead of an ebuild.
"extras" USE flag was recently added to sys-fs/udev-171-r1. Does the following command avoid traceback?:
emerge -uptv world sys-fs/udev

(Don't yet reinstall sys-fs/udev to help in fixing of Portage.)
Comment 3 Zac Medico gentoo-dev 2011-06-13 21:54:06 UTC
Created attachment 276969 [details, diff]
avoid the InvalidDependString exception

Save as /tmp/bug_371423.patch and apply as follows:

  patch /usr/lib/portage/pym/_emerge/ /tmp/bug_371423.patch
Comment 4 Marcin Gryszkalis 2011-06-13 22:21:36 UTC
The patch fixes exception, now it seems that I have to resolve these udev dependencies but that's another story. Thanks Zac.
Comment 5 Zac Medico gentoo-dev 2011-06-13 22:45:36 UTC
Thanks for testing. I'm going to re-open this until I've done a release with this fix, since others are likely to encounter this.
Comment 6 Zac Medico gentoo-dev 2011-06-13 22:45:59 UTC
*** Bug 371359 has been marked as a duplicate of this bug. ***
Comment 7 Zac Medico gentoo-dev 2011-06-14 00:47:41 UTC
This is fixed in and 2.2.0_alpha41.