[Toybox] Proposal: Add ucsicontrol (USB Type-C UCSI utility) to toybox
Rob Landley
rob at landley.net
Fri Oct 2 21:03:55 UTC 2026
On 9/8/26 17:48, Rob Landley via Toybox wrote:
>>>> Are you planning to release ucsicontrol in android tree ( https://
>>>> android.googlesource.com/platform/external/toybox/) ?
>>>
>>> That's an Elliott question.
>>
>> the semi-auto updating infrastructure currently only supports github
>> (which has helpful [rest] apis), so we're on "whatever's in github".
>
> I can work on cutting a release this month, and push the release version
> to github. (It's coming up on 3 months anyway, https://landley.net/
> toybox/faq.html#releases says quarterly releases...)
I haven't forgotten, just... cutting a release always takes longer than
I expect. (The extra regression testing, whole tree git diff to see what
I haven't checked in, going through the git log to assemble release
notes, building binaries for all the targets... it always finds loose ends.)
Currently trying to figure out whether I should "default n" mkpasswd
(which is dying on a "make distclean defconfig tests" build because of
the stupid crypt() regression in glibc that I still haven't gotten
around to reimplementing in lib/crypt.c), which led me to do a static
musl build of everything to see if _that_ passed all the tests but then:
scripts/runtest.sh: line 147: warning: command substitution: ignored
null byte in input
FAIL: sed s after NUL
echo -ne 'one\0two' |
'"/home/landley/toybox/clean/generated/testdir/sed" s/t/x/'
--- expected 2026-10-02 15:39:08.942143523 -0500
+++ actual 2026-10-02 15:39:08.942143523 -0500
@@ -1 +1 @@
-onexwo
\ No newline at end of file
+onetwo
\ No newline at end of file
make: *** [Makefile:105: tests] Error 1
...wha? Why does the glibc one pass that test but the musl-libc one
fail? It's dying unable to process the null byte in the bash shell
pumbing... I mean yeah x="$(blah)" can't represent an embedded null in a
shell variable by why is the OTHER codepath not barfing...? (The output
from sed looks right from the command line... ah, no it doesn't, musl's
regex engine doesn't look past the NUL because Rich went "who needs
REG_STARTEND" back in https://www.openwall.com/lists/musl/2013/01/15/14
and has since ignored https://www.openwall.com/lists/musl/2023/05/14/1
and such... So that's a known musl bug, the warning is just cosmetic
because the bash plumbing can't preserve the NULL byte in the diff
output displayed for an error so the error message is slightly
inaccurate...)
Sigh, the tests pass against glibc if I switch mkpasswd off, design
decision whether to "default n" that or call it good since that one DOES
pass under musl and in either case it's a libc bug preventing all tests
from passing in defconfig. (The glibc one being a _regression_ from when
it DID used to pass...)
I haven't even gotten to building the mkroot binaries for all the
targets yet. (Probably sticking with 7.0 kernel this time until
https://www.youtube.com/watch?v=RIZPuhzy0YU vs
https://www.youtube.com/watch?v=InvaowP8XH8 works itself out. Or until
AlpineBSD is installable... :)
> Rob
Still Rob
More information about the Toybox
mailing list