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

Bug 102255

Summary: revdep-rebuild g/fbsd support
Product: Gentoo/Alt Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: OtherAssignee: Paul Varner (RETIRED) <fuzzyray>
Status: RESOLVED FIXED    
Severity: normal CC: bsd+disabled, osx
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: revdep-rebuild-gfbsd.patch

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-12 08:41:51 UTC
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
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-12 08:42:49 UTC
Created attachment 65763 [details, diff]
revdep-rebuild-gfbsd.patch
Comment 2 Fabian Groffen gentoo-dev 2005-08-12 09:12:45 UTC
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 :(
Comment 3 Kito (RETIRED) gentoo-dev 2005-08-12 09:30:35 UTC
this would pretty much need a rewrite to actually work with mach-o it looks like.
Comment 4 Harald van Dijk (RETIRED) gentoo-dev 2005-08-12 09:33:52 UTC
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.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2005-08-16 14:15:01 UTC
Added to gentoolkit-0.2.1_pre5
Comment 6 Harald van Dijk (RETIRED) gentoo-dev 2005-08-16 18:37:43 UTC
Why do I even bother?