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
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 :(( ).
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" ...
This functionality is built into gentoolkit-0.2.2_preX
released in gentoolkit-0.2.2