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

2019-11-23 Thread scsijon
On 24/11/19 03:45, Rob Landley wrote: On 11/22/19 7:22 PM, scsijon wrote: 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 a

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

2019-11-23 Thread scsijon
On 24/11/19 03:45, Rob Landley wrote: On 11/22/19 7:22 PM, scsijon wrote: 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

[Toybox] bc comparison bug fix

2019-11-23 Thread Gavin Howard
Hello, Attached is a patch to fix a comparison bug in bc. See https://github.com/gavinhoward/bc/pull/25 and https://github.com/gavinhoward/bc/pull/25/commits/ddbecaa0601375b86dffb525973148cdd0dda8f7 Gavin Howard From 347bd813437538f0d6f5a8719a7b677c3669983c Mon Sep 17 00:00:00 2001 From: Gavin Ho

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

2019-11-23 Thread Rob Landley
On 11/22/19 11:43 PM, scsijon wrote: > Maybe one for Rob I fear? Sorry. Bottom posted. Yes, but only because I wrote the initramfs docs, not because toybox. :) > Run /init as init process > Failed to execute /init (error -2) It couldn't exec the binary. #define ENOENT 2 /* No suc

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

2019-11-23 Thread Rob Landley
On 11/22/19 8:58 PM, scsijon wrote: > Many thanks again Denys for the versions idea, after relooking, there was > nothing about minimum package versions in their doc's, just packages that need > to be installed and I had all of them already installed and available and it > was > suppose to build w

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

2019-11-23 Thread Rob Landley
On 11/22/19 7:22 PM, scsijon wrote: > 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? I

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

2019-11-23 Thread Rob Landley
On 11/22/19 4:56 PM, 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) It's a symlink to the _shipped version of the same filename, which has an #include on line 21. S

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

2019-11-23 Thread enh via Toybox
On Sat, Nov 23, 2019, 07:22 Rob Landley wrote: > > > On 11/22/19 10:17 AM, enh wrote: > > 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/portab

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

2019-11-23 Thread Rob Landley
On 11/23/19 10:17 AM, Rob Landley wrote: > Hmmm... maybe it can do this as the fallback? > > if (!setlocale("c.utf8")) setlocale(""); > > (This is _so_ not my area of expertise, happy to be corrected here. But I want > utf8 support in initramfs or booting from a rescue USB stick where I haven't

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

2019-11-23 Thread Rob Landley
On 11/22/19 4:37 PM, enh via Toybox wrote: > The Mac doesn't support "C.UTF-8" Of course not. Sigh. > (and toybox ignores the setlocale(3) failure), The problem is what would I _do_ with it? ("Never test for an error condition you don't know how to handle." - somebody named Steinbach.) > leadin

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

2019-11-23 Thread enh via Toybox
On Sat, Nov 23, 2019, 07:51 Rob Landley wrote: > On 11/22/19 2:38 PM, enh via Toybox wrote: > > 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. > > That's a filesystem issue, not

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

2019-11-23 Thread Rob Landley
On 11/22/19 2:38 PM, enh via Toybox wrote: > 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. That's a filesystem issue, not an OS issue. (In theory Linux filesystems can do this too.

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

2019-11-23 Thread Denys Nykula
> #!/bin/sh Shell is very work in progress and not enabled in .config by default, so build for example https://github.com/MirBSD/mksh into your setup. > setsid cttyhack /bin/sh And instead of this, exec /sbin/oneit /bin/sh. > Quirky Ubuntu had apparently too old > a gcc version to build. >Fro

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

2019-11-23 Thread Rob Landley
On 11/22/19 11:13 AM, enh wrote: > 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.  CONFORMING TO getopt_long() and getopt_long_only(): These functions are GNU ex

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

2019-11-23 Thread Rob Landley
On 11/22/19 10:17 AM, enh wrote: > 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

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

2019-11-23 Thread Rob Landley
On 11/22/19 10:07 AM, enh wrote: > 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

Re: [Toybox] ls -l broken

2019-11-23 Thread Rob Landley
On 11/20/19 11:52 PM, enh wrote: > On Wed, Nov 20, 2019 at 9:44 PM Rob Landley wrote: >> I don't understand why you moved this test: >> >> + sym = AT_SYMLINK_NOFOLLOW*!(flags&DIRTREE_SYMFOLLOW), okay = 1; >> >> // stat dangling symlinks >> if (fstatat(fd, name, &st, sym)) { >> -