From 3ef015d73749f462e93953ec63d5c42e5a0f401a Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 8 Feb 2019 19:54:47 -0600 Subject: Update news.html for 0.8.0 release. --- www/news.html | 123 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) diff --git a/www/news.html b/www/news.html index f14f4f11..600b298d 100755 --- a/www/news.html +++ b/www/news.html @@ -8,6 +8,129 @@ a development environment. See the links on the left for details.

News

+

February 8, 2019

+
+

"Most readers get as far as the Future Semiconditionally Modified +Subinverted Plagal Past Subjunctive Intentional before giving up; and +in fact in later editions of the book all pages beyond this point have +been left blank to save on printing costs."

+

- The Hitchhiker's Guide to the Galaxy

+
+ +

Toybox 0.8.0 +(git commit) +is out.

+ +

Toybox now builds on MacOS and FreeBSD, thanks to the efforts of Elliott +Hughes and Ed Maste respectively. Use the "make macos_defconfig" and "make +freebsd_defconfig" targets to enable the set of commands that compile on +each so far.

+ +

New commands: Added an sntp client/server (RFC 4330 Simple Network Time +Protocol, a compatible subset of ntp). The test command was rewritten +and promoted out of pending.

+ +

New options: grep now has --color, supports embedded NUL bytes in its input, +recognizes binary files, and passes all of grep.test (in case you +needed the middle numerical field of -bB, etc). +Josh Gao added ipv6 and UDP support to netcat. +Volodymyr Medvid reported that install -d doesn't honor -o or -g. +Elliott Hughes did a lot of work to support hermetic Android/AOSP builds: +mkdir accepts both --parent and --parents as synonyms for -p, touch ignores -f, +basename added -s to remove a trailing suffix, dirname now supports multiple +arguments, cmp accepts --quiet and --silent as synonyms for -s, hostname +added -sfd, head added --bytes as a synonym for -c and --lines as a synonym +for -n, mktemp added -t and fixed -u, sed added -z and -iEXT to keep backup files, +md5sum and sha1sum added --status and --check as synonyms -s and -c, +readlink added --cannonicalize as a synonym for -f, sort grew -V, +patch added -s its synonym --quiet, stat added --format as +a synonym for -c, xargs added -p -t -r, +Eduardas Meile asked +that umount ignore -c. Reverend Homer added a small optimization to file.c, +and Elliott taught file to recognize riscv ELF binaries. Peter Collingbourne +taught ls -t to use the nanoseconds field. +patch has better support for patching a file with a tab in the name.

+ +

Bugfixes: +cp --preserve was segfaulting when you didn't specify _what_ to +preserve (it now correctly defaults to "mot") and didn't get the permissions +right when copying a symlink's contents as a regular file, +sort -x didn't work when +attached to a key, host didn't allocate a big enough buffer for worst +case ipv6 address size, sed needed a ; between b and } when other +implementations don't (we're already well past what posix says but a script +out in the field broke...), +and several fixes to hostname in a container, ps/top were +misreading the VIRT and SHM fields.

+ +

Pending: Gavin Howard updated bc and added more tests, +Marius Adaskevicius pointed out mdev -s should follow symlinks, +Yangchun Fu reported a dhcp checksum bug, modprobe needed errno reset +to avoid reporting spurious errors in verbose mode and no longer +exits with status 1 if it can't find /etc/modprobe.conf, the more command +wasn't always flushing stdout when it exited.

+ +

Build: +chrt no longer #warns about the musl sched_get_priority_min() bug, but +instead works around it. +We were mixing setjmp/siglongjmp (harmless in some contexts but it kind +of annoyed FreeBSD), and +make install_airlock now adds sha256sum (because the Linux 4.20 build now +needs that for the s390x target).

+ +

Coding style: +Rob converted the rest of the option GLOBALS() to the new single letter +coding style, and the new FLAG(x) macro is a slightly tidier way to say +"toys.optflags&FLAG_x". +Removed CFG_SORT_BIG (the sort command always +has the full functionality now. The general future direction or toybox +is to either have a command or not have it; multiple versions of the +same command aren't worth the complexity in testing, documentation, +or system adminstration).

+ +

Library code: +The mkflags plumbing can now support arbitrary punctuation as option +names via an escape syntax (because mkfs.vfat specifies an offset with -@), +and lib/args.c now only sets FLAGS_NODASH when the first argument +didn't have a dash (allowing "ps ax" and "ps -ax" to behave differently).

+ +

Added an xrename() function, +xchdir() has better error reporting, xconnect()/xbind() had their +implementations merged, xsendto() moved from ping to lib, xpoll() now +measures elapsed time and only waits for the remaining period when restarted, +and Eduardas Meile converted several error_exit() to error_exit_raw() (because +yocto 2.6 buils with -Werror=format-security by default).

+ +

There's a scripts/portability.sh now which lets the build use gsed and gmake +(when available) in more places to avoid broken host versions on MacOS and FreeBSD. +The syntax of the "noreturn" attribute +changed slightly, some calls to strnstr() were replaced with strcasestr(), +we work around MacOS' lack of features.h, portability.h can now do Apple's +endianness macros, and so on.

+ +

Following the seven year rule +Elliott removed support or glibc 2.10, and also +reformatted a lot of --help text for consistency (removing trailing +periods and such).

+ +

Test suite: +The test suite now has its own version of "pending", specifically "make tests" +skips test files without the executable bit set (unless you export $TEST_ALL). +This eliminates "expected failures" (I.E. files with unresolved todo items) +from the global regression test. Additional tests can be added to the global +regression test with chmod +x as the todo items they document get resolved.

+ +

Several places the test suite got fluffed out, including guards to skip +root-only tests when run as a normal user. The testcmd function prints the +short name instead of the full path to the command. +The tests for the test command +("test.test") no longer test the shell builtin but correctly test the +toybox command. (Now say that ten times fast.)

+ +

Bash version skew required replacing "continue" with "return" to stop +tests early in bash 4.4 (for VERBOSE=fail).

+ +

October 31, 2018

"In the beginning the Universe was created. -- cgit v1.2.3