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

Bug 368475

Summary: app-portage/gentoolkit-0.3.0.3: revdep-rebuild emerge ordering problems
Product: Portage Development Reporter: Paul Varner (RETIRED) <fuzzyray>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: CONFIRMED ---    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Paul Varner (RETIRED) gentoo-dev 2011-05-23 16:31:39 UTC
I noticed after upgraded dev-libs/icu, which changed abi, when I ran revdep-rebuild, it got the ordering for the emerge completely wrong.  The only way I was able to get the order correct was to run 'revdep-rebuild -- --complete-graph=y'

Here is the order determined by revdep-rebuild which is incorrect:

emerge --oneshot --with-bdeps=y -av app-cdr/brasero:0
app-text/evince:0
dev-lang/R:0
dev-libs/libgweather:2
gnome-base/gnome-settings-daemon:0
gnome-base/gnome-vfs:2
gnome-extra/evolution-data-server:0
gnome-extra/gnome-media:2
mail-client/evolution:2.0
media-gfx/imagemagick:0
media-video/totem:0
net-libs/webkit-gtk:2
net-print/gnome-cups-manager:0
sys-devel/gettext:0
www-client/chromium:0

Here is the emerge order without --complete-graph

Calculating dependencies... done!
[ebuild   R   ] dev-libs/libgweather-2.30.3  USE="python -doc" 0 kB
[ebuild   R   ] gnome-extra/gnome-media-2.32.0-r1  USE="-pulseaudio" 0 kB
[ebuild   R   ] media-video/totem-2.32.0-r1  USE="python youtube -bluetooth -debug -doc -galago -iplayer -lirc -nautilus -nsplugin (-tracker) -upnp" 0 kB                                                                                                                                       
[ebuild   R   ] net-print/gnome-cups-manager-0.33-r2  USE="-samba" 0 kB
[ebuild   R   ] gnome-extra/evolution-data-server-2.32.2-r1  USE="weather -doc -gnome-keyring -ipv6 -kerberos -ldap -test" 0 kB
[ebuild   R   ] media-gfx/imagemagick-6.6.8.5  USE="X bzip2 corefonts cxx jpeg lcms perl png svg tiff truetype xml zlib -autotrace -djvu -fftw -fontconfig -fpx -graphviz -gs -hdri -jbig -jpeg2k -lqr -lzma -openexr -openmp -q32 -q8 -raw -static-libs -webp -wmf" VIDEO_CARDS="nvidia" 0 kB  
[ebuild     U ] www-client/chromium-12.0.742.60 [12.0.742.53] USE="cups gnome -gnome-keyring -kerberos -test -xinerama" 0 kB
[ebuild   R   ] sys-devel/gettext-0.18.1.1-r2  USE="git java nls -acl -doc -emacs -nocxx -openmp" 0 kB
[ebuild   R   ] dev-lang/R-2.12.2  USE="X cairo java jpeg nls perl png readline -bash-completion -doc -lapack -minimal -profile -static-libs -tk" 0 kB
[ebuild   R   ] app-cdr/brasero-2.32.1  USE="cdr css libburn -doc (-introspection) -nautilus -playlist -test" 0 kB
[ebuild   R   ] app-text/evince-2.32.0-r3  USE="dbus gnome tiff -debug -djvu -doc -dvi -gnome-keyring (-introspection) -nautilus -t1lib" 0 kB
[ebuild   R   ] gnome-base/gnome-settings-daemon-2.32.1-r1  USE="libnotify (policykit) -debug -pulseaudio -smartcard" 0 kB
[ebuild   R   ] gnome-base/gnome-vfs-2.24.4-r1  USE="fam ssl -acl -avahi -doc -gnutls -ipv6 -kerberos -samba -test" 0 kB
[ebuild   R   ] mail-client/evolution-2.32.2-r3  USE="crypt gstreamer python ssl (-clutter) -connman -doc -kerberos -ldap -networkmanager" 0 kB
[ebuild   R   ] net-libs/webkit-gtk-1.2.7  USE="gstreamer jit (-aqua) -coverage -debug -doc (-introspection) -test" 0 kB

Total: 15 packages (1 upgrade, 14 reinstalls), Size of downloads: 0 kB


Here is the emerge order with --complete-graph

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gettext-0.18.1.1-r2  USE="git java nls -acl -doc -emacs -nocxx -openmp" 0 kB
[ebuild   R   ] gnome-base/gnome-vfs-2.24.4-r1  USE="fam ssl -acl -avahi -doc -gnutls -ipv6 -kerberos -samba -test" 0 kB
[ebuild   R   ] net-libs/webkit-gtk-1.2.7  USE="gstreamer jit (-aqua) -coverage -debug -doc (-introspection) -test" 0 kB
[ebuild   R   ] gnome-base/gnome-settings-daemon-2.32.1-r1  USE="libnotify (policykit) -debug -pulseaudio -smartcard" 0 kB
[ebuild     U ] www-client/chromium-12.0.742.60 [12.0.742.53] USE="cups gnome -gnome-keyring -kerberos -test -xinerama" 0 kB
[ebuild   R   ] dev-lang/R-2.12.2  USE="X cairo java jpeg nls perl png readline -bash-completion -doc -lapack -minimal -profile -static-libs -tk" 0 kB
[ebuild   R   ] app-text/evince-2.32.0-r3  USE="dbus gnome tiff -debug -djvu -doc -dvi -gnome-keyring (-introspection) -nautilus -t1lib" 0 kB
[ebuild   R   ] gnome-extra/gnome-media-2.32.0-r1  USE="-pulseaudio" 0 kB
[ebuild   R   ] dev-libs/libgweather-2.30.3  USE="python -doc" 0 kB
[ebuild   R   ] gnome-extra/evolution-data-server-2.32.2-r1  USE="weather -doc -gnome-keyring -ipv6 -kerberos -ldap -test" 0 kB
[ebuild   R   ] app-cdr/brasero-2.32.1  USE="cdr css libburn -doc (-introspection) -nautilus -playlist -test" 0 kB
[ebuild   R   ] media-video/totem-2.32.0-r1  USE="python youtube -bluetooth -debug -doc -galago -iplayer -lirc -nautilus -nsplugin (-tracker) -upnp" 0 kB                                                                                                                                       
[ebuild   R   ] mail-client/evolution-2.32.2-r3  USE="crypt gstreamer python ssl (-clutter) -connman -doc -kerberos -ldap -networkmanager" 0 kB
[ebuild   R   ] net-print/gnome-cups-manager-0.33-r2  USE="-samba" 0 kB
[ebuild   R   ] media-gfx/imagemagick-6.6.8.5  USE="X bzip2 corefonts cxx jpeg lcms perl png svg tiff truetype xml zlib -autotrace -djvu -fftw -fontconfig -fpx -graphviz -gs -hdri -jbig -jpeg2k -lqr -lzma -openexr -openmp -q32 -q8 -raw -static-libs -webp -wmf" VIDEO_CARDS="nvidia" 0 kB  

Total: 15 packages (1 upgrade, 14 reinstalls), Size of downloads: 0 kB
Comment 1 Paul Varner (RETIRED) gentoo-dev 2011-05-23 16:35:07 UTC
# emerge --info
Portage 2.1.9.49 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.12.2-r0, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Dual-Core_AMD_Opteron-tm-_Processor_2222-with-gentoo-2.0.2
Timestamp of tree: Mon, 23 May 2011 07:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.12.2
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
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"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode exif fam flac fortran gdbm gdu gif gnome gpm gstreamer gtk iconv java jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="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 en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Sebastian Luther (few) 2011-05-23 17:45:14 UTC
What means it got the ordering completely wrong? It's not possible to tell from the two merge lists where the ordering is wrong. There might exist several valid merge lists for a given dependency graph.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2011-05-23 17:55:24 UTC
What got the order wrong was that packages would not compile until packages later in the emerge list were compiled.  

Anyhow, I have determined that there is not any issue with portage.  revdep-rebuild is not using the calculated order when it runs the final emerge command.  

Removing dev-portage from the bug.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2011-06-15 04:08:00 UTC
Released in gentoolkit-0.3.0.4