Skip to content

Commit 44b2adf

Browse files
package/busybox: bump to 1.37.0
Notes: https://www.busybox.net/ The patches are rebased, and one patch has been added: 0007-libbb-sha-add-missing-sha-NI-guard.patch. Signed-off-by: Thomas Devoogdt <[email protected]>
1 parent ee8cce7 commit 44b2adf

14 files changed

+139
-262
lines changed

package/busybox/0001-networking-libiproute-use-linux-if_packet.h-instead-.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 60da1d0763224698008d847eb8ad8d4d8c6f54ff Mon Sep 17 00:00:00 2001
1+
From d4a7311078cd5509d48ba13ead1abb885a6a6744 Mon Sep 17 00:00:00 2001
22
From: Thomas Petazzoni <[email protected]>
33
Date: Sat, 5 Oct 2013 15:55:06 +0200
44
Subject: [PATCH] networking/libiproute: use <linux/if_packet.h> instead of
@@ -20,7 +20,7 @@ Signed-off-by: Petr Vorel <[email protected]>
2020
1 file changed, 1 insertion(+), 1 deletion(-)
2121

2222
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
23-
index 1a1064bdc..a4c3ad307 100644
23+
index 37ed114bc..bc526d89c 100644
2424
--- a/networking/libiproute/iplink.c
2525
+++ b/networking/libiproute/iplink.c
2626
@@ -7,7 +7,7 @@
@@ -30,8 +30,8 @@ index 1a1064bdc..a4c3ad307 100644
3030
-#include <netpacket/packet.h>
3131
+#include <linux/if_packet.h>
3232
#include <netinet/if_ether.h>
33-
33+
3434
#include <linux/if_vlan.h>
35-
--
36-
2.33.0
35+
--
36+
2.43.0
3737

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
From 59daea82e7b5abcdb42a4f97a0109f14d5a774ea Mon Sep 17 00:00:00 2001
1+
From cb080be5d14b2f240d964678315c292cbd936496 Mon Sep 17 00:00:00 2001
22
From: Thomas Petazzoni <[email protected]>
33
Date: Mon, 25 Nov 2013 22:51:53 +0100
4-
Subject: [PATCH] Makefile.flags: strip non -l arguments returned by
5-
pkg-config
4+
Subject: [PATCH] Makefile.flags: strip non -l arguments returned by pkg-config
65

76
Signed-off-by: Thomas Petazzoni <[email protected]>
87
[[email protected]: refresh for 1.29.0]
@@ -14,10 +13,10 @@ Signed-off-by: Petr Vorel <[email protected]>
1413
1 file changed, 3 insertions(+), 1 deletion(-)
1514

1615
diff --git a/Makefile.flags b/Makefile.flags
17-
index 667481983..88d76efec 100644
16+
index 97cb4dca2..92a9063d9 100644
1817
--- a/Makefile.flags
1918
+++ b/Makefile.flags
20-
@@ -180,7 +180,9 @@ ifeq ($(CONFIG_SELINUX),y)
19+
@@ -181,7 +181,9 @@ ifeq ($(CONFIG_SELINUX),y)
2120
SELINUX_PC_MODULES = libselinux libsepol
2221
$(eval $(call pkg_check_modules,SELINUX,$(SELINUX_PC_MODULES)))
2322
CPPFLAGS += $(SELINUX_CFLAGS)
@@ -26,8 +25,8 @@ index 667481983..88d76efec 100644
2625
+ $(patsubst -l%,%,$(filter -l%,$(SELINUX_LIBS))),\
2726
+ $(SELINUX_PC_MODULES:lib%=%))
2827
endif
29-
28+
3029
ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y)
31-
--
32-
2.33.0
30+
--
31+
2.43.0
3332

package/busybox/0003-libbb-sockaddr2str-ensure-only-printable-characters-.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 9d825e854ef53ebbe0aea2f1a69f52b763104daf Mon Sep 17 00:00:00 2001
1+
From 444bb9dded67070756995c0704c4638ee5af61a0 Mon Sep 17 00:00:00 2001
22
From: Ariadne Conill <[email protected]>
33
Date: Mon, 19 Sep 2022 14:15:12 +0200
44
Subject: [PATCH] libbb: sockaddr2str: ensure only printable characters are
@@ -38,5 +38,5 @@ index 0e0b247b8..02c061e67 100644
3838
}
3939

4040
--
41-
2.37.3
41+
2.43.0
4242

package/busybox/0004-nslookup-sanitize-all-printed-strings-with-printable.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From bd463a5564a2c0618317448c3f965d389534c3df Mon Sep 17 00:00:00 2001
1+
From 25a36f28f0a9207586ca9690238d760581db6452 Mon Sep 17 00:00:00 2001
22
From: Ariadne Conill <[email protected]>
33
Date: Mon, 19 Sep 2022 14:15:12 +0200
44
Subject: [PATCH] nslookup: sanitize all printed strings with printable_string
@@ -16,10 +16,10 @@ Signed-off-by: Quentin Schulz <[email protected]>
1616
1 file changed, 5 insertions(+), 5 deletions(-)
1717

1818
diff --git a/networking/nslookup.c b/networking/nslookup.c
19-
index 6da97baf4..4bdcde1b8 100644
19+
index b67d354f7..79412477c 100644
2020
--- a/networking/nslookup.c
2121
+++ b/networking/nslookup.c
22-
@@ -407,7 +407,7 @@ static NOINLINE int parse_reply(const unsigned char *msg, size_t len)
22+
@@ -784,7 +784,7 @@ static NOINLINE int parse_reply(const unsigned char *msg, size_t len)
2323
//printf("Unable to uncompress domain: %s\n", strerror(errno));
2424
return -1;
2525
}
@@ -28,7 +28,7 @@ index 6da97baf4..4bdcde1b8 100644
2828
break;
2929

3030
case ns_t_mx:
31-
@@ -422,7 +422,7 @@ static NOINLINE int parse_reply(const unsigned char *msg, size_t len)
31+
@@ -799,7 +799,7 @@ static NOINLINE int parse_reply(const unsigned char *msg, size_t len)
3232
//printf("Cannot uncompress MX domain: %s\n", strerror(errno));
3333
return -1;
3434
}
@@ -37,7 +37,7 @@ index 6da97baf4..4bdcde1b8 100644
3737
break;
3838

3939
case ns_t_txt:
40-
@@ -434,7 +434,7 @@ static NOINLINE int parse_reply(const unsigned char *msg, size_t len)
40+
@@ -811,7 +811,7 @@ static NOINLINE int parse_reply(const unsigned char *msg, size_t len)
4141
if (n > 0) {
4242
memset(dname, 0, sizeof(dname));
4343
memcpy(dname, ns_rr_rdata(rr) + 1, n);
@@ -46,7 +46,7 @@ index 6da97baf4..4bdcde1b8 100644
4646
}
4747
break;
4848

49-
@@ -454,7 +454,7 @@ static NOINLINE int parse_reply(const unsigned char *msg, size_t len)
49+
@@ -831,7 +831,7 @@ static NOINLINE int parse_reply(const unsigned char *msg, size_t len)
5050
}
5151

5252
printf("%s\tservice = %u %u %u %s\n", ns_rr_name(rr),
@@ -55,7 +55,7 @@ index 6da97baf4..4bdcde1b8 100644
5555
break;
5656

5757
case ns_t_soa:
58-
@@ -483,7 +483,7 @@ static NOINLINE int parse_reply(const unsigned char *msg, size_t len)
58+
@@ -860,7 +860,7 @@ static NOINLINE int parse_reply(const unsigned char *msg, size_t len)
5959
return -1;
6060
}
6161

@@ -65,5 +65,5 @@ index 6da97baf4..4bdcde1b8 100644
6565

6666
printf("\tserial = %lu\n", ns_get32(cp));
6767
--
68-
2.37.3
68+
2.43.0
6969

package/busybox/0005-seedrng-fix-for-glibc-2.24-not-providing-getrandom.patch

Lines changed: 0 additions & 39 deletions
This file was deleted.

package/busybox/0007-seedrng-fix-getrandom-detection-for-non-glibc-libc.patch renamed to package/busybox/0005-seedrng-fix-getrandom-detection-for-non-glibc-libc.patch

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From b2d26d449ec855602b9a88f58c2eb675de0224f2 Mon Sep 17 00:00:00 2001
1+
From 933957dca6592f0b701151bdac72a651dbe8a54b Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?= <[email protected]>
33
Date: Tue, 18 Apr 2023 15:54:43 +0200
4-
Subject: [PATCH v4] seedrng: fix getrandom() detection for non-glibc libc
4+
Subject: [PATCH] seedrng: fix getrandom() detection for non-glibc libc
55
MIME-Version: 1.0
66
Content-Type: text/plain; charset=UTF-8
77
Content-Transfer-Encoding: 8bit
@@ -48,33 +48,15 @@ This should fix compiling with many libc/kernel combinations.
4848
Signed-off-by: Raphaël Mélotte <[email protected]>
4949
Upstream: http://lists.busybox.net/pipermail/busybox/2023-May/090317.html
5050
---
51-
Changes v3 -> v4:
52-
- use a variable for '#' for compatibility with GNU make 4.2.1 and earlier.
53-
54-
Changes v2 -> v3:
55-
- fix _GNU_SOURCE define location
56-
57-
Changes v1 -> v2:
58-
- move _GNU_SOURCE to bb_libtest.c
59-
- remove GRND_NONBLOCK
60-
61-
Note that I was not able to test every single combination, but I could
62-
confirm it builds successfully for:
63-
uClibc 10.0.24, linux headers 3.10 (libc getrandom NOT used)
64-
uClibc 1.0.36, linux headers 4.9 (libc getrandom used)
65-
musl 1.1.16, linux headers 4.12 (libc getrandom NOT used)
66-
musl 1.2.1, linux headers (libc getrandom used)
67-
glibc 2.25, linux headers 4.10 (libc getrandom used)
68-
6951
Makefile.flags | 12 ++++++++++++
7052
miscutils/seedrng.c | 8 ++++----
7153
2 files changed, 16 insertions(+), 4 deletions(-)
7254

7355
diff --git a/Makefile.flags b/Makefile.flags
74-
index 1cec5ba20..0d437303a 100644
56+
index 92a9063d9..c8f601308 100644
7557
--- a/Makefile.flags
7658
+++ b/Makefile.flags
77-
@@ -161,6 +161,18 @@ ifeq ($(RT_AVAILABLE),y)
59+
@@ -162,6 +162,18 @@ ifeq ($(RT_AVAILABLE),y)
7860
LDLIBS += rt
7961
endif
8062

@@ -94,7 +76,7 @@ index 1cec5ba20..0d437303a 100644
9476
# On some platforms that requires an explicit -lpthread, -ldl, -laudit.
9577
# However, on *other platforms* it fails when some of those flags
9678
diff --git a/miscutils/seedrng.c b/miscutils/seedrng.c
97-
index 3bf6e2ea7..2f1e18c32 100644
79+
index 7a2331cb1..ba98f4d19 100644
9880
--- a/miscutils/seedrng.c
9981
+++ b/miscutils/seedrng.c
10082
@@ -44,8 +44,10 @@
@@ -120,5 +102,5 @@ index 3bf6e2ea7..2f1e18c32 100644
120102

121103
/* Apparently some headers don't ship with this yet. */
122104
--
123-
2.39.1
105+
2.43.0
124106

package/busybox/0009-menuconfig-gcc-failing-saying-ncurses-is-not-found.patch renamed to package/busybox/0006-menuconfig-GCC-failing-saying-ncurses-is-not-found.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
From [email protected] Sun Jul 21 12:10:52 2024
2-
From: [email protected] (Nop)
1+
From e3bec255f30720e1541a97560361c706ccb91d6e Mon Sep 17 00:00:00 2001
2+
From: Nop <[email protected]>
33
Date: Sun, 21 Jul 2024 14:10:52 +0200
44
Subject: [PATCH] menuconfig: GCC failing saying ncurses is not found
55

@@ -17,13 +17,12 @@ Signed-off-by: Fiona Klute (WIWA) <[email protected]>
1717
scripts/kconfig/lxdialog/check-lxdialog.sh | 4 ++--
1818
1 file changed, 2 insertions(+), 2 deletions(-)
1919

20-
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh
21-
b/scripts/kconfig/lxdialog/check-lxdialog.sh
22-
index 5075ebf2d..c644d1d48 100755
20+
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
21+
index 5075ebf2d..08e4da3de 100755
2322
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
2423
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
2524
@@ -45,9 +45,9 @@ trap "rm -f $tmp" 0 1 2 3 15
26-
25+
2726
# Check if we can link to ncurses
2827
check() {
2928
- $cc -x c - -o $tmp 2>/dev/null <<'EOF'
@@ -34,5 +33,6 @@ index 5075ebf2d..c644d1d48 100755
3433
EOF
3534
if [ $? != 0 ]; then
3635
echo " *** Unable to find the ncurses libraries or the" 1>&2
37-
--
38-
2.45.2
36+
--
37+
2.43.0
38+

package/busybox/0006-seedrng-fix-for-glibc-2.24-not-providing-random-head.patch

Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
From 152606e9787dc8fbc693e3368b4264a136e61031 Mon Sep 17 00:00:00 2001
2+
From: Rudi Heitbaum <[email protected]>
3+
Date: Sun, 29 Sep 2024 17:57:55 +0000
4+
Subject: [PATCH] libbb: fix sha1 on !x86 if CONFIG_SHA1_HWACCEL=y
5+
6+
fixes non i386 and x86 builds
7+
8+
libbb/hash_md5_sha.c: In function 'sha1_end':
9+
libbb/hash_md5_sha.c:1316:35: error: 'sha1_process_block64_shaNI' undeclared
10+
1316 | || ctx->process_block == sha1_process_block64_shaNI
11+
12+
Signed-off-by: Rudi Heitbaum <[email protected]>
13+
Signed-off-by: Denys Vlasenko <[email protected]>
14+
Upstream: https://git.busybox.net/busybox/commit/?id=bf57f732a5b6842f6fa3e0f90385f039e5d6a92c
15+
Signed-off-by: Thomas Devoogdt <[email protected]>
16+
---
17+
libbb/hash_md5_sha.c | 2 ++
18+
1 file changed, 2 insertions(+)
19+
20+
diff --git a/libbb/hash_md5_sha.c b/libbb/hash_md5_sha.c
21+
index 57a801459..75a61c32c 100644
22+
--- a/libbb/hash_md5_sha.c
23+
+++ b/libbb/hash_md5_sha.c
24+
@@ -1313,7 +1313,9 @@ unsigned FAST_FUNC sha1_end(sha1_ctx_t *ctx, void *resbuf)
25+
hash_size = 8;
26+
if (ctx->process_block == sha1_process_block64
27+
#if ENABLE_SHA1_HWACCEL
28+
+# if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
29+
|| ctx->process_block == sha1_process_block64_shaNI
30+
+# endif
31+
#endif
32+
) {
33+
hash_size = 5;
34+
--
35+
2.43.0
36+

0 commit comments

Comments
 (0)