[Toybox] st_blocks

2019-09-26 Thread enh via Toybox
I shot myself in the foot with my tar test that checks both st_size and st_blocks (via stat(1)). You may remember that I had to add a "don't run these tests on a system with SELinux xattrs" hack to the du tests. Basically, any test of st_blocks will be broken because of SELinux. Unlike the du test

Re: [Toybox] [PATCH] Pass cflags and hostcc in mkroot.

2019-09-26 Thread Denys Nykula
Nevermind, the very next line in the mkroot script explains how I needn't have patched it, I just needed to pass variables this way: make CROSS_COMPILE=$cc HOSTCC="${cc}cc -static" PATH="`dirname $cc`:$PATH" \ defconfig ... make CROSS_COMPILE=$cc PATH="`dirname $cc`:$PATH" root \ CFLAGS="$CFLA

[Toybox] [PATCH] Pass cflags and hostcc in mkroot.

2019-09-26 Thread Denys Nykula
To build working armv7l binaries natively, I set march, mfpu and mfloat-abi CFLAGS specific for the device. Otherwise they can't run, illegal instruction. Binaries in generated/, kconfig/ and root/airlock/toybox/ are dynamically linked by default, so to bootstrap a musl root with a downloaded musl

Re: [Toybox] [PATCH] ln: -T should allow only 2 arguments

2019-09-26 Thread Jarno Mäkipää
this can be ignored... duplicate fix for what rob did already.. -Jarno On Thu, Sep 26, 2019 at 9:09 AM Jarno Mäkipää wrote: > > To follow similar behavior than coreutils and busybox with this > GNU extension -T should only allow maximum of 2 arguments even > when accompanied with -f > > touch a

Re: [Toybox] [PATCH] ln: add -T, use FLAG()

2019-09-26 Thread Jarno Mäkipää
Its ok. Gmail seems to work all wonky, I receive about half of the emails sent to mailing list. And get bounced out of the list every few days. Tried to check all the spam filter settings and everything. Seriously thinking of changing email address for this list. There is still one more patch for

Re: [Toybox] [PATCH] ln: add -T, use FLAG()

2019-09-26 Thread Rob Landley
On 9/25/19 4:31 PM, Jarno Mäkipää wrote: > This second patch should fix the -T allow only 2 args > > All the previous test cases seems to pass. Should write test cases for this. And now I see your patch for this. :) (Gmail splits up emails I'm cc:'d on to my inbox or to the toybox folder, depend

Re: [Toybox] [PATCH] ln: add -T, use FLAG()

2019-09-26 Thread Rob Landley
On 9/26/19 9:15 AM, Jarno Mäkipää wrote: > yeah its ok. Your patch is better anyway with tests, so ignore mine. > > But note that there is still issue or interface difference with > coreutils and busybox what Ryan Prichard mentioned. > Other implementations check if there is more than 2 args with

Re: [Toybox] [PATCH] hexedit: fix scrolling on legacy terminals

2019-09-26 Thread Rob Landley
On 9/26/19 1:35 AM, Jarno Mäkipää wrote: > Thanks for James McMechan for pointing this out. > > Using esc[1L and esc[1M escapes with cursor jump to > 1, 1 to make scrolling effect instead of S and T > fixes scrolling inside Linux terminal and tmux > > -Jarno > Very nice. Applied, Rob

Re: [Toybox] Fwd: hexedit uses VT-420 scroll ctrl sequences which dont work on tty1

2019-09-26 Thread Rob Landley
On 9/25/19 1:59 PM, Jarno Mäkipää wrote: > On Wed, Sep 25, 2019 at 8:23 PM Rob Landley wrote: >> >> On 9/24/19 1:18 AM, Jarno Mäkipää wrote: >>> Hi >>> >>> I now tested to run hexedit in tmux: downscroll works but upscroll does >>> not... >>> Well we might say its tmux fault, but lots of people u

Re: [Toybox] Fwd: hexedit uses VT-420 scroll ctrl sequences which dont work on tty1

2019-09-26 Thread David Seikel
On Thu, 26 Sep 2019 08:49:10 -0500 Rob Landley said : > On 9/25/19 12:59 PM, David Seikel wrote: > > On Wed, 25 Sep 2019 12:24:13 -0500 Rob Landley said : > >> On 9/24/19 1:18 AM, Jarno Mäkipää wrote: > >>> Hi > >>> > >>> I now tested to run hexedit in tmux: downscroll works but upscroll > >>>

Re: [Toybox] [PATCH] ln: add -T, use FLAG()

2019-09-26 Thread Jarno Mäkipää
yeah its ok. Your patch is better anyway with tests, so ignore mine. But note that there is still issue or interface difference with coreutils and busybox what Ryan Prichard mentioned. Other implementations check if there is more than 2 args with -T. -Jarno On Thu, Sep 26, 2019 at 4:46 PM Rob La

Re: [Toybox] Fwd: hexedit uses VT-420 scroll ctrl sequences which dont work on tty1

2019-09-26 Thread Robert Thompson
That all works in screen, at least to some extent. Years ago I discovered I could write a script and connect its stdin to the stdout of whatever was in the screen, and vice versa. I think what led me to the discovery was someone's description of how to do zmodem over SSH to a network switch (it tre

Re: [Toybox] Fwd: hexedit uses VT-420 scroll ctrl sequences which dont work on tty1

2019-09-26 Thread Rob Landley
On 9/25/19 12:59 PM, David Seikel wrote: > On Wed, 25 Sep 2019 12:24:13 -0500 Rob Landley said : >> On 9/24/19 1:18 AM, Jarno Mäkipää wrote: >>> Hi >>> >>> I now tested to run hexedit in tmux: downscroll works but upscroll >>> does not... Well we might say its tmux fault, but lots of people >>> use

Re: [Toybox] [PATCH] ln: add -T, use FLAG()

2019-09-26 Thread Rob Landley
On 9/25/19 3:20 PM, Jarno Mäkipää wrote: > Added: -T > Replaced: & flag_# with FLAG(#) > > There was feature request on github. Apparently there is some android > scripts with ln -sfT I did that about 15 minutes before you sent this. (There was a github feature request thingy.) Rob _