[PATCH] some Mac OS X fixes
Rob Landley
rob at landley.net
Sat Feb 18 01:15:44 UTC 2006
On Friday 17 February 2006 2:45 am, Devin Bayer wrote:
> I wanted to do a little busybox hacking on my laptop recently and
> found it didn't even compile on OS X. This patch fixes those bugs
> blocking my development, but it doesn't go far enough to make busybox
> useful on OS X. It touches lots of different files, but most of the
> changes are too minor for individual patches. A summary of the fixes:
>
> * Don't try to make empty archives
What exactly is wrong with that?
> * wait is the name of a function - don't use variables with that name
Which header is that prototyped in? Can we avoid #including it?
> * bb_strlen called strlen which was a macro to bb_strlen. How did this
> ever work for anybody?
Up until yesterday there was an #undef there. Vodz just removed it. I don't
know why.
http://www.busybox.net/downloads/patches/svn-14077.patch
> * little more robustness in feature checking Make macros
> * lots more conditional linker and strip flags
> * don't built non-portable objects unless needed by an applet. This
> is mostly a short-term solution. Better would be to make them
> portable.
Actually, that's a good thing to do anyway. There's no point in wasting
compile time building libraries we're not going to use.
That said, I don't think losetup is ever going to work on MacOS X. And lots
of our applets get data out of /proc, which macos X doesn't have. At best
you're only ever going to build a subset.
> * SUSv3 doesn't require -lcrypt - nor does OS X even have it
Does it have the functionality?
> * OS X uses different macros for endian-detection
We have a #platform.h to hide those kind of differences...
> * some minor header file differences
> * sed invocations need -E when using extended mode. Probably it would
> be better just not to use extended RE's.
> * make sizes doesn't work with my nm, so I have a check awk replacement
> * and a few one-liner bugfixes in wget, httpd, and mkdep
Much as I'm interested in getting busybox to work on MacOS X, it's going to
take me a little while to work through a patch this big doing this many
different things...
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list