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

Bug 307391

Summary: Have FEATURES="preserved-libs" honor SEARCH_DIRS_MASK in /etc/revdep-rebuild/*
Product: Portage Development Reporter: Paul Varner (RETIRED) <fuzzyray>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=565792
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 240323    

Description Paul Varner (RETIRED) gentoo-dev 2010-03-01 23:13:13 UTC
Since you can't fix broken libraries from binary packages, revdep-rebuild introduced having the ebuild maintainers placing a file in /etc/revdep-rebuild which would set SEARCH_DIRS_MASK to the directories where the binary package was installed.  It would be nice if the preserved-libs feature also honored those files to prevent trying to repeatedly rebuild binary packages. The usage of these files is described in the revdep-rebuild man page under the configuration section.
Comment 1 Zac Medico gentoo-dev 2012-10-11 14:37:07 UTC
Is there anything that SEARCH_DIRS_MASK solves that can't be solved by using patchelf, as described in bug #402081, comment #6?
Comment 2 Zac Medico gentoo-dev 2012-10-11 16:51:11 UTC
SEARCH_DIRS_MASK is useful for revdep-rebuild, since it searches for unsatisfied/broken dynamic links. On the other hand, preserve-libs tries to prevent satisfied dynamic links from becoming unsatisfied/broken. When binary packages trigger preserve-libs, it typically falls into two categories:

1) Cases where scanelf --set-rpath '$ORIGIN' can be used (see bug #265372 and bug #400979).

2) Missing dependencies (like a legacy libng or openssl slot).

If those are the only cases where binary packages trigger preserve-libs, then preserve-libs doesn't need to use SEARCH_DIRS_MASK.