Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160821 - app-portage/gentoolkit revdep-rebuild fails to reemerge xchat
Summary: app-portage/gentoolkit revdep-rebuild fails to reemerge xchat
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-08 02:16 UTC by Michael Frank
Modified: 2007-01-18 17:15 UTC (History)
0 users

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


Attachments
.revdep-rebuild files (rd,258.37 KB, text/plain)
2007-01-08 13:49 UTC, Michael Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Frank 2007-01-08 02:16:10 UTC
Observed with app-portage/gentoolkit-0.2.2 and 0.2.3_pre3

Upgraded dbus to 1.0

revdep-rebuild successfully reemerged several broken packages like pmount, hal, and kdebase-kioslaves. 

However, prelink reported xchat having missing dependencies.I patched prelink to track down which were missing (See bug 160819)

Reproducible: Always

Steps to Reproduce:
Revdep-rebuild
Actual Results:  
Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
  broken /usr/bin/xchat-remote-2 (requires  libdbus-1.so.2)
  broken /usr/lib/xchat/plugins/dbus.so (requires  libdbus-1.so.2)
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to packages...
  /usr/bin/xchat-remote-2 -> net-irc/xchat
  /usr/lib/xchat/plugins/dbus.so -> net-irc/xchat
 done.
  (/root/.revdep-rebuild.4_packages_raw, /root/.revdep-rebuild.4_package_owners)

Cleaning list of packages to rebuild... done.
  (/root/.revdep-rebuild.4_packages)

Assigning packages to ebuilds... done.
  (/root/.revdep-rebuild.4_ebuilds)

Evaluating package order...grep: Unmatched ( or \(
 done.
  (/root/.revdep-rebuild.5_order)

Dynamic linking on your system is consistent... All done.

Expected Results:  
Should have reemerged xchat

Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18.3-mhf279 i686)
=================================================================
System uname: 2.6.18.3-mhf279 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.6
Last Sync: Sat, 06 Jan 2007 18:20:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
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: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  [Not Present]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -funroll-loops -pipe"
DISTDIR="/gentoo/distfiles"
FEATURES="autoconfig distlocks keepwork metadata-transfer parallel-fetch sandbox sfperms strict"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/gentoo/packages.i686.2006.1"
PORTAGE_RSYNC_EXTRA_OPTS="-q"
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'"
PORTAGE_TMPDIR="/var/tmp/portage/i686.2006.1"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/gentoo/portage.overlay/local /gentoo/portage.overlay/webapps-experimental /gentoo/portage.overlay/voip /gentoo/portage.overlay/sunrise /gentoo/portage.overlay/break-my-gentoo-main /gentoo/portage.overlay/ebuild-exchange /gentoo/portage.overlay/science"
USE="x86 X a52 aac acpi alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amr apache2 apm asf audiofile bash-completion bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt cups curl dbus dga divx dlloader doc dri dv elibc_glibc encode examples f77 ffmpeg flac fortran gdbm gif gimpprint glut gmedia gtk gtk2 gzip hal iconv imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jack javascript jbig joystick jpeg jpeg2k jpg kde kernel_linux lcms libg++ linguas_en lm_sensors lzo mad map mikmod mmx mng mp3 mpeg musepack nas ncurses nls nptl nptlonly nsplugin ogg openal opengl pam pcre pdf perl php pic png ppds pppd python qt qt3 qt4 quicktime readline realmedia reflection samba scanner sdl session spell spell-de spell-en spell-us spl ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales vcd video_cards_i810 video_cards_mach64 video_cards_nv video_cards_savage video_cards_sis video_cards_vesa video_cards_vga video_cards_via vorbis wmf wmp wxgtk1 xcomposite xml xorg xprint xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-08 08:08:55 UTC
Attach the revdep-rebuild temporary files in /root here and reopen then. Thanks.
Comment 2 Michael Frank 2007-01-08 13:49:15 UTC
Created attachment 106015 [details]
.revdep-rebuild files
Comment 3 Michael Frank 2007-01-08 18:49:52 UTC
Put set -x at line 606 of revdep-rebuild (just ahead of ordering ebuilds)  

Trace shows that emerge seems to drop the package

Will investigate further

-----------------------------

Configuring search environment for revdep-rebuild

Checking reverse dependencies...

Packages containing binaries and libraries broken by a package update
will be emerged.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
  broken /usr/bin/xchat-remote-2 (requires  libdbus-1.so.2)
  broken /usr/lib/xchat/plugins/dbus.so (requires  libdbus-1.so.2)
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to packages...
  /usr/bin/xchat-remote-2 -> net-irc/xchat
  /usr/lib/xchat/plugins/dbus.so -> net-irc/xchat
 done.
  (/root/.revdep-rebuild.4_packages_raw, /root/.revdep-rebuild.4_package_owners)

Cleaning list of packages to rebuild... done.
  (/root/.revdep-rebuild.4_packages)

Assigning packages to ebuilds... done.
  (/root/.revdep-rebuild.4_ebuilds)
+ echo

+ echo -n -e 'Evaluating package order...'
Evaluating package order...+ '[' -f /root/.revdep-rebuild.5_order ']'
+ set_trap /root/.revdep-rebuild.5_order
+ trap 'rm_temp /root/.revdep-rebuild.5_order' SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM
++ cat /root/.revdep-rebuild.4_ebuilds
++ sed 's/^/=/'
++ tr '\n' ' '
+ RAW_REBUILD_LIST='=net-irc/xchat-2.6.6 '
+ '[' '!' -z '=net-irc/xchat-2.6.6 ' ']'
++ EMERGE_DEFAULT_OPTS=
++ emerge --nospinner --pretend --oneshot --nodeps --quiet =net-irc/xchat-2.6.6
++ sed -n 's/\./\\&/g;s/ //g;s/$/\\/;s/\[[^]]*\]//gp'
++ tr '\n' '|'
++ sed 's/|$//'
++ echo 0
+ REBUILD_GREP='^\()$'
++ cat /root/.revdep-rebuild.5a_status
+ '[' 0 -gt 0 ']'
+ EMERGE_DEFAULT_OPTS=
+ emerge --nospinner --pretend --oneshot --emptytree --quiet =net-irc/xchat-2.6.6
+ sed -n 's/ //g;s/^.*\]//p'
+ grep '^\()$'
grep: Unmatched ( or \(
+ echo 0
++ cat /root/.revdep-rebuild.5b_status
+ '[' 0 -gt 0 ']'
+ echo -e ' done.\n  (/root/.revdep-rebuild.5_order)'
 done.
  (/root/.revdep-rebuild.5_order)
+ unset COMPLETE_LD_LIBRARY_PATH SEARCH_DIRS SEARCH_DIRS_MASK LD_LIBRARY_MASK PORTAGE_ROOT CALLED_OPTIONS
++ cat /root/.revdep-rebuild.5_order
++ sed 's/^/=/'
++ tr '\n' ' '
+ REBUILD_LIST=
+ trap - SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM
+ '[' -z '' ']'
+ echo -e '\nDynamic linking on your system is consistent... All done. '

Dynamic linking on your system is consistent... All done.
+ '[' '!' ']'
+ :
+ exit 0
Comment 4 Paul Varner (RETIRED) gentoo-dev 2007-01-08 23:13:18 UTC
What does the following command (all on one line) output on your system?

env EMERGE_DEFAULT_OPTS="" emerge --nospinner --pretend --oneshot --nodeps --quiet =net-irc/xchat-2.6.6 
Comment 5 Michael Frank 2007-01-09 09:32:44 UTC
env EMERGE_DEFAULT_OPTS="" emerge.py --nospinner --pretend --oneshot --nodeps --quiet =net-irc/xchat-2.6.6
[ebuild   R   ] net-irc/xchat-2.6.6
Comment 6 Paul Varner (RETIRED) gentoo-dev 2007-01-10 02:00:52 UTC
I'm at a loss to what is going on. On my system using your revdep-rebuild files, I get the following:

++ EMERGE_DEFAULT_OPTS=
++ emerge --nospinner --pretend --oneshot --nodeps --quiet =net-irc/xchat-2.6.6
++ sed -n 's/\./\\&/g;s/ //g;s/$/\\/;s/\[[^]]*\]//gp'
++ tr '\n' '|'
++ sed 's/|$//'
++ echo 0
+ REBUILD_GREP='^\(net-irc/xchat-2\.6\.6\)$'
++ cat /home/pvarner/.revdep-rebuild.5a_status
+ '[' 0 -gt 0 ']'
+ EMERGE_DEFAULT_OPTS=
+ emerge --nospinner --pretend --oneshot --emptytree --quiet =net-irc/xchat-2.6.6
+ sed -n 's/ //g;s/^.*\]//p'
+ grep '^\(net-irc/xchat-2\.6\.6\)$'
+ echo 0

As you noted already, for some reason, the emerge command is populating the REBUILD_GREP variable.

Since I don't know what is happening, please let me know the following:

1. How are you calling revdep-rebuild? Are you running as root? as a user? or using sudo?
2. What does the following command display on your system:

env EMERGE_DEFAULT_OPTS="" emerge --nospinner --pretend --oneshot --nodeps --quiet =net-irc/xchat-2.6.6 | sed -n 's/\./\\&/g;s/ //g;s/$/\\/;s/\[[^]]*\]//gp' | tr '\n' '|' | sed 's/|$//'

(There is a space after the s/ where the line breaks)

It should return net-irc/xchat-2\.6\.6\
Comment 7 Michael Frank 2007-01-18 17:15:43 UTC
revdep-rebuild was executed from a script invoked via sudo which messed up my PATH resulting in the "wrong" emerge being run by revdep-rebuild. That emerge script is a frontend to emerge which can drop packages from the build list to be built by subsequent runs using other CFLAGS/build machine. Thus xchat was dropped.

Thanks for the hint about sudo and my apologies for the waste of time.