Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-10 Thread Enrico Mioso
On Tue, 10 Jan 2023, Petr Štetiar wrote: Date: Tue, 10 Jan 2023 10:08:51 From: Petr Štetiar To: Brian Norris Cc: Christian Marangi , Thibaut , Robert Marko , openwrt-devel@lists.openwrt.org, Jo-Philipp Wich Subject: Re: [PATCH v2 6/7] coreutils: Import from packages feed Brian

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-10 Thread Petr Štetiar
Brian Norris [2023-01-09 11:51:53]: > For my use, it feels like a simplified form (which only needs to be a > stdin/stdout pipeline) would be pretty easy to inline into the > caldata/firmware-loader script: > > ucode -e 'import { stdin } from "fs"; print(b64dec(stdin.read("all")));' from my

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-09 Thread Christian Marangi
On Mon, Jan 09, 2023 at 12:23:25PM -0800, Brian Norris wrote: > On Mon, Jan 9, 2023 at 11:56 AM Christian Marangi > wrote: > > On Mon, Jan 09, 2023 at 11:51:53AM -0800, Brian Norris wrote: > > > For my use, it feels like a simplified form (which only needs to be a > > > stdin/stdout pipeline)

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-09 Thread Brian Norris
On Mon, Jan 9, 2023 at 11:56 AM Christian Marangi wrote: > On Mon, Jan 09, 2023 at 11:51:53AM -0800, Brian Norris wrote: > > For my use, it feels like a simplified form (which only needs to be a > > stdin/stdout pipeline) would be pretty easy to inline into the > > caldata/firmware-loader script:

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-09 Thread Christian Marangi
On Mon, Jan 09, 2023 at 11:51:53AM -0800, Brian Norris wrote: > On Mon, Jan 9, 2023 at 11:21 AM Christian Marangi > wrote: > > > > On Mon, Jan 09, 2023 at 03:35:56PM +0100, Petr Štetiar wrote: > > > Petr Štetiar [2023-01-09 11:50:37]: > > > > > > Hi, > > > > > > > BTW ucode has `b64dec()`[1] so

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-09 Thread Brian Norris
On Mon, Jan 9, 2023 at 11:21 AM Christian Marangi wrote: > > On Mon, Jan 09, 2023 at 03:35:56PM +0100, Petr Štetiar wrote: > > Petr Štetiar [2023-01-09 11:50:37]: > > > > Hi, > > > > > BTW ucode has `b64dec()`[1] so perhaps another viable option. > > > > > > 1.

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-09 Thread Christian Marangi
On Mon, Jan 09, 2023 at 03:35:56PM +0100, Petr Štetiar wrote: > Petr Štetiar [2023-01-09 11:50:37]: > > Hi, > > > BTW ucode has `b64dec()`[1] so perhaps another viable option. > > > > 1. https://github.com/jow-/ucode#663-b64decstr > > wanted to refresh my ucode brain cells, so I've explored

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-09 Thread Petr Štetiar
Petr Štetiar [2023-01-09 11:50:37]: Hi, > BTW ucode has `b64dec()`[1] so perhaps another viable option. > > 1. https://github.com/jow-/ucode#663-b64decstr wanted to refresh my ucode brain cells, so I've explored feasibility of that suggestion and it seems to work just fine:

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-09 Thread Petr Štetiar
Thibaut [2023-01-08 00:02:06]: > There might be an even easier/lighter way (short of enabling base64 in > busybox), AWK to the rescue: > https://github.com/shane-kerr/AWK-base64decode > > The code is clean and judging by the comment line 97, works with busybox awk. BTW ucode has `b64dec()`[1]

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-09 Thread Thibaut
> Le 9 janv. 2023 à 04:09, Brian Norris a écrit : > > On Sun, Jan 8, 2023 at 1:37 PM Thibaut wrote: >>> Le 8 janv. 2023 à 21:53, Christian Marangi a écrit : >>> >>> On Sun, Jan 08, 2023 at 09:00:58PM +0100, Petr Štetiar wrote: […] include $(INCLUDE_DIR)/target.mk +

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-08 Thread Brian Norris
On Sun, Jan 8, 2023 at 1:37 PM Thibaut wrote: > > Le 8 janv. 2023 à 21:53, Christian Marangi a écrit : > > > > On Sun, Jan 08, 2023 at 09:00:58PM +0100, Petr Štetiar wrote: > >> Brian Norris [2023-01-06 23:49:44]: > >> > >> Hi Brian, > >> > >>> I need to express a per-target dependency on the

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-08 Thread Thibaut
> Le 8 janv. 2023 à 21:53, Christian Marangi a écrit : > > On Sun, Jan 08, 2023 at 09:00:58PM +0100, Petr Štetiar wrote: >> Brian Norris [2023-01-06 23:49:44]: >> >> Hi Brian, >> >>> I need to express a per-target dependency on the 'base64' utility, and >>> that's seemingly impossible to do

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-08 Thread Christian Marangi
On Sun, Jan 08, 2023 at 09:00:58PM +0100, Petr Štetiar wrote: > Brian Norris [2023-01-06 23:49:44]: > > Hi Brian, > > > I need to express a per-target dependency on the 'base64' utility, and > > that's seemingly impossible to do for busybox. > > --- a/target/linux/ipq806x/Makefile >

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-08 Thread Petr Štetiar
Brian Norris [2023-01-06 23:49:44]: Hi Brian, > I need to express a per-target dependency on the 'base64' utility, and > that's seemingly impossible to do for busybox. --- a/target/linux/ipq806x/Makefile +++ b/target/linux/ipq806x/Makefile @@ -15,6 +15,11 @@

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-08 Thread edgar . soldin
On 08.01.2023 00:02, Thibaut wrote: Le 7 janv. 2023 à 22:41, Robert Marko a écrit : On Sat, 7 Jan 2023 at 16:26, Thibaut VARÈNE wrote: Le 7 janv. 2023 à 15:06, Christian Marangi a écrit : On Fri, Jan 06, 2023 at 11:49:44PM -0800, Brian Norris wrote: I need to express a per-target

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-07 Thread Thibaut
> Le 7 janv. 2023 à 22:41, Robert Marko a écrit : > > On Sat, 7 Jan 2023 at 16:26, Thibaut VARÈNE wrote: >> >> >> >>> Le 7 janv. 2023 à 15:06, Christian Marangi a écrit : >>> >>> On Fri, Jan 06, 2023 at 11:49:44PM -0800, Brian Norris wrote: I need to express a per-target dependency

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-07 Thread Robert Marko
On Sat, 7 Jan 2023 at 16:26, Thibaut VARÈNE wrote: > > > > > Le 7 janv. 2023 à 15:06, Christian Marangi a écrit : > > > > On Fri, Jan 06, 2023 at 11:49:44PM -0800, Brian Norris wrote: > >> I need to express a per-target dependency on the 'base64' utility, and > >> that's seemingly impossible to

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-07 Thread Thibaut VARÈNE
> Le 7 janv. 2023 à 15:06, Christian Marangi a écrit : > > On Fri, Jan 06, 2023 at 11:49:44PM -0800, Brian Norris wrote: >> I need to express a per-target dependency on the 'base64' utility, and >> that's seemingly impossible to do for busybox. Pull in coreutils to make >> that easier. >> >>

Re: [PATCH v2 6/7] coreutils: Import from packages feed

2023-01-07 Thread Christian Marangi
On Fri, Jan 06, 2023 at 11:49:44PM -0800, Brian Norris wrote: > I need to express a per-target dependency on the 'base64' utility, and > that's seemingly impossible to do for busybox. Pull in coreutils to make > that easier. > > Signed-off-by: Brian Norris We still need to think of a correct

[PATCH v2 6/7] coreutils: Import from packages feed

2023-01-07 Thread Brian Norris
I need to express a per-target dependency on the 'base64' utility, and that's seemingly impossible to do for busybox. Pull in coreutils to make that easier. Signed-off-by: Brian Norris --- * New in v2 (no changes since v1) package/utils/coreutils/Makefile | 153