[Toybox] FreeBSD porting, removing bashisms

Rob Landley rob at landley.net
Tue Mar 29 22:30:49 PDT 2016


On 03/29/2016 10:37 PM, Zack Breckenridge wrote:
> One last thing to add to the above - as Ed said:
> 
>> Yes, it's not used (or available) for native builds -- the syscalls
>> and ioctls aren't available in that case. The Linux emulation layer
>> would be used when running an unmodified Linux toybox binary. I'm
>> happy enough to just avoid building the Linux-specific tools for now.
> 
> As you can see some of the error messages I encountered upon 'make test'
> under Linux emulation definitely showed some missing ioctls. However, I
> can't see how those particular commands and corresponding ioctls or
> syscalls won't be used by many Docker images in the wild, which FreeBSD
> intends to support.
> 
> It definitely seems Toybox would make a great test suite for any Linux
> emulation framework on any platform that intends to build minimal
> support for most Linux userland binaries.

That's the short-term path to running on freebsd I imagined. Figuring
out which linux commands freebsd can emulate would be interesting, maybe
I could annotate menuconfig with this information somehow? Maybe some
sort of:

  make defconfig KCONFIG_ALLCONFIG=switch-these-off.txt

file?

> - Zack

Rob

 1459315849.0


More information about the Toybox mailing list