From cc403c96d8cb23aceb7aca4a88ce73f422934a39 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 28 Jan 2026 01:24:56 +0900 Subject: [PATCH] internal/rosa: remove busybox patch This allows different versions of busybox to be attempted, to find one that works on arm. Signed-off-by: Ophestra --- internal/rosa/busybox.go | 20 +------------------- internal/rosa/rsync.go | 1 + 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/internal/rosa/busybox.go b/internal/rosa/busybox.go index 8ea881c..f9bd194 100644 --- a/internal/rosa/busybox.go +++ b/internal/rosa/busybox.go @@ -350,25 +350,7 @@ ln -vs ../../system/bin/busybox /work/usr/bin/env "https://busybox.net/downloads/busybox-"+version+".tar.bz2", mustDecode(checksum), pkg.TarBzip2, - ), true, [2]string{"awk-fix-literal-backslash", `diff --git a/editors/awk.c b/editors/awk.c -index 64e752f4b..40f5ba7f7 100644 ---- a/editors/awk.c -+++ b/editors/awk.c -@@ -2636,8 +2636,13 @@ static int awk_sub(node *rn, const char *repl, int nm, var *src, var *dest /*,in - resbuf = qrealloc(resbuf, residx + replen + n, &resbufsize); - memcpy(resbuf + residx, sp + pmatch[j].rm_so - start_ofs, n); - residx += n; -- } else -+ } else { -+/* '\\' and '&' following a backslash keep its original meaning, any other -+ * occurrence of a '\\' should be treated as literal */ -+ if (bslash && c != '\\' && c != '&') -+ resbuf[residx++] = '\\'; - resbuf[residx++] = c; -+ } - bslash = 0; - } - }`}, + ), false, ))) } func init() { artifactsF[Busybox] = Toolchain.newBusybox } diff --git a/internal/rosa/rsync.go b/internal/rosa/rsync.go index 8ce704e..0c2ada9 100644 --- a/internal/rosa/rsync.go +++ b/internal/rosa/rsync.go @@ -9,6 +9,7 @@ func (t Toolchain) newRsync() pkg.Artifact { ) return t.New("rsync-"+version, false, []pkg.Artifact{ t.Load(Make), + t.Load(Gawk), }, nil, nil, ` cd "$(mktemp -d)" /usr/src/rsync/configure --prefix=/system \