Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194993 - app-portage/gentoolkit-0.2.4_pre7: revdep-rebuild not honoring SEARCH_DIRS_MASK
Summary: app-portage/gentoolkit-0.2.4_pre7: revdep-rebuild not honoring SEARCH_DIRS_MASK
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
: 202588 (view as bug list)
Depends on:
Blocks: 170220
  Show dependency tree
 
Reported: 2007-10-07 13:50 UTC by TGL
Modified: 2008-02-21 01:52 UTC (History)
2 users (show)

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


Attachments
revdep-rebuild_0.2.4_pre7--fix_SEARCH_DIRS_MASK.patch (revdep-rebuild_0.2.4_pre7--fix_SEARCH_DIRS_MASK.patch,889 bytes, patch)
2007-10-07 13:50 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2007-10-07 13:50:10 UTC
I have defined SEARCH_DIRS_MASK="/opt/sun-*" in my make.conf, and seen that revdep-rebuild was still reporting some broken "/opt/sun-jdk-1.4.2.15/jre/lib/..." files.

This behavior comes from the fact that some /opt/sun-jdk-1.4.2.15/jre/lib/ subdirs are in my "ld.so.conf", and thus end in the SEARCH_DIRS variable.  Then, the binaries collecting "find" command is like that:
  find ... /opt/sun-jdk-1.4.2.15/jre/lib/i386 ... \( -path /opt/sun-jdk-1.4.2.15 -o ... \) -prune -o ...
Here, /opt/sun-jdk-1.4.2.15/jre/lib/i386 won't be pruned ("-path" is not a prefix check, but an exact path check).

I will attach a possible fix, which consists of filtering the SEARCH_DIRS variable to remove all paths prefixed by some masked paths.
Comment 1 TGL 2007-10-07 13:50:34 UTC
Created attachment 132826 [details, diff]
revdep-rebuild_0.2.4_pre7--fix_SEARCH_DIRS_MASK.patch
Comment 2 jieryn 2007-10-08 22:26:42 UTC
Please commit the patch or fix the tool directly, it is annoying to scan through tons of programs I already know to be (harmlessly) broken.

Thanks!
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-01-17 18:10:11 UTC
*** Bug 202588 has been marked as a duplicate of this bug. ***
Comment 4 Paul Varner (RETIRED) gentoo-dev 2008-02-16 20:51:50 UTC
$ svn commit -m "Filter SEARCH_DIRS_MASK paths from SEARCH_DIRS. (Bug 194993)"
Sending        revdep-rebuild/revdep-rebuild
Transmitting file data .
Committed revision 461.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2008-02-21 01:52:12 UTC
Released in gentoolkit-0.2.4_rc2