Re: [Toybox] Impact of global struct size

2024-01-03 Thread Patrick Oppenlander
On Thu, Jan 4, 2024 at 4:30 AM Rob Landley wrote: > > I note that I've written over a hundred lines of rant in response to his > previous email already. I should dig back through this and turn it into proper > documentation at some point. (Especially since Elliott knows more of this > stuff >

Re: [Toybox] scripts/llvm-buildall.sh?

2021-08-05 Thread Patrick Oppenlander
On Thu, Aug 5, 2021 at 3:28 PM Rob Landley wrote: > > On 8/4/21 6:10 PM, Patrick Oppenlander wrote: > > On Wed, Aug 4, 2021 at 8:53 PM Rob Landley wrote: > >> > >> On 8/3/21 7:05 PM, Patrick Oppenlander wrote: > >> >> What I'd LIKE to do is

Re: [Toybox] scripts/llvm-buildall.sh?

2021-08-04 Thread Patrick Oppenlander
On Wed, Aug 4, 2021 at 8:53 PM Rob Landley wrote: > > On 8/3/21 7:05 PM, Patrick Oppenlander wrote: > >> What I'd LIKE to do is create a scripts/llvm-buildall.sh that builds all > >> the > >> supported musl+llvm targets the way mcm-buildall.sh does for musl+g

Re: [Toybox] scripts/llvm-buildall.sh?

2021-08-03 Thread Patrick Oppenlander
Hi Rob, On Tue, Aug 3, 2021 at 7:08 PM Rob Landley wrote: > > In https://landley.net/toybox/faq.html#cross there are three build options > listed: > > 1) using your linux distro's host toolchain (probably glibc based) > > 2) using the Android NDK > > 3) using the musl+gcc toolchain I supply a

Re: [Toybox] mkroot works again, pending release.

2020-10-25 Thread Patrick Oppenlander
On Mon, Oct 26, 2020 at 12:56 PM Rob Landley wrote: > > On 10/25/20 7:57 PM, Patrick Oppenlander wrote: > > On Mon, Oct 26, 2020 at 11:46 AM Rob Landley wrote: > >> > >> On 10/25/20 6:39 PM, Patrick Oppenlander wrote: > >>> On Sat, Oct 24, 2020 at 12:43

Re: [Toybox] mkroot works again, pending release.

2020-10-25 Thread Patrick Oppenlander
On Mon, Oct 26, 2020 at 11:46 AM Rob Landley wrote: > > On 10/25/20 6:39 PM, Patrick Oppenlander wrote: > > On Sat, Oct 24, 2020 at 12:43 PM Rob Landley wrote: > >> > >> On 10/20/20 11:19 PM, Rob Landley wrote: > >>> On 10/20/20 10:03 PM, Patrick Oppe

Re: [Toybox] mkroot works again, pending release.

2020-10-25 Thread Patrick Oppenlander
On Sat, Oct 24, 2020 at 12:43 PM Rob Landley wrote: > > On 10/20/20 11:19 PM, Rob Landley wrote: > > On 10/20/20 10:03 PM, Patrick Oppenlander wrote: > >> On Wed, Oct 21, 2020 at 1:38 PM Rob Landley wrote: > >>> So yeah, allyesconfig throws #warnings

Re: [Toybox] watchdog: Can't call daemon() on nommu

2020-10-25 Thread Patrick Oppenlander
On Fri, Oct 23, 2020 at 11:59 AM Rob Landley wrote: > > > > On 10/22/20 5:49 PM, Rob Landley wrote: > > On 10/21/20 4:24 AM, Patrick Oppenlander wrote: > >> Sure, but.. > >> > >> $ watchdog -F & > >> > >> works on nommu >

Re: [Toybox] watchdog: Can't call daemon() on nommu

2020-10-22 Thread Patrick Oppenlander
On Fri, 23 Oct 2020, 08:21 Rob Landley, wrote: > On 10/22/20 3:58 PM, Patrick Oppenlander wrote: > > On Thu, 22 Oct 2020, 17:37 Rob Landley, > <mailto:r...@landley.net>> wrote: > > > > On 10/21/20 4:24 AM, Patrick Oppenlander wrote: > > > Sur

Re: [Toybox] watchdog: Can't call daemon() on nommu

2020-10-22 Thread Patrick Oppenlander
On Thu, 22 Oct 2020, 17:37 Rob Landley, wrote: > On 10/21/20 4:24 AM, Patrick Oppenlander wrote: > > Sure, but.. > > > > $ watchdog -F & > > > > works on nommu > > Yes, but fork() and daemon() shouldn't be available on nommu systems (they > _can't

[Toybox] watchdog: Can't call daemon() on nommu

2020-10-21 Thread Patrick Oppenlander
Sure, but.. $ watchdog -F & works on nommu Also, watchdog -F is pretty useful as a quick test for newly developed watchdog drivers on nommu platforms. Patrick ___ Toybox mailing list Toybox@lists.landley.net

[Toybox] [PATCH] blkdiscard: fix uninitialised offset

2020-10-20 Thread patrick . oppenlander
From: Patrick Oppenlander --- toys/other/blkdiscard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/other/blkdiscard.c b/toys/other/blkdiscard.c index a516676e..862e4fed 100644 --- a/toys/other/blkdiscard.c +++ b/toys/other/blkdiscard.c @@ -44,7 +44,7 @@ void

Re: [Toybox] mkroot works again, pending release.

2020-10-20 Thread Patrick Oppenlander
On Wed, Oct 21, 2020 at 3:09 PM Rob Landley wrote: > > On 10/20/20 10:03 PM, Patrick Oppenlander wrote: > > On Wed, Oct 21, 2020 at 1:38 PM Rob Landley wrote: > >> So yeah, allyesconfig throws #warnings during the build for a reason. I > >> forgot > >&

Re: [Toybox] mkroot works again, pending release.

2020-10-20 Thread Patrick Oppenlander
On Wed, Oct 21, 2020 at 1:38 PM Rob Landley wrote: > > > > On 10/20/20 7:14 PM, Patrick Oppenlander wrote: > > On Wed, Oct 21, 2020 at 11:02 AM Rob Landley wrote: > >> > >> > >> > >> On 10/20/20 5:23 PM, Patrick Oppenlander wrote: >

Re: [Toybox] mkroot works again, pending release.

2020-10-20 Thread Patrick Oppenlander
On Wed, Oct 21, 2020 at 11:02 AM Rob Landley wrote: > > > > On 10/20/20 5:23 PM, Patrick Oppenlander wrote: > > On Tue, Oct 20, 2020 at 10:58 AM Rob Landley wrote: > >> > >> I got toysh implementing all the bits that mkroot's init script needs, so I >

Re: [Toybox] mkroot works again, pending release.

2020-10-20 Thread Patrick Oppenlander
On Tue, Oct 20, 2020 at 10:58 AM Rob Landley wrote: > > I got toysh implementing all the bits that mkroot's init script needs, so I > expect to cut a release in the next couple days. There's still a zillion > dangling threads but I should be able to park it for now. > > If anybody wants to holler

[Toybox] hwclock & rtcwake expect /etc/adjtime to exist

2020-10-14 Thread Patrick Oppenlander
, Patrick From 963385ca53af701c20ec6b63312b96dfba917f18 Mon Sep 17 00:00:00 2001 From: Patrick Oppenlander Date: Thu, 15 Oct 2020 12:51:10 +1100 Subject: [PATCH 2/2] rtcwake: default to UTC if /etc/adjtime can't be read This is consistent with the util-linux implementation. --- toys/other

Re: [Toybox] 0.8.3 is out.

2020-05-13 Thread Patrick Oppenlander
On Thu, May 14, 2020 at 9:06 AM Rob Landley wrote: > > On 5/13/20 5:26 PM, Patrick Oppenlander wrote: > > That works for: > > > > % make root LINUX=../linux > > > > I alread have a bunch of cross compilers installed & in my path: > > > > % ls

Re: [Toybox] 0.8.3 is out.

2020-05-13 Thread Patrick Oppenlander
On Wed, May 13, 2020 at 12:17 PM Rob Landley wrote: > > Release notes on the website. > > Rob > > P.S. I wrote up a long elaborate email about it to send here, but unplugged my > laptop due to thunderstorm and then wandered away from it long enough for the > battery to die. Alas thunderbird does

[Toybox] blkdiscard man page clarification

2020-04-14 Thread Patrick Oppenlander
Hi Lukas, while writing a blkdiscard for toybox I came across a discrepancy between the man page and the util-linux implementation. For the offset and length arguments, the man page states that "The provided value will be aligned to the device sector size", but the implementation does not

Re: [Toybox] [PATCH] blkdiscard (for review)

2020-04-14 Thread Patrick Oppenlander
On Wed, Apr 15, 2020 at 11:48 AM Rob Landley wrote: > > On 4/14/20 6:36 PM, Patrick Oppenlander wrote: > >>> Without FDPIC every > >>> toybox fork/exec requires a another copy of the entire program image > >>> which kinda sucks. > >> > >

Re: [Toybox] [PATCH] blkdiscard (for review)

2020-04-14 Thread Patrick Oppenlander
On Tue, Apr 14, 2020 at 4:34 PM Rob Landley wrote: > > On 4/13/20 6:23 PM, Patrick Oppenlander wrote: > > On Fri, Apr 10, 2020 at 5:33 PM Rob Landley wrote: > >> > >> On 4/9/20 12:54 AM, Patrick Oppenlander wrote: > >>> Hi Rob, > >>> >

[Toybox] [PATCH] blkdiscard: use xioctl & error_exit

2020-04-13 Thread Patrick Oppenlander
Hi Rob, here's a patch to tidy up & simplify the error handling in blkdiscard. Patrick From 0534f028a41c64baabb984c562569a34dc9cd571 Mon Sep 17 00:00:00 2001 From: Patrick Oppenlander Date: Tue, 14 Apr 2020 15:17:18 +1000 Subject: [PATCH] blkdiscard: use xioctl & error_exit Af

Re: [Toybox] [PATCH] blkdiscard (for review)

2020-04-13 Thread Patrick Oppenlander
On Fri, Apr 10, 2020 at 5:33 PM Rob Landley wrote: > > On 4/9/20 12:54 AM, Patrick Oppenlander wrote: > > Hi Rob, > > > > I needed blkdiscard for an embedded job so had a go at putting it together. > > Applied, let's see... > > > Length & offset

[Toybox] [PATCH] blkdiscard (for review)

2020-04-08 Thread Patrick Oppenlander
tion to this? Hope you find this helpful, Patrick From 24e02a645bc2e0fbbd98a1facb6e1a1ed498d3e0 Mon Sep 17 00:00:00 2001 From: Patrick Oppenlander Date: Thu, 9 Apr 2020 15:30:12 +1000 Subject: [PATCH] blkdiscard: new command --- toys/pending/blkdiscard.c

Re: [Toybox] Did I mention why I didn't implement out of tree build?

2019-11-14 Thread Patrick Oppenlander
On Fri, Nov 15, 2019 at 4:17 AM Rob Landley wrote: > > On 11/13/19 9:25 AM, Jarno Mäkipää wrote: > > It seems that gmail stopped receiving emails from list again. I got > > kicked out of list for excessive bounces yesterday... Somehow gmail > > worked for month or two after I complained about it

[Toybox] Minor fixes to makefile

2019-08-02 Thread Patrick Oppenlander
gards, Patrick From 1032320464fbcc9f2154715cb28e7198639a5401 Mon Sep 17 00:00:00 2001 From: Patrick Oppenlander Date: Fri, 2 Aug 2019 16:35:43 +1000 Subject: [PATCH 2/2] fix parallel make build failure make: *** No rule to make target 'generated/Config.probed', needed by 'Config.in'. Stop. make: *** Waiting for unfinished jo

[Toybox] [PATCH] xgetrandom: use getrandom result if it succeeds

2018-07-17 Thread Patrick Oppenlander
Currently xgetrandom always uses the fallback path even if getrandom returns success. Patrick >From 43d8947b9448a0212198551acd6a0ac6a01a0486 Mon Sep 17 00:00:00 2001 From: Patrick Oppenlander Date: Wed, 18 Jul 2018 15:09:13 +1000 Subject: [PATCH] xgetrandom: use getrandom result if it succe

[Toybox] [PATCH] sh: fflush(stdout) to make sure that prompt is shown

2018-04-09 Thread Patrick Oppenlander
Found when testing with musl v1.1.19 on arm. --- toys/pending/sh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/toys/pending/sh.c b/toys/pending/sh.c index 0bfd32c..efa5c96 100644 --- a/toys/pending/sh.c +++ b/toys/pending/sh.c @@ -307,6 +307,7 @@ static void do_prompt(void) down:

Re: [Toybox] Out of tree build support

2017-12-19 Thread Patrick Oppenlander
On 20/12/17 09:24, Rob Landley wrote: Really what I need to do is come up with a way to build toybox sed and toysh... How far are toybox sed & toysh from being usable to build toybox? Patrick ___ Toybox mailing list Toybox@lists.landley.net

Re: [Toybox] Out of tree build support

2017-12-19 Thread Patrick Oppenlander
On 20/12/17 09:24, Rob Landley wrote: Really what I need to do is come up with a way to build toybox sed and toysh standalone from a canned script with no config step, and then build the rest with that. Makes sense. Speaking of which, did I ever point you at the cp -s trick? $ cp -rs

Re: [Toybox] Out of tree build support

2017-12-18 Thread Patrick Oppenlander
On 19/12/17 10:41, Rob Landley wrote: On 12/18/2017 03:57 PM, Patrick Oppenlander wrote: Hi Rob, are you open to accepting patches for building out of tree? I am working on a project where Toybox will be part of an automated build system, and this would make life a lot easier. Patrick It's

Re: [Toybox] [PATCH 2] Fix segfault in config2help

2017-09-26 Thread Patrick Oppenlander
On Wed, Sep 27, 2017 at 11:36 AM, Rob Landley wrote: > But only on a system with all the package upgrades applied, installing > straight from DVD ditn't reproduce it. I've een very slowly debugging it > under a qemu instance (which takes like 15 seconds to pull up "vi" on a >

[Toybox] [PATCH 2] Fix segfault in config2help

2017-09-26 Thread Patrick Oppenlander
zap()); Either way, testing sym->enabled appears to fix the problem. 8<=== commit 6c892548ad623ffe2b026139d7f22efb7763f024 (HEAD -> master) Author: Patrick Oppenlander <patrick.oppenlan...@gmail.com> Date: Thu Sep 21 15:37:42 2017 +1000 fix segfa