Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188739 - revdep-rebuild: Incorrect ordering of packages
Summary: revdep-rebuild: Incorrect ordering of packages
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 189195 189336 (view as bug list)
Depends on: 188782
Blocks:
  Show dependency tree
 
Reported: 2007-08-13 18:53 UTC by Rodrigo Severo
Modified: 2007-09-12 23:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
root/.revdep-rebuild.0_env (.revdep-rebuild.0_env,847 bytes, text/plain)
2007-08-13 18:57 UTC, Rodrigo Severo
Details
root/.revdep-rebuild.1_files (.revdep-rebuild.1_files,181.39 KB, text/plain)
2007-08-13 18:57 UTC, Rodrigo Severo
Details
root/.revdep-rebuild.5a_status (.revdep-rebuild.5a_status,2 bytes, text/plain)
2007-08-13 18:57 UTC, Rodrigo Severo
Details
root/.revdep-rebuild.5b_status (.revdep-rebuild.5b_status,2 bytes, text/plain)
2007-08-13 18:57 UTC, Rodrigo Severo
Details
root/.revdep-rebuild_77938876.3_rebuild (.revdep-rebuild_77938876.3_rebuild,3.45 KB, text/plain)
2007-08-13 18:58 UTC, Rodrigo Severo
Details
/root/.revdep-rebuild_77938876.4_ebuilds (.revdep-rebuild_77938876.4_ebuilds,527 bytes, text/plain)
2007-08-13 18:58 UTC, Rodrigo Severo
Details
/root/.revdep-rebuild_77938876.4_package_owners (.revdep-rebuild_77938876.4_package_owners,6.28 KB, text/plain)
2007-08-13 18:59 UTC, Rodrigo Severo
Details
/root/.revdep-rebuild_77938876.4_packages (.revdep-rebuild_77938876.4_packages,528 bytes, text/plain)
2007-08-13 18:59 UTC, Rodrigo Severo
Details
/root/.revdep-rebuild_77938876.4_packages_raw (.revdep-rebuild_77938876.4_packages_raw,2.82 KB, text/plain)
2007-08-13 18:59 UTC, Rodrigo Severo
Details
/root/.revdep-rebuild_77938876.5a_status (.revdep-rebuild_77938876.5a_status,2 bytes, text/plain)
2007-08-13 19:00 UTC, Rodrigo Severo
Details
/root/.revdep-rebuild_77938876.5b_status (.revdep-rebuild_77938876.5b_status,2 bytes, text/plain)
2007-08-13 19:00 UTC, Rodrigo Severo
Details
/root/.revdep-rebuild_77938876.5_order (.revdep-rebuild_77938876.5_order,451 bytes, text/plain)
2007-08-13 19:00 UTC, Rodrigo Severo
Details
/root/.revdep-rebuild_77938876.6_status (.revdep-rebuild_77938876.6_status,2 bytes, text/plain)
2007-08-13 19:00 UTC, Rodrigo Severo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Severo 2007-08-13 18:53:11 UTC
I've just upgraded expat to version 2.0.1 on a amd64 machine.

"revdep-rebuild -X --library libexpat.so.0" says I have to rebuild several files.

x11-libs/gtk+-2.10.13 gets the following error during it's rebuild:

x86_64-pc-linux-gnu-gcc -shared  .libs/imviqr.o  -Wl,--rpath -Wl,/var/tmp/portage/x11-libs/gtk+-2.10.13/work/gtk+-2.10.13/gdk-pixbuf/.libs -Wl,--rpath -Wl,/var/tmp/portage/x11-libs/gtk+-2.10.13/work/gtk+-2.10.13/gdk/.libs -Wl,--rpath -Wl,/var/tmp/portage/x11-libs/gtk+-2.10.13/work/gtk+-2.10.13/gtk/.libs -L/var/tmp/portage/x11-libs/gtk+-2.10.13/work/gtk+-2.10.13/gdk-pixbuf/.libs -L/var/tmp/portage/x11-libs/gtk+-2.10.13/work/gtk+-2.10.13/gdk/.libs ../../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so -L/usr/lib64 ../../gdk/.libs/libgdk-x11-2.0.so ../../gtk/.libs/libgtk-x11-2.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpango-1.0.so /usr/lib64/libX11.so /usr/lib64/libXfixes.so /usr/lib64/libatk-1.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so /usr/lib64/libcairo.so -lm  -march=k8 -Wl,-soname -Wl,im-viqr.so -o .libs/im-viqr.so
creating im-viqr.la
(cd .libs && rm -f im-ti-er.la && ln -s ../im-ti-er.la im-ti-er.la)
(cd .libs && rm -f im-ti-et.la && ln -s ../im-ti-et.la im-ti-et.la)
(cd .libs && rm -f im-thai.la && ln -s ../im-thai.la im-thai.la)
(cd .libs && rm -f im-ipa.la && ln -s ../im-ipa.la im-ipa.la)
(cd .libs && rm -f im-viqr.la && ln -s ../im-viqr.la im-viqr.la)
../../gtk/gtk-query-immodules-2.0 im-xim.la  im-am-et.la im-cedilla.la im-cyrillic-translit.la im-inuktitut.la im-ipa.la im-thai.la im-ti-er.la im-ti-et.la im-viqr.la  > gtk.immodules
/var/tmp/portage/x11-libs/gtk+-2.10.13/work/gtk+-2.10.13/gtk/.libs/lt-gtk-query-immodules-2.0: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory
make[3]: *** [gtk.immodules] Error 127
make[3]: Leaving directory `/var/tmp/portage/x11-libs/gtk+-2.10.13/work/gtk+-2.10.13/modules/input'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-libs/gtk+-2.10.13/work/gtk+-2.10.13/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/gtk+-2.10.13/work/gtk+-2.10.13'
make: *** [all] Error 2

!!! ERROR: x11-libs/gtk+-2.10.13 failed.
Call stack:
  ebuild.sh, line 1632:   Called dyn_compile
  ebuild.sh, line 983:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  gtk+-2.10.13.ebuild, line 108:   Called die

!!! compile failed

As per Jakub's instruciotns in bug #188473 I'm opening a bug on revdep-rebuild and attaching all "/root/.revdep*" files.

My emerge --info:

# emerge --info
Portage 2.1.2.11 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.21-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 13 Aug 2007 09:30:10 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LINGUAS="en pt_BR"
MAKEOPTS="-j5"
PKGDIR="/var/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-fabrica /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext amd64 bitmap-fonts bzip2 cli cracklib crypt dri fortran gif gpm iconv isdnlog jbig jpeg ldap md5sum midi mmx mmxext mpeg mudflap ncurses nptl nptlonly openmp pam pcre pdf perl png pppd python readline reflection session spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode wmf xorg xpm 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pt_BR" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rodrigo Severo 2007-08-13 18:57:06 UTC
Created attachment 127960 [details]
root/.revdep-rebuild.0_env
Comment 2 Rodrigo Severo 2007-08-13 18:57:31 UTC
Created attachment 127961 [details]
root/.revdep-rebuild.1_files
Comment 3 Rodrigo Severo 2007-08-13 18:57:45 UTC
Created attachment 127962 [details]
root/.revdep-rebuild.5a_status
Comment 4 Rodrigo Severo 2007-08-13 18:57:58 UTC
Created attachment 127963 [details]
root/.revdep-rebuild.5b_status
Comment 5 Rodrigo Severo 2007-08-13 18:58:24 UTC
Created attachment 127964 [details]
root/.revdep-rebuild_77938876.3_rebuild
Comment 6 Rodrigo Severo 2007-08-13 18:58:48 UTC
Created attachment 127965 [details]
/root/.revdep-rebuild_77938876.4_ebuilds
Comment 7 Rodrigo Severo 2007-08-13 18:59:04 UTC
Created attachment 127967 [details]
/root/.revdep-rebuild_77938876.4_package_owners
Comment 8 Rodrigo Severo 2007-08-13 18:59:21 UTC
Created attachment 127968 [details]
/root/.revdep-rebuild_77938876.4_packages
Comment 9 Rodrigo Severo 2007-08-13 18:59:36 UTC
Created attachment 127970 [details]
/root/.revdep-rebuild_77938876.4_packages_raw
Comment 10 Rodrigo Severo 2007-08-13 19:00:00 UTC
Created attachment 127972 [details]
/root/.revdep-rebuild_77938876.5a_status
Comment 11 Rodrigo Severo 2007-08-13 19:00:15 UTC
Created attachment 127974 [details]
/root/.revdep-rebuild_77938876.5b_status
Comment 12 Rodrigo Severo 2007-08-13 19:00:31 UTC
Created attachment 127975 [details]
/root/.revdep-rebuild_77938876.5_order
Comment 13 Rodrigo Severo 2007-08-13 19:00:46 UTC
Created attachment 127977 [details]
/root/.revdep-rebuild_77938876.6_status
Comment 14 Rodrigo Severo 2007-08-13 19:02:46 UTC
Fixing hardware entry.
Comment 15 Bryan Green 2007-08-13 23:08:29 UTC
My system is effected as well.  >=x11-libs/gtk+-2.10.13 will not compile.  It gets the same error about libexpat.so.0.

My system is severely broken until this gets resolved, or a workaround is found.

This bug appears to be miscategorized.  It seems to be a problem related to the gtk+ ebuild, and is not specific to revdep-rebuild.
Comment 16 Rodrigo Severo 2007-08-14 07:05:17 UTC
(In reply to comment #15)
> My system is effected as well.  >=x11-libs/gtk+-2.10.13 will not compile.  It
> gets the same error about libexpat.so.0.
> 
> My system is severely broken until this gets resolved, or a workaround is
> found.
> 
> This bug appears to be miscategorized.  It seems to be a problem related to the
> gtk+ ebuild, and is not specific to revdep-rebuild.

I finally found a workaround for gtk+ not compiling:

emerge -1 -av XML-Parser gettext fontconfig pango gtk+

As strange as it seems, apparently the problem is really with revdep-rebuild after all that isn't able to correctly identify all the packages that need rebuilding.

Comment 17 Henrik R. Nagel 2007-08-15 16:23:35 UTC
In my case the problem was that revdep-rebuild wanted to emerge pango after gtk+. pango must be emerged before gtk+ and not after.
Comment 18 Rodrigo Severo 2007-08-15 17:02:13 UTC
(In reply to comment #17)
> In my case the problem was that revdep-rebuild wanted to emerge pango after
> gtk+. pango must be emerged before gtk+ and not after.

Yes. expat upgrade exposed shortcomings on revdep-rebuild which seem to be hard to fix. 'til now there are only "me too's" on this bug. No word from "them"...

Comment 19 Paul Varner (RETIRED) gentoo-dev 2007-08-15 17:33:31 UTC
This is caused by a bug in portage 2.1.2.11. Downgrade to 2.1.2.9, run the revdep-rebuild and then if desired, re-upgrade to portage 2.1.2.11
Comment 20 Rodrigo Severo 2007-08-15 18:34:15 UTC
(In reply to comment #19)
> This is caused by a bug in portage 2.1.2.11. Downgrade to 2.1.2.9, run the
> revdep-rebuild and then if desired, re-upgrade to portage 2.1.2.11

Any reason why users shouldn't simple mask portage 2.1.2.11 definitely?


Comment 21 Jakub Moc (RETIRED) gentoo-dev 2007-08-18 05:15:49 UTC
*** Bug 189195 has been marked as a duplicate of this bug. ***
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2007-08-18 10:20:16 UTC
*** Bug 189336 has been marked as a duplicate of this bug. ***
Comment 23 Zac Medico gentoo-dev 2007-08-18 18:19:51 UTC
(In reply to comment #20)
> Any reason why users shouldn't simple mask portage 2.1.2.11 definitely?

That version is fine except for the revdep-rebuild case. Now 2.1.2.12 has been released and requested to be marked stable (bug 189289).
Comment 24 Paul Varner (RETIRED) gentoo-dev 2007-09-12 23:24:24 UTC
The portage version that was causing the issue has been marked stable.