Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 346093 - app-portage/gentoolkit - revdep-rebuild should accept more than one (--library) option
Summary: app-portage/gentoolkit - revdep-rebuild should accept more than one (--librar...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 386649 (view as bug list)
Depends on:
Blocks: 346443
  Show dependency tree
 
Reported: 2010-11-19 16:31 UTC by Jeroen Roovers (RETIRED)
Modified: 2023-09-21 12:33 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2010-11-19 16:31:20 UTC
revdep-rebuild --library foo.so.1 --library bar.so.1
* searches only for bar.so.1

revdep-rebuild --library foo.so.1 bar.so.1
* searches only for foo.so.1

It's not obvious and the man page suggest:
  revdep-rebuild [OPTIONS] [--] [EMERGE OPTIONS]

so there isn't anything that implies it will take only one --library argument. 

In fact preserve_old_lib in eutils.eclass has been designed to reflect this shortcoming by suggesting multiple revdep-rebuild calls even when it does accept multiple file arguments itself.
Comment 1 Paul Varner (RETIRED) gentoo-dev 2010-11-22 16:27:52 UTC
You are reading my mind.  I was just thinking the same thing. I'm going to target it for 0.3.1.  If it turns out to be trivial enough, we can backport it to 0.3.0
Comment 2 Guy 2010-11-22 22:18:55 UTC
FWIW -- One of the examples the man page gives for revdep-rebuild is:

       To rebuild packages that depend upon libImlib.so and libImlib2.so:
       revdep-rebuild --library libImlib[2]*.so.*


The actual behavior is to run 'revdep-rebuild' for the first library found.

I had wanted to run:

       revdep-rebuild -i -p --library /usr/lib64/python2.6/site-packages/PyQt4/*.so

'revdep-rebuild' ran only for:

* Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries using /usr/lib64/python2.6/site-packages/PyQt4/Qsci.so
 * will be emerged.

Am I correct in assuming that this bug is opened for a different aspect of the same problem I encountered? i.e.: When using the --library flag, revdep-rebuild only works for a single library despite the example in the man page?
Comment 3 Paul Varner (RETIRED) gentoo-dev 2010-11-22 22:53:46 UTC
Slightly different issue and it looks like it got broken when we rewrote revdep-rebuild.

I'm going to open a separate bug.
Comment 4 Guy 2010-11-22 23:56:08 UTC
(In reply to comment #3)
> Slightly different issue and it looks like it got broken when we rewrote
> revdep-rebuild.
> 
> I'm going to open a separate bug.
> 

Thank you for the quick reply and thank you for including me on bug# 346475.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2011-10-10 16:40:05 UTC
*** Bug 386649 has been marked as a duplicate of this bug. ***