The attached patch applied over revdep-rebuild makes it work on BSD userland (at least on G/FBSD, maybe also on G/OSX but not sure). It's still not a 100% version as it doesn't care if a binary is freebsd's or linux's, but as linux emulation is not enabled right now it's not a problem. Thanks, Diego
Created attachment 65763 [details, diff] revdep-rebuild-gfbsd.patch
Is there a way to test that it doesn't work? It appears to be completely happy on my osx machine when I run it. I would expecte to get those stat errors on OSX too. Tried to break a dependency, but it didn't work out :(
this would pretty much need a rewrite to actually work with mach-o it looks like.
Perhaps the stat should simply be removed, and a more portable alternative could be found? This would prevent such headaches when another OS uses yet another stat. It is used to remove all temporary files if any is over a day old. This can be done using GNU find, and the FBSD find manpage makes me think this should work with that too (but I can't actually test it at the moment). find "${LIST%/*}/." ! -name . -prune -name "${LIST##*/}*" -mtime +0 -exec rm -f ${LIST}* \; Admittedly, this doesn't work with busybox find (which doesn't recognise -prune and -exec), but busybox doesn't provide stat either, so that shouldn't really be much of a problem.
Added to gentoolkit-0.2.1_pre5
Why do I even bother?