Re: [Toybox] Fwd: Re: Fwd: build help please with toybox

2019-11-22 Thread scsijon
Maybe one for Rob I fear? Sorry. Bottom posted. On 23/11/19 13:58, scsijon wrote: Forwarded Message Subject: Re: [Toybox] Fwd: build help please with toybox Date: Sat, 23 Nov 2019 12:22:57 +1100 From: scsijon To: Denys Nykula CC: toybox@lists.landley.net On 23/11/19

[Toybox] Fwd: Re: Fwd: build help please with toybox

2019-11-22 Thread scsijon
Forwarded Message Subject: Re: [Toybox] Fwd: build help please with toybox Date: Sat, 23 Nov 2019 12:22:57 +1100 From: scsijon To: Denys Nykula CC: toybox@lists.landley.net On 23/11/19 09:56, scsijon wrote: thanks for the help On 23/11/19 09:18, Denys Nykula wrote:

Re: [Toybox] Fwd: build help please with toybox

2019-11-22 Thread scsijon
On 23/11/19 09:56, scsijon wrote: thanks for the help On 23/11/19 09:18, Denys Nykula wrote: scripts/kconfig/lex.zconf.c:890:16: error: ‘EINTR’ undeclared (first use in this function) What's your host libc and where are its headers? In apt that's libc6-dev. and i'm in a Quirky named Xenial

[Toybox] [PATCH] printf.test: work around bash 3.2 on the Mac.

2019-11-22 Thread enh via Toybox
--- tests/printf.test | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) 0001-printf.test-work-around-bash-3.2-on-the-Mac.patch Description: Binary data ___ Toybox mailing list Toybox@lists.landley.net

[Toybox] macOS test sitrep

2019-11-22 Thread enh via Toybox
since i'm out all week next week and actively trying to avoid breaking anything, today seemed like a good time to go through all the mac test failures. only two of the patches (the device major/minor one and the setlocale one) revealed actual bugs in toybox on mac. the rest were all working

Re: [Toybox] Fwd: build help please with toybox

2019-11-22 Thread scsijon
thanks for the help On 23/11/19 09:18, Denys Nykula wrote: scripts/kconfig/lex.zconf.c:890:16: error: ‘EINTR’ undeclared (first use in this function) What's your host libc and where are its headers? In apt that's libc6-dev. and i'm in a Quirky named Xenial Xerus (Ubuntu 16.04 LTS). libc and

[Toybox] [PATCH] macos_miniconfig: add cp, mktemp, and mv.

2019-11-22 Thread enh via Toybox
All three have been in use for the Android build for a while now, and all the tests pass. --- kconfig/macos_miniconfig | 4 1 file changed, 4 insertions(+) 0001-macos_miniconfig-add-cp-mktemp-and-mv.patch Description: Binary data ___ Toybox

[Toybox] [PATCH] Fix wcwidth(3) on Mac.

2019-11-22 Thread enh via Toybox
The Mac doesn't support "C.UTF-8" (and toybox ignores the setlocale(3) failure), leading to numerous test failures because wcwidth(3) always returns -1 for non-ASCII in the default C locale. Our choices are: 1. Always use "" (the environment). 2. Always use "en_US.UTF-8" (the closest to "C.UTF-8"

Re: [Toybox] Fwd: build help please with toybox

2019-11-22 Thread Denys Nykula
> scripts/kconfig/lex.zconf.c:890:16: error: ‘EINTR’ undeclared (first use > in this function) What's your host libc and where are its headers? In apt that's libc6-dev. ___ Toybox mailing list Toybox@lists.landley.net

[Toybox] [PATCH] file.test: fix /dev/zero major/minor for Mac.

2019-11-22 Thread enh via Toybox
--- tests/file.test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 0001-file.test-fix-dev-zero-major-minor-for-Mac.patch Description: Binary data ___ Toybox mailing list Toybox@lists.landley.net

[Toybox] [PATCH] Fix iconv and tests on Mac.

2019-11-22 Thread enh via Toybox
The Mac iconv_open(3) doesn't follow Unicode TR#22 rules for charset alias matching that bionic and glibc do (and, strictly, POSIX doesn't say you have to even though it's obviously a good idea), so we have to say exactly "UTF-8" rather than "utf8". Additionally, the 2006-era bash 3.2 on current

[Toybox] [PATCH] id.test: fix tests on Mac.

2019-11-22 Thread enh via Toybox
BSDs call the root group "wheel" instead. Also remove the duplicated "id id" from the progress output. --- tests/id.test | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) 0001-id.test-fix-tests-on-Mac.patch Description: Binary data

[Toybox] [PATCH] Fix dev_minor()/dev_major()/dev_makedev() for Mac.

2019-11-22 Thread enh via Toybox
Major/minor device encoding is not portable. No two BSDs agree with each other, and Darwin is different again. Everyone does agree on having major()/minor()/makedev() macros, but they disagree whether they should be in (the BSDs including Darwin, and old versions of glibc) or (glibc >= 2.26 and

[Toybox] [PATCH] du: use FLAG().

2019-11-22 Thread enh via Toybox
--- toys/posix/du.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) 0001-du-use-FLAG.patch Description: Binary data ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

[Toybox] [PATCH] du.test: skip on Mac.

2019-11-22 Thread enh via Toybox
None of the current tests are relevant on the Mac because small symlinks are inlined into inodes, as are empty directories, so everything's using zero blocks. --- tests/du.test | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) 0001-du.test-skip-on-Mac.patch Description: Binary data

Re: [Toybox] Subject: [PATCH] Add getopt(1).

2019-11-22 Thread enh via Toybox
On a related note... The BSDs (including Mac) all have a getopt(1) but it's a trivial one, like getopts. util-linux and busybox both have this "full" getopt. On Fri, Nov 22, 2019, 08:17 enh wrote: > On Fri, Nov 22, 2019 at 5:02 AM Rob Landley wrote: > > > > On 11/22/19 6:56 AM, Rob Landley

Re: [Toybox] Subject: [PATCH] Add getopt(1).

2019-11-22 Thread enh via Toybox
On Fri, Nov 22, 2019 at 5:02 AM Rob Landley wrote: > > On 11/22/19 6:56 AM, Rob Landley wrote: > > On 11/21/19 4:13 PM, enh via Toybox wrote: > >> Includes new tests. > >> --- > >> lib/portability.h | 3 ++ > > > > Applied, by why add this #include to portability.h when it's not in an > >

[Toybox] Fwd: build help please with toybox

2019-11-22 Thread scsijon
I'm playing with a minimal-linux iso script, this should work changing from busybox to toybox with this> -minimal-2.sh (excuse any wraps) #!/bin/sh #source minimal-linux at github.com/ivandavedov/minimal gpl3 with kernel busybox syslinux #20191122 scsijon test alpha only,

Re: [Toybox] Subject: [PATCH] Add getopt(1).

2019-11-22 Thread enh via Toybox
On Fri, Nov 22, 2019 at 4:53 AM Rob Landley wrote: > > On 11/21/19 4:13 PM, enh via Toybox wrote: > > Includes new tests. > > --- > > lib/portability.h | 3 ++ > > Applied, by why add this #include to portability.h when it's not in an #ifdef? > The main #includes are in toys.h. i was going

Re: [Toybox] Subject: [PATCH] Add getopt(1).

2019-11-22 Thread Rob Landley
On 11/22/19 6:56 AM, Rob Landley wrote: > On 11/21/19 4:13 PM, enh via Toybox wrote: >> Includes new tests. >> --- >> lib/portability.h | 3 ++ > > Applied, by why add this #include to portability.h when it's not in an #ifdef? > The main #includes are in toys.h. Also, would someone please

Re: [Toybox] Subject: [PATCH] Add getopt(1).

2019-11-22 Thread Rob Landley
On 11/21/19 4:13 PM, enh via Toybox wrote: > Includes new tests. > --- > lib/portability.h | 3 ++ Applied, by why add this #include to portability.h when it's not in an #ifdef? The main #includes are in toys.h. Rob ___ Toybox mailing list