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

Bug 160128

Summary: Revdep-rebuild fails to find amarok's need to be rebuilt
Product: Portage Development Reporter: Harlan Lieberman-Berg (RETIRED) <hlieberman>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED INVALID    
Severity: major CC: m.debruijne
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Revdep Files
The Second Revdep Files -- Working ones.

Description Harlan Lieberman-Berg (RETIRED) gentoo-dev 2007-01-04 15:45:45 UTC
b-triangle ~ # revdep-rebuild
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...
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... Nothing to rebuild

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

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


-----
hlieberman@b-triangle ~ $ amarok
Amarok: [Loader] Starting amarokapp..
Amarok: [Loader] Don't run gdb, valgrind, etc. against this binary! Use amarokapp.
amarokapp: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
Comment 1 Paul Varner (RETIRED) gentoo-dev 2007-01-04 18:28:55 UTC
Assuming that you have not fixed the issue.

What version of gentoolkit?
What is the output of 'ldd /usr/bin/amarokapp' and 'objdump -x /usr/bin/amarokapp | grep NEEDED'
Please attach the /root/.revdep-rebuild* files
Comment 2 Harlan Lieberman-Berg (RETIRED) gentoo-dev 2007-01-05 06:00:00 UTC
Gentoolkit is 0.2.2

ldd:
        libamarok.so.0 => /usr/lib64/libamarok.so.0 (0x00002ba26dee4000)
        libmp4v2.so.0 => /usr/lib64/libmp4v2.so.0 (0x00002ba26e54b000)
        libkhtml.so.4 => /usr/kde/3.5/lib64/libkhtml.so.4 (0x00002ba26e6f0000)
        libkjs.so.1 => /usr/kde/3.5/lib64/libkjs.so.1 (0x00002ba26ec37000)
        libpcreposix.so.0 => /usr/lib64/libpcreposix.so.0 (0x00002ba26edb8000)
        libpcre.so.0 => /usr/lib64/libpcre.so.0 (0x00002ba26eeba000)
        libkdeprint.so.4 => /usr/kde/3.5/lib64/libkdeprint.so.4 (0x00002ba26efd6000)
        libkparts.so.2 => /usr/kde/3.5/lib64/libkparts.so.2 (0x00002ba26f1ce000)
        libkutils.so.1 => /usr/kde/3.5/lib64/libkutils.so.1 (0x00002ba26f329000)
        libknewstuff.so.1 => /usr/kde/3.5/lib64/libknewstuff.so.1 (0x00002ba26f4a6000)
        libkio.so.4 => /usr/kde/3.5/lib64/libkio.so.4 (0x00002ba26f5f2000)
        libkdeui.so.4 => /usr/kde/3.5/lib64/libkdeui.so.4 (0x00002ba26fabe000)
        libkdesu.so.4 => /usr/kde/3.5/lib64/libkdesu.so.4 (0x00002ba26ff74000)
        libkwalletclient.so.1 => /usr/kde/3.5/lib64/libkwalletclient.so.1 (0x00002ba27008c000)
        libkdecore.so.4 => /usr/kde/3.5/lib64/libkdecore.so.4 (0x00002ba27019f000)
        libDCOP.so.4 => /usr/kde/3.5/lib64/libDCOP.so.4 (0x00002ba270546000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00002ba2706a3000)
        libutil.so.1 => /lib/libutil.so.1 (0x00002ba2707b6000)
        libart_lgpl_2.so.2 => /usr/lib64/libart_lgpl_2.so.2 (0x00002ba2708b9000)
        libidn.so.11 => /usr/lib64/libidn.so.11 (0x00002ba2709d1000)
        libkdefx.so.4 => /usr/kde/3.5/lib64/libkdefx.so.4 (0x00002ba270b02000)
        libqt-mt.so.3 => /usr/qt/3/lib64/libqt-mt.so.3 (0x00002ba270c2f000)
        libmng.so.1 => /usr/lib64/libmng.so.1 (0x00002ba27155c000)
        libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002ba2716c8000)
        libXi.so.6 => /usr/lib64/libXi.so.6 (0x00002ba2717ea000)
        libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00002ba2718f3000)
        libXcursor.so.1 => /usr/lib64/libXcursor.so.1 (0x00002ba2719f6000)
        libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00002ba271b00000)
        libXft.so.2 => /usr/lib64/libXft.so.2 (0x00002ba271c06000)
        libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00002ba271d19000)
        libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002ba271e57000)
        libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x00002ba271fd2000)
        libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002ba2720f4000)
        libSM.so.6 => /usr/lib64/libSM.so.6 (0x00002ba272217000)
        libICE.so.6 => /usr/lib64/libICE.so.6 (0x00002ba272322000)
        libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00002ba27243d000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002ba272546000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00002ba27264a000)
        libtag.so.1 => /usr/lib64/libtag.so.1 (0x00002ba27274f000)
        libGL.so.1 => //usr/lib64/opengl/nvidia/lib/libGL.so.1 (0x00002ba2728a5000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002ba272a5b000)
        libXext.so.6 => /usr/lib64/libXext.so.6 (0x00002ba272c64000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002ba272d75000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00002ba272e7a000)
        libmysqlclient.so.15 => not found
        libz.so.1 => /lib/libz.so.1 (0x00002ba272f90000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00002ba2730a5000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x00002ba2731d9000)
        libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00002ba2732ef000)
        libcrypto.so.0.9.8 => /usr/lib64/libcrypto.so.0.9.8 (0x00002ba273436000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6 (0x00002ba2736a7000)
        libm.so.6 => /lib/libm.so.6 (0x00002ba2738a8000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002ba2739fe000)
        libc.so.6 => /lib/libc.so.6 (0x00002ba273b0b000)
        libmysqlclient.so.15 => not found
        libGLcore.so.1 => //usr/lib64/opengl/nvidia/lib/libGLcore.so.1 (0x00002ba273d39000)
        libnvidia-tls.so.1 => //usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.1 (0x00002ba2745ba000)
        /lib64/ld-linux-x86-64.so.2 (0x00002ba26ddc8000)

objdump:
 NEEDED      libamarok.so.0
  NEEDED      libmp4v2.so.0
  NEEDED      libkhtml.so.4
  NEEDED      libkjs.so.1
  NEEDED      libpcreposix.so.0
  NEEDED      libpcre.so.0
  NEEDED      libkdeprint.so.4
  NEEDED      libkparts.so.2
  NEEDED      libkutils.so.1
  NEEDED      libknewstuff.so.1
  NEEDED      libkio.so.4
  NEEDED      libkdeui.so.4
  NEEDED      libkdesu.so.4
  NEEDED      libkwalletclient.so.1
  NEEDED      libkdecore.so.4
  NEEDED      libDCOP.so.4
  NEEDED      libresolv.so.2
  NEEDED      libutil.so.1
  NEEDED      libart_lgpl_2.so.2
  NEEDED      libidn.so.11
  NEEDED      libkdefx.so.4
  NEEDED      libqt-mt.so.3
  NEEDED      libmng.so.1
  NEEDED      libjpeg.so.62
  NEEDED      libXi.so.6
  NEEDED      libXrandr.so.2
  NEEDED      libXcursor.so.1
  NEEDED      libXfixes.so.3
  NEEDED      libXft.so.2
  NEEDED      libfontconfig.so.1
  NEEDED      libfreetype.so.6
  NEEDED      libexpat.so.0
  NEEDED      libpng12.so.0
  NEEDED      libSM.so.6
  NEEDED      libICE.so.6
  NEEDED      libXrender.so.1
  NEEDED      libXau.so.6
  NEEDED      libXdmcp.so.6
  NEEDED      libtag.so.1
  NEEDED      libGL.so.1
  NEEDED      libX11.so.6
  NEEDED      libXext.so.6
  NEEDED      libdl.so.2
  NEEDED      libpthread.so.0
  NEEDED      libmysqlclient.so.15
  NEEDED      libz.so.1
  NEEDED      libcrypt.so.1
  NEEDED      libnsl.so.1
  NEEDED      libssl.so.0.9.8
  NEEDED      libcrypto.so.0.9.8
  NEEDED      libstdc++.so.6
  NEEDED      libm.so.6
  NEEDED      libgcc_s.so.1
  NEEDED      libc.so.6

Will attach revdep-rebuild files.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2007-01-05 08:56:47 UTC
Removing from CC since I'm on the tools-portage alias.  Secondly, I was unable to reproduce this on my machine doing the following

env USE="mysql" emerge -v1 amarok
emerge --unmerge dev-db/mysql
revdep-rebuild --ignore --pretend

revdep-rebuild found the missing lib and wanted to rebuild amarok
Comment 4 Harlan Lieberman-Berg (RETIRED) gentoo-dev 2007-01-05 10:20:49 UTC
I've been unable to get revdep-rebuild to save the .revdep files.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2007-01-05 11:04:58 UTC
add --keep-temp to your revdep-rebuild options.
Comment 6 Harlan Lieberman-Berg (RETIRED) gentoo-dev 2007-01-05 17:02:34 UTC
Created attachment 105585 [details]
Revdep Files
Comment 7 Paul Varner (RETIRED) gentoo-dev 2007-01-06 07:49:20 UTC
I still can't duplicate the issue, so I am guessing at this point.  You do have a very large LD_PATH in the .revdep-rebuild.2_ldpath file.  Would you be willing to install gentoolkit-0.2.3_pre3 and run revdep-rebuild --no-ld-path and see if it works? That option limits the LD_PATH to not include everything.
Comment 8 Harlan Lieberman-Berg (RETIRED) gentoo-dev 2007-01-06 23:13:46 UTC
That finds it. Including the files, then rebuilding amarok (finally).
Comment 9 Harlan Lieberman-Berg (RETIRED) gentoo-dev 2007-01-06 23:20:54 UTC
Actually, looks like that finds a lot more than just amarok, all depending on libmysqlclient.so.15.

Samba, DBD-mysql, qt, and amarok.
Comment 10 Harlan Lieberman-Berg (RETIRED) gentoo-dev 2007-01-06 23:22:48 UTC
Created attachment 105721 [details]
The Second Revdep Files -- Working ones.
Comment 11 Paul Varner (RETIRED) gentoo-dev 2007-01-07 07:31:20 UTC
Okay, given your environment, you are going to need to use the revdep-rebuild from gentoolkit-0.2.3* with the --no-ld-path option. The only issue with this option is that it can cause false positives (wanting to rebuild things that actually are not broken). In your case though that is better than not finding anything at all. Most  likely this is a duplicate of Bug #96946.
Comment 12 Harlan Lieberman-Berg (RETIRED) gentoo-dev 2007-02-05 14:16:30 UTC
Duplicate as in last message.