Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37325 - revdep-rebuild should check as first findutils (find, xargs) without using them
Summary: revdep-rebuild should check as first findutils (find, xargs) without using them
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-01-05 12:12 UTC by Alexander Holler
Modified: 2006-06-19 21:20 UTC (History)
1 user (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 Alexander Holler 2004-01-05 12:12:11 UTC
After unmerging openafs I had the problem that find and xargs won't work because they needed pam_afs. Revdep-rebuild has shown nothing to rebuild and hasn't omit an error. So maybe it would be a good idea, to first check those two utils if they are linked correct.

Reproducible: Always
Steps to Reproduce:
1.USE="afs" emerge findutils
2.emerge unmerge openafs
3.revdep-rebuild -p
Comment 1 Martin Mokrejš 2005-07-02 07:35:38 UTC
I aggree I have seen same behaviour. Athough don't know how to make emerge fix
this teh only way to fix the situation is to rebuild those two. They have
configure flag for afs and I think also look for /afs directory - which is
present even in the case when afs is "just" installed and not even ever run (but
this case will always never be detected as --disable-afs :(( ).
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2005-08-06 13:26:50 UTC
The test can be for example

function does_it_work() {
    $1 --version >/dev/null 2>&1
    return $?
}

Then we can test find etc. in the beginning of revdep-rebuild...
does_it_work find || die "find doesn't work"
...
Comment 3 Paul Varner (RETIRED) gentoo-dev 2006-01-26 14:19:10 UTC
This functionality is built into gentoolkit-0.2.2_preX
Comment 4 Paul Varner (RETIRED) gentoo-dev 2006-06-19 21:20:49 UTC
released in gentoolkit-0.2.2