[Toybox] FreeBSD Toybox check-in
Ed Maste
emaste at freebsd.org
Wed Nov 8 15:04:07 PST 2023
I dropped off the mailing list a while back due to bounced mail, and
hadn't been able to look at Toybox for some time. I recently had
occasion to check on the state of Toybox on FreeBSD again.
I'm still carrying a patch to use `#!/usr/bin/env bash` in configure
and seven files in scripts/ as we do not have bash in /usr/bin. I also
changed the make invocation in configure to `gmake defconfig`.
Other than that, `gmake allnoconfig
KCONFIG_ALLCONFIG=kconfig/freebsd_miniconfig && gmake` is successful.
There are a number of toys (or config options) that are not currently
enabled in freebsd_miniconfig, but do build, on my FreeBSD 14 laptop:
CONFIG_DD
CONFIG_FOLD
CONFIG_TSORT
CONFIG_BC
CONFIG_CRONTAB
CONFIG_CSPLIT
CONFIG_DUMPLEASES
CONFIG_EXPR
CONFIG_GETOPT
CONFIG_GITCOMPAT
CONFIG_GITCLONE
CONFIG_GITINIT
CONFIG_GITREMOTE
CONFIG_GITFETCH
CONFIG_GITCHECKOUT
CONFIG_GROUPADD
CONFIG_GROUPDEL
CONFIG_HEXDUMP
CONFIG_HD
CONFIG_IPCRM
CONFIG_MAN
CONFIG_MORE
CONFIG_SH
CONFIG_TELNET
CONFIG_TFTP
CONFIG_TFTPD
CONFIG_TR
CONFIG_USERDEL
CONFIG_VI
CONFIG_XZCAT
CONFIG_NBD_SERVER
CONFIG_SHUF
CONFIG_TS
CONFIG_SU
A few toys are disabled but would be nice to have -- at least cp, mv,
install, tar, uname. I'd also be interested in the networking commands
(e.g. ifconfig and route). I hope that I might be able to use some of
these tasks as projects for Google Summer of Code or interns in the
future.
I ran the tests but I guess they stop on the first failure, which is currently:
...
chmod: chmod 'file' to 1644: Inappropriate file type or format
FAIL: chmod +t dir file
echo -ne '' | chmod +t dir file && ls -ld dir file | cut -d' ' -f 1 |
cut -d. -f 1
--- expected 2023-11-08 17:51:50.158224000 -0500
+++ actual 2023-11-08 17:51:50.165796000 -0500
@@ -1,2 +0,0 @@
-drwxr-xr-t
--rw-r--r-T
gmake: *** [Makefile:78: tests] Error 1
Anyhow, I just wanted to see where things stand these days, and give an update.
More information about the Toybox
mailing list