summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-08-03 12:30:14 +0300
committerEfraim Flashner <efraim@flashner.co.il>2025-08-03 12:34:02 +0300
commit2c814874a765501a6b37106c1ea711ed7be37564 (patch)
treeae87369445cd4149020f3d5fddb9558e99bd5e7c
parent38e11fb1b7757d744691b131e36c9c2fe80211a5 (diff)
gnu: busybox: Fix build with newer kernel.
This fixes bug #1716. * gnu/packages/busybox.scm (busybox)[source]: Add patch. * gnu/packages/patches/busybox-no-cbq.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. Change-Id: Ia8cfdbb86a9ac2bca5b4c24ca91e5357ddf92539
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/busybox.scm3
-rw-r--r--gnu/packages/patches/busybox-no-cbq.patch56
3 files changed, 59 insertions, 1 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 140c2415a13..f12df53b72a 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1084,6 +1084,7 @@ dist_patch_DATA = \
1084 %D%/packages/patches/byobu-writable-status.patch \ 1084 %D%/packages/patches/byobu-writable-status.patch \
1085 %D%/packages/patches/bubblewrap-fix-locale-in-tests.patch \ 1085 %D%/packages/patches/bubblewrap-fix-locale-in-tests.patch \
1086 %D%/packages/patches/busybox-add-missing-sha-NI-guard.patch \ 1086 %D%/packages/patches/busybox-add-missing-sha-NI-guard.patch \
1087 %D%/packages/patches/busybox-no-cbq.patch \
1087 %D%/packages/patches/c2rust-ast-exporter-local-search.patch \ 1088 %D%/packages/patches/c2rust-ast-exporter-local-search.patch \
1088 %D%/packages/patches/cadical-add-shared-library.patch \ 1089 %D%/packages/patches/cadical-add-shared-library.patch \
1089 %D%/packages/patches/calibre-no-updates-dialog.patch \ 1090 %D%/packages/patches/calibre-no-updates-dialog.patch \
diff --git a/gnu/packages/busybox.scm b/gnu/packages/busybox.scm
index 053994a52af..fea45316209 100644
--- a/gnu/packages/busybox.scm
+++ b/gnu/packages/busybox.scm
@@ -47,7 +47,8 @@
47 (base32 47 (base32
48 "1923f21rnlbv1qjvk2qhgqnki5mkgr6z0p8dvzs9jr3l5vrxy49k")) 48 "1923f21rnlbv1qjvk2qhgqnki5mkgr6z0p8dvzs9jr3l5vrxy49k"))
49 (patches 49 (patches
50 (search-patches "busybox-add-missing-sha-NI-guard.patch")))) 50 (search-patches "busybox-add-missing-sha-NI-guard.patch"
51 "busybox-no-cbq.patch"))))
51 (build-system gnu-build-system) 52 (build-system gnu-build-system)
52 (arguments 53 (arguments
53 (list #:phases 54 (list #:phases
diff --git a/gnu/packages/patches/busybox-no-cbq.patch b/gnu/packages/patches/busybox-no-cbq.patch
new file mode 100644
index 00000000000..a887b427550
--- /dev/null
+++ b/gnu/packages/patches/busybox-no-cbq.patch
@@ -0,0 +1,56 @@
1Downloaded from Debian
2https://sources.debian.org/data/main/b/busybox/1%3A1.37.0-6/debian/patches/busybox-1.36.1-no-cbq.patch
3https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071648
4Origin: fedora
5Date: Tue, 16 Jul 2024 07:46:38 +0000
6Forwarded: yes, https://bugs.busybox.net/show_bug.cgi?id=15931
7
8diff -up busybox-1.36.1/networking/tc.c.no-cbq busybox-1.36.1/networking/tc.c
9--- busybox-1.36.1/networking/tc.c.no-cbq 2024-01-29 10:24:09.135082923 -0500
10+++ busybox-1.36.1/networking/tc.c 2024-01-29 10:28:12.009502552 -0500
11@@ -31,7 +31,7 @@
12 //usage: "qdisc [handle QHANDLE] [root|"IF_FEATURE_TC_INGRESS("ingress|")"parent CLASSID]\n"
13 /* //usage: "[estimator INTERVAL TIME_CONSTANT]\n" */
14 //usage: " [[QDISC_KIND] [help|OPTIONS]]\n"
15-//usage: " QDISC_KIND := [p|b]fifo|tbf|prio|cbq|red|etc.\n"
16+//usage: " QDISC_KIND := [p|b]fifo|tbf|prio|red|etc.\n"
17 //usage: "qdisc show [dev STRING]"IF_FEATURE_TC_INGRESS(" [ingress]")"\n"
18 //usage: "class [classid CLASSID] [root|parent CLASSID]\n"
19 //usage: " [[QDISC_KIND] [help|OPTIONS] ]\n"
20@@ -230,7 +230,7 @@ static int cbq_parse_opt(int argc, char
21 {
22 return 0;
23 }
24-#endif
25+
26 static int cbq_print_opt(struct rtattr *opt)
27 {
28 struct rtattr *tb[TCA_CBQ_MAX+1];
29@@ -322,6 +322,7 @@ static int cbq_print_opt(struct rtattr *
30 done:
31 return 0;
32 }
33+#endif
34
35 static FAST_FUNC int print_qdisc(
36 const struct sockaddr_nl *who UNUSED_PARAM,
37@@ -373,7 +374,8 @@ static FAST_FUNC int print_qdisc(
38 if (qqq == 0) { /* pfifo_fast aka prio */
39 prio_print_opt(tb[TCA_OPTIONS]);
40 } else if (qqq == 1) { /* class based queuing */
41- cbq_print_opt(tb[TCA_OPTIONS]);
42+ /* cbq_print_opt(tb[TCA_OPTIONS]); */
43+ printf("cbq not supported");
44 } else {
45 /* don't know how to print options for this qdisc */
46 printf("(options for %s)", name);
47@@ -444,7 +446,8 @@ static FAST_FUNC int print_class(
48 /* nothing. */ /*prio_print_opt(tb[TCA_OPTIONS]);*/
49 } else if (qqq == 1) { /* class based queuing */
50 /* cbq_print_copt() is identical to cbq_print_opt(). */
51- cbq_print_opt(tb[TCA_OPTIONS]);
52+ /* cbq_print_opt(tb[TCA_OPTIONS]); */
53+ printf("cbq not supported");
54 } else {
55 /* don't know how to print options for this class */
56 printf("(options for %s)", name);