Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102255 - revdep-rebuild g/fbsd support
Summary: revdep-rebuild g/fbsd support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Paul Varner (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-12 08:41 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-04-12 10:50 UTC (History)
2 users (show)

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


Attachments
revdep-rebuild-gfbsd.patch (revdep-rebuild-gfbsd.patch,1.18 KB, patch)
2005-08-12 08:42 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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?