Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318901 - emerge world doesn't update new useflag .. sometimes
Summary: emerge world doesn't update new useflag .. sometimes
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 324663 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-07 18:47 UTC by niogic
Modified: 2022-10-20 02: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 niogic 2010-05-07 18:47:18 UTC
# emerge -pvtuDN world

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

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

# emerge -pN qt-gui

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

Calculating dependencies... done!
[ebuild   R   ] x11-libs/qt-core-4.6.2-r1  USE="qt3support*" 
[ebuild   R   ] x11-libs/qt-gui-4.6.2-r1  USE="qt3support* -accessibility*" 
[ebuild  N    ] x11-libs/qt-sql-4.6.2  USE="exceptions iconv qt3support sqlite (-aqua) -debug -firebird -mysql -odbc -pch -postgres" 
[ebuild  N    ] x11-libs/qt-qt3support-4.6.2  USE="exceptions -accessibility (-aqua) -debug -kde -pch -phonon" 


# ls -l /etc/make.profile
lrwxrwxrwx 1 root root 69  1 apr 23.57 /etc/make.profile -> ../mnt/schedasd/portage/profiles/default/linux/x86/10.0/desktop/gnome

# emerge --info
Portage 2.2_rc67 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.0, glibc-2.11.1-r0, 2.6.34-rc6 i686)
=================================================================
System uname: Linux-2.6.34-rc6-i686-Intel-R-_Celeron-R-_M_processor_900MHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 05 May 2010 09:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/mnt/schedasd/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j1"
PKGDIR="/mnt/schedasd/portage/package"
PORTAGE_CONFIGROOT="/"
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="/mnt/schedasd/portage"
PORTDIR_OVERLAY="/usr/local/portage/my-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups curl custom-cflags custom-cxxflags cxx dbus djvu dri dts dv dvb dvd dvdr emboss encode evo exif expat fam ffmpeg fftw firefox flac fortran gdbm gdu gif glitz gmp gnome gnome-keyring gphoto2 gpm gstreamer gtk hal iconv imlib inotify jpeg lame latex lcms libnotify lua mad matroska mikmod mmx mng modules mp3 mp4 mpeg mudflap musepack nautilus ncurses nls nptl nptlonly ogg openal opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support readline reflection samba sdl session speex spell spl sqlite sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd theora threads tiff timidity tk truetype unicode usb v4l2 vim-syntax vorbis wavpack win32codecs x264 x86 xcb xml xorg xulrunner xv xvid xvmc 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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# cat /etc/portage/package.use/sistema 
app-mobilephone/obexftp swig
app-office/openoffice-bin java
app-portage/eix optimization strong-optimization
app-portage/layman git subversion
dev-db/sqlite secure-delete
dev-java/sun-jdk nsplugin
dev-libs/apr-util -sqlite sqlite3
dev-libs/crypto++ sse3
dev-util/subversion -dso
gnome-base/gnome-session branding
gnome-base/gvfs gdu
mail-client/mozilla-thunderbird -crypt custom-optimization
media-gfx/eog xmp
media-libs/libsamplerate sndfile
media-libs/mlt kde libsamplerate melt qt4
media-sound/audacity id3tag ladspa libsamplerate midi
media-sound/rhythmbox -brasero -cdr -hal mtp udev
media-sound/sox amrnb amrwb id3tag libsamplerate
media-video/ffmpeg -3dnow -3dnowext amr faac faad -mmxext network -ssse3
media-video/mplayer custom-cpuopts amr -real teletext
media-video/vlc aac optimisememory qt4 fluidsynth fontconfig gnutls id3tag libass libv4l2 live mtp rtsp sdl-image stream taglib truetype udev upnp v4l wma-fixed
net-libs/libnice upnp
net-libs/opal sip wav
net-libs/ptlib pipechan wav
net-libs/xulrunner custom-optimization
net-analyzer/tcpdump -samba
net-misc/curl openssl
net-misc/dhcpcd -zeroconf
net-misc/ipsorcery -gtk
net-p2p/amule stats upnp
net-p2p/gtk-gnutella gnutls
net-proxy/tsocks tordns
net-voip/ekiga gconf v4l
net-wireless/wpa_supplicant qt4
sci-geosciences/gpsd ntp
sys-apps/hal laptop
sys-apps/parted device-mapper
sys-apps/portage python3
sys-devel/gcc graphite -gtk lto -mudflap
sys-fs/ntfs3g -hal udev
sys-fs/udev extras
sys-libs/glibc glibc-omitfp
www-client/mozilla-firefox custom-optimization
www-plugins/adobe-flash -64bit
x11-libs/qt-core optimized-qmake
x11-libs/qt-gui -accessibility
x11-libs/qt-qt3support -accessibility
x11-plugins/enigmail custom-optimization
x11-wm/compiz-fusion emerald
mail-client/mozilla-thunderbird system-sqlite
net-libs/xulrunner system-sqlite
www-client/mozilla-firefox system-sqlite
x11-base/xorg-server -hal
x11-drivers/xf86-input-synaptics -hal
x11-plugins/enigmail system-sqlite

# emerge --depclean

 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 * 
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence, it is often necessary to run `emerge --update
 * --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
>>> No packages selected for removal by depclean
>>> To see reverse dependencies, use --verbose
Packages installed:   912
Packages in world:    159
Packages in system:   50
Required packages:    912
Number removed:       0

# equery d qt-gui
 * These packages depend on qt-gui:
app-text/poppler-0.12.4-r3 (qt4 ? x11-libs/qt-core:4)
                           (qt4 ? x11-libs/qt-gui:4)
dev-util/cmake-2.8.1-r1 (qt4 ? x11-libs/qt-gui:4)
dev-util/subversion-1.6.9 (kde ? x11-libs/qt-core)
                          (kde ? x11-libs/qt-dbus)
                          (kde ? x11-libs/qt-gui)
games-misc/qlife-1.1 (x11-libs/qt-gui:4)
media-video/vlc-9999 (qt4 ? x11-libs/qt-gui:4)
                     (qt4 ? x11-libs/qt-core:4)
net-im/skype-2.1.0.81 (!qt-static ? x11-libs/qt-core:4)
                      (!qt-static ? x11-libs/qt-gui:4[accessibility,dbus])
                      (!qt-static ? x11-libs/qt-dbus:4)
net-wireless/wpa_supplicant-0.7.1 (qt4 ? x11-libs/qt-gui:4)
                                  (qt4 ? x11-libs/qt-svg:4)
#

BUT THE SAME COMMAND WORKS IF I DO WHAT BELOW:

That's my only useflag file. I have it in /etc/portage/package.use/sistema
# diff -u sistema.old sistema
--- sistema.old 2010-05-07 20:41:42.076731452 +0200
+++ sistema     2010-05-07 20:41:51.984731243 +0200
@@ -43,8 +43,6 @@
 www-client/mozilla-firefox custom-optimization
 www-plugins/adobe-flash -64bit
 x11-libs/qt-core optimized-qmake
-x11-libs/qt-gui -accessibility
-x11-libs/qt-qt3support -accessibility
 x11-plugins/enigmail custom-optimization
 x11-wm/compiz-fusion emerald
 mail-client/mozilla-thunderbird system-sqlite

# emerge -pvtuDN world

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

Calculating dependencies... done!
[nomerge      ] net-im/skype-2.1.0.81  USE="-qt-static" 
[nomerge      ]  x11-libs/qt-gui-4.6.2-r1  USE="accessibility cups dbus exceptions glib gtk mng qt3support* tiff (-aqua) -debug -nas -nis -pch -raster -trace -xinerama" 
[ebuild  N    ]   x11-libs/qt-qt3support-4.6.2  USE="accessibility exceptions (-aqua) -debug -kde -pch -phonon" 0 kB
[ebuild  N    ]    x11-libs/qt-sql-4.6.2  USE="exceptions iconv qt3support sqlite (-aqua) -debug -firebird -mysql -odbc -pch -postgres" 0 kB
[ebuild   R   ]    x11-libs/qt-gui-4.6.2-r1  USE="accessibility cups dbus exceptions glib gtk mng qt3support* tiff (-aqua) -debug -nas -nis -pch -raster -trace -xinerama" 0 kB
[ebuild   R   ]     x11-libs/qt-core-4.6.2-r1  USE="exceptions glib iconv optimized-qmake qt3support* ssl (-aqua) -debug -doc -pch" 0 kB

Total: 4 packages (2 new, 2 reinstalls), Size of downloads: 0 kB
#
Comment 1 niogic 2010-05-07 18:50:53 UTC
IMPORTANT NOTE:

What I changed before all this is:
- I removed -qt3support from make (qt3support)
- I added:
-x11-libs/qt-gui -accessibility
-x11-libs/qt-qt3support -accessibility
In package.use/sistema file.

Looks like emerge world can't manage both those changes.
If I remove those 2 lines (as written above), then emerge world works.
But there's "accessibility" useflag set for those 2 NEW packages. Because they have it as IUSE="+accessibility".
Comment 2 niogic 2010-05-07 18:52:09 UTC
> - I removed -qt3support from make (qt3support*)
* (qt3support is already in emerge --info because of profile default useflag)
Comment 3 Zac Medico gentoo-dev 2010-05-07 19:36:06 UTC
(In reply to comment #0)
> net-im/skype-2.1.0.81 (!qt-static ? x11-libs/qt-core:4)
>                       (!qt-static ? x11-libs/qt-gui:4[accessibility,dbus])
>                       (!qt-static ? x11-libs/qt-dbus:4)

The issue is that you can't disable USE=accessibility for x11-libs/qt-gui since skype requires it. The `emerge -pN qt-gui` command doesn't account for that, since it only builds a partial dependency graph. You can use the --complete-graph option to force all dependencies to be accounted for.
Comment 4 Sebastian Luther (few) 2010-05-07 19:40:28 UTC
The next portage version should give you an error message about wrong use flags on your first command.
Comment 5 Zac Medico gentoo-dev 2010-05-07 19:46:56 UTC
(In reply to comment #4)
> The next portage version should give you an error message about wrong use flags
> on your first command.

Isn't that only if the USE settings cause an upgrade to be missed?
Comment 6 niogic 2010-05-07 19:59:32 UTC
(In reply to comment #3)
> (In reply to comment #0)
> > net-im/skype-2.1.0.81 (!qt-static ? x11-libs/qt-core:4)
> >                       (!qt-static ? x11-libs/qt-gui:4[accessibility,dbus])
> >                       (!qt-static ? x11-libs/qt-dbus:4)
> 
> The issue is that you can't disable USE=accessibility for x11-libs/qt-gui since
> skype requires it. The `emerge -pN qt-gui` command doesn't account for that,
> since it only builds a partial dependency graph. You can use the
> --complete-graph option to force all dependencies to be accounted for.
> 

Ok I can't indeed.
But I expect emerge world to show me packages. For example qt-qt3support NEW.
Then say "block: skype need qt-gui[+accessibility]".
Comment 7 Sebastian Luther (few) 2010-05-07 20:02:00 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > The next portage version should give you an error message about wrong use flags
> > on your first command.
> 
> Isn't that only if the USE settings cause an upgrade to be missed?
> 

Need to test, might be. I think we should fix that too if it doesn't. The specific problem being: -N given but ebuild rejected because of wrong use flag config.
Comment 8 Sebastian Luther (few) 2010-05-08 07:39:45 UTC
You are right, it's a different issue. It doesn't involve the package selection, but backtracking due to a slot conflict.
Comment 9 Sebastian Luther (few) 2010-06-19 11:08:37 UTC
*** Bug 324663 has been marked as a duplicate of this bug. ***