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

Bug 188789

Summary: XML::Parser revdep-rebuild problem
Product: Portage Development Reporter: Johan Ymerson <johan>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: major CC: han_solo
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Log from revdep-rebuild
.revdep-rebuild.0_env from revdep-rebuild
.revdep-rebuild.1_files from revdep-rebuild
.revdep-rebuild.2_ldpath from revdep-rebuild
.revdep-rebuild.3_rebuild from revdep-rebuild
.revdep-rebuild.4_ebuilds from revdep-rebuild
.revdep-rebuild.5a_status from revdep-rebuild
.revdep-rebuild.5_order from revdep-rebuild
.revdep-rebuild.6_status from revdep-rebuild
Log from revdep-rebuild -X
.revdep-rebuild.0_env from revdep-rebuild -X
.revdep-rebuild.1_files from revdep-rebuild -X
.revdep-rebuild.2_ldpath from revdep-rebuild -X
.revdep-rebuild.3_rebuild from revdep-rebuild -X
.revdep-rebuild.4_ebuilds from revdep-rebuild -X
.revdep-rebuild.4_package_owners from revdep-rebuild -X
.revdep-rebuild.4_packages from revdep-rebuild -X
.revdep-rebuild.4_packages_raw from revdep-rebuild -X
.revdep-rebuild.5a_status from revdep-rebuild -X
.revdep-rebuild.5b_status from revdep-rebuild -X
.revdep-rebuild.5_order from revdep-rebuild -X
.revdep-rebuild.6_status from revdep-rebuild -X

Description Johan Ymerson 2007-08-14 06:18:08 UTC
Yesterday I tried to run emerge --update --deep world, which resulted in dev-libs/expat being upgraded. The expat ebuild tells you to do revdep-rebuild:
 * Please note that the soname of the library changed!
 * If you are upgrading from a previous version you need
 * to fix dynamic linking inconsistencies by executing:
 * revdep-rebuild -X --library libexpat.so.0

However, revdep-rebuild fails while rebuilding xfce-extra/mousepad-0.2.12:
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool

I also tried revdep-rebuild -X --library libexpat.so.0 -- --skipfirst, but then it fails at xfsce-base/xfce4-session with the same error.




Reproducible: Always

Steps to Reproduce:
1. emerge --update --deep world
2. revdep-rebuild -X --library libexpat.so.0
Comment 1 Dawid Węgliński (RETIRED) gentoo-dev 2007-08-14 06:25:32 UTC

*** This bug has been marked as a duplicate of bug 41124 ***
Comment 2 Johan Ymerson 2007-08-14 07:01:24 UTC
NO! PLEASE!
This is not a duplicate of bug 41124!

If you bother to read this bug report, you would see that the suggestion in bug 41124 doesn't work. And bug 41124 is closed/invalid.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-14 07:05:05 UTC
Any bug about revdep-rebuild requires to attach all /root/.revdep-rebuild* files and revdep-rebuild console output to the bug.
Comment 4 Andreas Bögehold 2007-08-14 22:44:55 UTC
I had the same problem. For a workaround:
emerge -u XML-Parser

That worked for me.
Comment 5 Johan Ymerson 2007-08-28 07:31:02 UTC
(In reply to comment #4)
> I had the same problem. For a workaround:
> emerge -u XML-Parser
> 
> That worked for me.
> 

Sorry, that didn't do it.

I'll attach the .revdep-* files requested.
It looks like the problem is that revdep-rebuild doesn't handle slotted packages very well, in combination with that some installed versions doesn't exist in portage anymore.
Comment 6 Johan Ymerson 2007-08-28 07:32:00 UTC
Created attachment 129411 [details]
Log from revdep-rebuild
Comment 7 Johan Ymerson 2007-08-28 07:32:29 UTC
Created attachment 129413 [details]
.revdep-rebuild.0_env from revdep-rebuild
Comment 8 Johan Ymerson 2007-08-28 07:32:50 UTC
Created attachment 129414 [details]
.revdep-rebuild.1_files from revdep-rebuild
Comment 9 Johan Ymerson 2007-08-28 07:33:06 UTC
Created attachment 129415 [details]
.revdep-rebuild.2_ldpath from revdep-rebuild
Comment 10 Johan Ymerson 2007-08-28 07:33:32 UTC
Created attachment 129416 [details]
.revdep-rebuild.3_rebuild from revdep-rebuild
Comment 11 Johan Ymerson 2007-08-28 07:33:59 UTC
Created attachment 129417 [details]
.revdep-rebuild.4_ebuilds from revdep-rebuild
Comment 12 Johan Ymerson 2007-08-28 07:34:16 UTC
Created attachment 129418 [details]
.revdep-rebuild.5a_status from revdep-rebuild
Comment 13 Johan Ymerson 2007-08-28 07:34:33 UTC
Created attachment 129419 [details]
.revdep-rebuild.5_order from revdep-rebuild
Comment 14 Johan Ymerson 2007-08-28 07:34:56 UTC
Created attachment 129420 [details]
.revdep-rebuild.6_status from revdep-rebuild
Comment 15 Johan Ymerson 2007-08-28 07:35:27 UTC
Created attachment 129422 [details]
Log from revdep-rebuild -X
Comment 16 Johan Ymerson 2007-08-28 07:35:50 UTC
Created attachment 129424 [details]
.revdep-rebuild.0_env from revdep-rebuild -X
Comment 17 Johan Ymerson 2007-08-28 07:36:08 UTC
Created attachment 129426 [details]
.revdep-rebuild.1_files from revdep-rebuild -X
Comment 18 Johan Ymerson 2007-08-28 07:36:24 UTC
Created attachment 129428 [details]
.revdep-rebuild.2_ldpath from revdep-rebuild -X
Comment 19 Johan Ymerson 2007-08-28 07:36:43 UTC
Created attachment 129429 [details]
.revdep-rebuild.3_rebuild from revdep-rebuild -X
Comment 20 Johan Ymerson 2007-08-28 07:36:59 UTC
Created attachment 129431 [details]
.revdep-rebuild.4_ebuilds from revdep-rebuild -X
Comment 21 Johan Ymerson 2007-08-28 07:37:21 UTC
Created attachment 129432 [details]
.revdep-rebuild.4_package_owners from revdep-rebuild -X
Comment 22 Johan Ymerson 2007-08-28 07:37:44 UTC
Created attachment 129433 [details]
.revdep-rebuild.4_packages from revdep-rebuild -X
Comment 23 Johan Ymerson 2007-08-28 07:38:05 UTC
Created attachment 129434 [details]
.revdep-rebuild.4_packages_raw from revdep-rebuild -X
Comment 24 Johan Ymerson 2007-08-28 07:38:22 UTC
Created attachment 129435 [details]
.revdep-rebuild.5a_status from revdep-rebuild -X
Comment 25 Johan Ymerson 2007-08-28 07:38:42 UTC
Created attachment 129436 [details]
.revdep-rebuild.5b_status from revdep-rebuild -X
Comment 26 Johan Ymerson 2007-08-28 07:39:00 UTC
Created attachment 129437 [details]
.revdep-rebuild.5_order from revdep-rebuild -X
Comment 27 Johan Ymerson 2007-08-28 07:39:29 UTC
Created attachment 129439 [details]
.revdep-rebuild.6_status from revdep-rebuild -X
Comment 28 Jakub Moc (RETIRED) gentoo-dev 2007-08-28 07:40:27 UTC
emerge --info still missing, mandatory for any bug. Which portage version are you using? If 2.1.2.11, then downgrade to 2.1.2.9 or upgrade to 2.1.2.12 and try again.
Comment 29 Johan Ymerson 2007-08-28 07:47:30 UTC
As it looks to me, revdep-rebuild fails because the exact versions that is currently installed is no longer in portage. And revdep-rebuild -X doesn't rebuild the correct slots, it just rebuilds the latest verion.

In my opinion, revdep-rebuild -X should rebuild packages within the same slot. As it is now, I have to run revdep-rebuild -p, then manually map the output from revdep-rebuild to the current version within the old slot, then run emerge manually. Should that really be necessary?
Comment 30 Johan Ymerson 2007-08-28 07:49:53 UTC
Portage 2.1.2.11 (default-linux/x86/transmode, gcc-4.1.2, glibc-2.5-r4, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 14 Aug 2007 09:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
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="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://devsrv.transmode.se/portage/ http:/devsrv.transmode.se/portage/local/ http://gentoo.osuosl.org/"
LC_ALL="en_US.utf8"
LINGUAS="en se"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/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"
SYNC="rsync://devsrv.transmode.se/gentoo-portage"
USE="X apache2 berkdb bitmap-fonts cli cracklib crypt cups dbus dri firefox fortran gdbm glitz gnome gpm gtk hal iconv isdnlog jpeg kerberos ldap midi motif mudflap ncurses nis nls nptl nptlonly nsplugin opengl openmp pam pcre pdf perl png ppds pppd python readline reflection session spl ssl subversion tcpd truetype truetype-fonts type1-fonts unicode usb x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 se" USERLAND="GNU" VIDEO_CARDS="i810 vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I'll try with portage 2.1.2.12... But that doesn't add slot support to revdep-rebuild, does it?
Comment 31 Johan Ymerson 2007-08-28 10:19:59 UTC
(In reply to comment #30)
> I'll try with portage 2.1.2.12... But that doesn't add slot support to
> revdep-rebuild, does it?
> 

No, still the same problem.

Comment 32 Paul Varner (RETIRED) gentoo-dev 2007-09-13 00:21:15 UTC
The workaround for now is to install gentoolkit-0.2.4_pre6 or grab the patch
from bug #169761 and apply it to your version of revdep-rebuild

*** This bug has been marked as a duplicate of bug 169761 ***