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

Bug 364701

Summary: sys-apps/portage: emerge --autounmask should not suggest changing masked use flags
Product: Portage Development Reporter: Graham Murray <graham>
Component: CoreAssignee: Portage team <dev-portage>
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 300071, 358927    

Description Graham Murray 2011-04-24 18:04:59 UTC
emerge -puDv --reinstall changed-use  --autounmask=y @world @system

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] media-libs/libpng-1.4.7 [1.4.5] USE="-static-libs" 535 kB
[ebuild     U  ] dev-libs/gobject-introspection-0.10.8 [0.10.7-r1] USE="doc -test" 1,001 kB
[ebuild     U  ] x11-libs/gdk-pixbuf-2.22.1-r1 [2.22.1] USE="X doc (introspection*) jpeg jpeg2k tiff -debug -test" 0 kB
[ebuild   R    ] dev-libs/atk-1.32.0  USE="doc (introspection*) nls" 0 kB
[ebuild   R    ] x11-libs/pango-1.28.4  USE="X doc (introspection*) -debug -test" 0 kB
[ebuild   R    ] media-video/mjpegtools-1.9.0-r1  USE="dv gtk mmx png quicktime sdl v4l yv12 -dga (-X%*)" 0 kB
[ebuild  N     ] media-video/gpac-0.4.5-r4  USE="a52 aac alsa ffmpeg ipv6 jack javascript jpeg jpeg2k mad opengl oss png pulseaudio sdl ssl theora truetype vorbis xml xvid -debug -wxwidgets" 0 kB                                                                                                                                                                     
[ebuild     U  ] dev-db/mysql-5.1.56 [5.1.53] USE="community embedded perl ssl -big-tables -cluster -debug -extraengine -latin1 -max-idx-128 -minimal -pbxt -profiling (-selinux) -static -test -xtradb" 0 kB                                                                                                                                                           
[ebuild   R    ] x11-libs/gtk+-3.0.9  USE="cups doc examples introspection* vim-syntax (-aqua) -debug -test -xinerama" 0 kB
[ebuild     U  ] app-text/libwpd-0.8.14-r1 [0.8.14] USE="doc -test% -tools%" 0 kB
[ebuild  N     ] sci-chemistry/openbabel-python-2.3.0  0 kB
[ebuild   R    ] sci-chemistry/openbabel-2.3.0  USE="doc perl* python* -wxwidgets" 0 kB

Total: 12 packages (5 upgrades, 2 new, 5 reinstalls), Size of downloads: 1,536 kB

The following USE changes are necessary to proceed:
#required by x11-libs/gtk+-3.0.9, required by dev-ada/gtkada-2.10.0, required by @selected, required by @world (argument)
=x11-libs/gdk-pixbuf-2.22.1-r1 introspection
#required by x11-libs/gtk+-3.0.9, required by dev-ada/gtkada-2.10.0, required by @selected, required by @world (argument)
=x11-libs/pango-1.28.4 introspection
#required by x11-libs/gtk+-3.0.9, required by dev-ada/gtkada-2.10.0, required by @selected, required by @world (argument)
=dev-libs/atk-1.32.0 introspection

The introspection use flag is shown in  brackets for the packages indicating that it is use masked.

emerge --info
Portage 2.2.0_alpha30 (default/linux/x86/10.0/desktop, gcc-4.5.2, libc-0-r0, 2.6.39-rc4-00183-g0f1d9f7 i686)
System uname: Linux-2.6.39-rc4-00183-g0f1d9f7-i686-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-gentoo-2.0.2
Timestamp of tree: Sun, 24 Apr 2011 16:45:01 +0000
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3, 3.2
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.3.5, 4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.38
virtual/os-headers:  0
Repositories: gentoo perl-experimental sunrise x11 kde newton_local
Installed sets: 
CFLAGS="-O2 -march=native -mtune=native -pipe -ggdb"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/games/angband/edit/ /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="-O2 -march=native -mtune=native -pipe -ggdb"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests binpkg-logs buildsyspkg distlocks fixlafiles fixpackages installsources news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en fr_FR fr"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/perl-experimental /var/lib/layman/sunrise /var/lib/layman/x11 /var/lib/layman/kde /usr/local/portage"
USE="X a52 aac aalib acl acpi aim alsa apache2 audiofile avi bash-completion berkdb bluetooth bonobo branding browserplugin bzip2 bzlib cairo caps cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt cups curl cvs cxx dbus directfb doc dri dts dv dvd dvdr dvdread eds emacs emboss encode esd ethereal examples exif expat fam fbcon ffmpeg fftw flac fontconfig foomaticdb fortran ftp gcj gd gdbm gdu geoip gif glut gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile htmlhandbook iconv icq icu idn imagemagick imlib ipv6 jabber jack java javascript jbig jce jpeg jpeg2k junit kde kdehiddenvisibility ladspa latex lcms ldap leim libgda libnotify libsamplerate libwww lm_sensors logrotate lua lzma mad matroska mbox mikmod milter mime mmap mmx mng modplug modules mono mozilla mp3 mp4 mpeg mpi mplayer msn mtp mudflap musepack musicbrainz mysql ncurses nls nptl nptlonly nsplugin odbc offensive ogg oggvorbis openal opengl openmp oscar oss pam pango pcntl pcre pdf perl php plasma png policykit postgres ppds pppd profile pulseaudio python qt3support qt4 quicktime raw readline recode ruby samba sasl sdl semantic-desktop session sharedmem sndfile snmp soap sockets sox speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs sysvipc tcl tcltk tcpd theora threads tiff tk truetype udev unicode usb v4l v4l2 vim-syntax vorbis wavpack win32codecs wmf wxwindows x264 x86 xattr xcb xcomposite xface xft xine xml xml2 xorg xulrunner xv xvid yahoo 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" APACHE2_MPMS="worker" CAMERAS="canon ptp2" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en fr_FR fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev vga v4l r300" 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 Zac Medico gentoo-dev 2011-04-25 05:54:39 UTC
It seems that the depgraph._pkg_use_enabled() method does not account for pkg.use.mask or pkg.use.force when it satisfies target_use.
Comment 3 Zac Medico gentoo-dev 2011-05-05 19:53:36 UTC
This is fixed in and 2.2.0_alpha31.