Skip to contentSkip to conversation

busybox: upgrade 1.31.1 -> 1.32.0

PATCH In review Wang Mingyu 4 participants 8 messages Jul 1, 2020 – Jul 3, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 busybox: upgrade 1.31.1 -> 1.32.0

refresh patch:busybox-udhcpc-no_deconfig.patch

0001-Remove-stime-function-calls.patch 0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch 0001-time-Use-64-prefix-syscall-if-we-have-to.patch 0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch removed since they are included in 1.32.0

---
 .../0001-Remove-stime-function-calls.patch    |  85 -------------
 ...rappers-around-clock_gettime-closes-.patch | 120 ------------------
 ...-Use-64-prefix-syscall-if-we-have-to.patch |  43 -------
 ...-Use-64-prefix-syscall-if-we-have-to.patch |  46 -------
 .../busybox/busybox-udhcpc-no_deconfig.patch  |  75 +++++------
 .../{busybox_1.31.1.bb => busybox_1.32.0.bb}  |   9 +-
 6 files changed, 41 insertions(+), 337 deletions(-)
 delete mode 100644 meta/recipes-core/busybox/busybox/0001-Remove-stime-function-calls.patch
 delete mode 100644 meta/recipes-core/busybox/busybox/0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch
 delete mode 100644 meta/recipes-core/busybox/busybox/0001-time-Use-64-prefix-syscall-if-we-have-to.patch
 delete mode 100644 meta/recipes-core/busybox/busybox/0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch
 rename meta/recipes-core/busybox/{busybox_1.31.1.bb => busybox_1.32.0.bb} (79%)
meta/recipes-core/busybox/busybox/0001-Remove-stime-function-calls.patch deleted +0 -85
deleted file mode 100644
index 9b9432844c..0000000000
@@ -1,85 +0,0 @@
-From d3539be8f27b8cbfdfee460fe08299158f08bcd9 Mon Sep 17 00:00:00 2001
-From: Alistair Francis <[email protected]>
-Date: Tue, 19 Nov 2019 13:06:40 +0100
-Subject: [PATCH] Remove stime() function calls
-
-stime() has been deprecated in glibc 2.31 and replaced with
-clock_settime(). Let's replace the stime() function calls with
-clock_settime() in preperation.
-
-function                                             old     new   delta
-rdate_main                                           197     224     +27
-clock_settime                                          -      27     +27
-date_main                                            926     941     +15
-stime                                                 37       -     -37
-------------------------------------------------------------------------------
-(add/remove: 2/2 grow/shrink: 2/0 up/down: 69/-37)             Total: 32 bytes
-
-Upstream-Status: Backport [https://git.busybox.net/busybox/commit/?id=d3539be8f27b8cbfdfee460fe08299158f08bcd9] 
-Signed-off-by: Alistair Francis <[email protected]>
-Signed-off-by: Denys Vlasenko <[email protected]>
----
- coreutils/date.c         | 6 +++++-
- libbb/missing_syscalls.c | 8 --------
- util-linux/rdate.c       | 8 ++++++--
- 3 files changed, 11 insertions(+), 11 deletions(-)
-
---- a/coreutils/date.c
-+++ b/coreutils/date.c
-@@ -279,6 +279,9 @@ int date_main(int argc UNUSED_PARAM, cha
- 		time(&ts.tv_sec);
- #endif
- 	}
-+#if !ENABLE_FEATURE_DATE_NANO
-+	ts.tv_nsec = 0;
-+#endif
- 	localtime_r(&ts.tv_sec, &tm_time);
- 
- 	/* If date string is given, update tm_time, and maybe set date */
-@@ -301,9 +304,10 @@ int date_main(int argc UNUSED_PARAM, cha
- 		if (date_str[0] != '@')
- 			tm_time.tm_isdst = -1;
- 		ts.tv_sec = validate_tm_time(date_str, &tm_time);
-+		ts.tv_nsec = 0;
- 
- 		/* if setting time, set it */
--		if ((opt & OPT_SET) && stime(&ts.tv_sec) < 0) {
-+		if ((opt & OPT_SET) && clock_settime(CLOCK_REALTIME, &ts) < 0) {
- 			bb_perror_msg("can't set date");
- 		}
- 	}
---- a/libbb/missing_syscalls.c
-+++ b/libbb/missing_syscalls.c
-@@ -15,14 +15,6 @@ pid_t getsid(pid_t pid)
- 	return syscall(__NR_getsid, pid);
- }
- 
--int stime(const time_t *t)
--{
--	struct timeval tv;
--	tv.tv_sec = *t;
--	tv.tv_usec = 0;
--	return settimeofday(&tv, NULL);
--}
--
- int sethostname(const char *name, size_t len)
- {
- 	return syscall(__NR_sethostname, name, len);
---- a/util-linux/rdate.c
-+++ b/util-linux/rdate.c
-@@ -95,9 +95,13 @@ int rdate_main(int argc UNUSED_PARAM, ch
- 	if (!(flags & 2)) { /* no -p (-s may be present) */
- 		if (time(NULL) == remote_time)
- 			bb_error_msg("current time matches remote time");
--		else
--			if (stime(&remote_time) < 0)
-+		else {
-+			struct timespec ts;
-+			ts.tv_sec = remote_time;
-+			ts.tv_nsec = 0;
-+			if (clock_settime(CLOCK_REALTIME, &ts) < 0)
- 				bb_perror_msg_and_die("can't set time of day");
-+		}
- 	}
- 
- 	if (flags != 1) /* not lone -s */
meta/recipes-core/busybox/busybox/0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch deleted +0 -120

120 lines not on this page · raw message

meta/recipes-core/busybox/busybox/0001-time-Use-64-prefix-syscall-if-we-have-to.patch deleted +0 -43

43 lines not on this page · raw message

meta/recipes-core/busybox/busybox/0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch deleted +0 -46

46 lines not on this page · raw message

meta/recipes-core/busybox/busybox/busybox-udhcpc-no_deconfig.patch +39 -36

147 lines not on this page · raw message

meta/recipes-core/busybox/busybox_1.32.0.bb renamed from meta/recipes-core/busybox/busybox_1.31.1.bb +2 -7
similarity index 79%
rename from meta/recipes-core/busybox/busybox_1.31.1.bb
rename to meta/recipes-core/busybox/busybox_1.32.0.bb
index 2bb1d59ba7..0dfdfdb549 100644
@@ -42,14 +42,9 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://0001-testsuite-check-uudecode-before-using-it.patch \
            file://0001-testsuite-use-www.example.org-for-wget-test-cases.patch \
            file://0001-du-l-works-fix-to-use-145-instead-of-144.patch \
-           file://0001-date-Use-64-prefix-syscall-if-we-have-to.patch \
-           file://0001-time-Use-64-prefix-syscall-if-we-have-to.patch \
-           file://0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch \
-           file://0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch \
-           file://0001-Remove-stime-function-calls.patch \
            file://0001-sysctl-ignore-EIO-of-stable_secret-below-proc-sys-ne.patch \
 "
 SRC_URI_append_libc-musl = " file://musl.cfg "
 
-SRC_URI[tarball.md5sum] = "70913edaf2263a157393af07565c17f0"
-SRC_URI[tarball.sha256sum] = "d0f940a72f648943c1f2211e0e3117387c31d765137d92bd8284a3fb9752a998"
+SRC_URI[tarball.md5sum] = "9576986f1a960da471d03b72a62f13c7"
+SRC_URI[tarball.sha256sum] = "c35d87f1d04b2b153d33c275c2632e40d388a88f19a9e71727e0bbbff51fe689"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 gtk+3: upgrade 3.24.20 -> 3.24.21

---
 .../recipes-gnome/gtk+/{gtk+3_3.24.20.bb => gtk+3_3.24.21.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-gnome/gtk+/{gtk+3_3.24.20.bb => gtk+3_3.24.21.bb} (84%)
meta/recipes-gnome/gtk+/gtk+3_3.24.21.bb renamed from meta/recipes-gnome/gtk+/gtk+3_3.24.20.bb +2 -2
similarity index 84%
rename from meta/recipes-gnome/gtk+/gtk+3_3.24.20.bb
rename to meta/recipes-gnome/gtk+/gtk+3_3.24.21.bb
index e5744a4b05..70c0e66db7 100644
@@ -8,8 +8,8 @@ SRC_URI = "http://ftp.gnome.org/pub/gnome/sources/gtk+/${MAJ_VER}/gtk+-${PV}.tar
            file://0003-Add-disable-opengl-configure-option.patch \
            file://link_fribidi.patch \
            "
-SRC_URI[md5sum] = "b302acc0a4b42e2980ef18628f9ce951"
-SRC_URI[sha256sum] = "2dac69f716e8d04ba7a95091589e2baaec95dcace932cb15839163db479b1df3"
+SRC_URI[md5sum] = "95afed6c860d27de827db66434d681da"
+SRC_URI[sha256sum] = "aeea6ae7cd35e83dfc7699be716519faefca346c62e784dd1a37d9df94c08f52"
 
 S = "${WORKDIR}/gtk+-${PV}"
 
Signature · 1 line
2.17.1
#2 lore raw

Re: [OE-core] [PATCH] gtk+3: upgrade 3.24.20 -> 3.24.21

Quoted 14 lines · Wang Mingyu
---
 .../recipes-gnome/gtk+/{gtk+3_3.24.20.bb => gtk+3_3.24.21.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-gnome/gtk+/{gtk+3_3.24.20.bb => gtk+3_3.24.21.bb} (84%)
meta/recipes-gnome/gtk+/gtk+3_3.24.21.bb renamed from meta/recipes-gnome/gtk+/gtk+3_3.24.20.bb +0 -0
similarity index 84%
rename from meta/recipes-gnome/gtk+/gtk+3_3.24.20.bb
rename to meta/recipes-gnome/gtk+/gtk+3_3.24.21.bb
index e5744a4b05..70c0e66db7 100644

meta/recipes-gnome/gtk+/gtk+3_3.24.21.bb SRC_URI = "http://ftp.gnome.org/pub/gnome/sources/gtk+/${MAJ_VER}/gtk+-${PV}.tar · line 12

Quoted 7 lines
meta/recipes-gnome/gtk+/gtk+3_3.24.21.bb renamed from meta/recipes-gnome/gtk+/gtk+3_3.24.20.bb +2 -2
@@ -8,8 +8,8 @@ SRC_URI = "http://ftp.gnome.org/pub/gnome/sources/gtk+/${MAJ_VER}/gtk+-${PV}.tar
            file://0003-Add-disable-opengl-configure-option.patch \
            file://link_fribidi.patch \
            "
-SRC_URI[md5sum] = "b302acc0a4b42e2980ef18628f9ce951"
-SRC_URI[sha256sum] = "2dac69f716e8d04ba7a95091589e2baaec95dcace932cb15839163db479b1df3"
+SRC_URI[md5sum] = "95afed6c860d27de827db66434d681da"
+SRC_URI[sha256sum] = "aeea6ae7cd35e83dfc7699be716519faefca346c62e784dd1a37d9df94c08f52"

This fails the reproducible builds test:

https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/1098
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/1085
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/1102

oe-selftest -r reproducible.ReproducibleTests.test_reproducible_builds

Cheers,

Richard

#3 lore raw
In reply to Wang Mingyu

Hello Wang,

Sorry, but why did you change tabs->spaces in the indent level in " busybox-udhcpc-no_deconfig.patch"? No it's completely unreadable.

Andrej

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Wang Mingyu
Sent: Wednesday, July 1, 2020 9:02 AM
To: [email protected]
Cc: Wang Mingyu <[email protected]>
Subject: [OE-core] [PATCH] busybox: upgrade 1.31.1 -> 1.32.0

refresh patch:busybox-udhcpc-no_deconfig.patch

0001-Remove-stime-function-calls.patch 0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch 0001-time-Use-64-prefix-syscall-if-we-have-to.patch 0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch removed since they are included in 1.32.0

---
 .../0001-Remove-stime-function-calls.patch    |  85 -------------
 ...rappers-around-clock_gettime-closes-.patch | 120 ------------------  ...-Use-64-prefix-syscall-if-we-have-to.patch |  43 -------  ...-Use-64-prefix-syscall-if-we-have-to.patch |  46 -------  .../busybox/busybox-udhcpc-no_deconfig.patch  |  75 +++++------
 .../{busybox_1.31.1.bb => busybox_1.32.0.bb}  |   9 +-
 6 files changed, 41 insertions(+), 337 deletions(-)  delete mode 100644 meta/recipes-core/busybox/busybox/0001-Remove-stime-function-calls.patch
 delete mode 100644 meta/recipes-core/busybox/busybox/0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch
 delete mode 100644 meta/recipes-core/busybox/busybox/0001-time-Use-64-prefix-syscall-if-we-have-to.patch
 delete mode 100644 meta/recipes-core/busybox/busybox/0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch
 rename meta/recipes-core/busybox/{busybox_1.31.1.bb => busybox_1.32.0.bb} (79%)
meta/recipes-core/busybox/busybox/0001-Remove-stime-function-calls.patch deleted +0 -84
deleted file mode 100644
index 9b9432844c..0000000000
@@ -1,85 +0,0 @@
-From d3539be8f27b8cbfdfee460fe08299158f08bcd9 Mon Sep 17 00:00:00 2001
-From: Alistair Francis <[email protected]>
-Date: Tue, 19 Nov 2019 13:06:40 +0100
-Subject: [PATCH] Remove stime() function calls
-
-stime() has been deprecated in glibc 2.31 and replaced with -clock_settime(). Let's replace the stime() function calls with
-clock_settime() in preperation.
-
-function                                             old     new   delta
-rdate_main                                           197     224     +27
-clock_settime                                          -      27     +27
-date_main                                            926     941     +15
-stime                                                 37       -     -37
-------------------------------------------------------------------------------
-(add/remove: 2/2 grow/shrink: 2/0 up/down: 69/-37)             Total: 32 bytes
-
-Upstream-Status: Backport [https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.busybox.net%2Fbusybox%2Fcommit%2F%3Fid%3Dd3539be8f27b8cbfdfee460fe08299158f08bcd9&amp;data=02%7C01%7Candrej.valek%40siemens.com%7C6bcbe021a12a49fb883f08d81d8e55f8%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637291844451070373&amp;sdata=LZritMYTkbkXPtUsjxZAW09dosuphwWIdlfK62sjWyw%3D&amp;reserved=0]
-Signed-off-by: Alistair Francis <[email protected]>
-Signed-off-by: Denys Vlasenko <[email protected]>
----
- coreutils/date.c         | 6 +++++-
- libbb/missing_syscalls.c | 8 --------
- util-linux/rdate.c       | 8 ++++++--
- 3 files changed, 11 insertions(+), 11 deletions(-)
-
---- a/coreutils/date.c
-+++ b/coreutils/date.c
-@@ -279,6 +279,9 @@ int date_main(int argc UNUSED_PARAM, cha
- 		time(&ts.tv_sec);
- #endif
- 	}
-+#if !ENABLE_FEATURE_DATE_NANO
-+	ts.tv_nsec = 0;
-+#endif
- 	localtime_r(&ts.tv_sec, &tm_time);
- 
- 	/* If date string is given, update tm_time, and maybe set date */
-@@ -301,9 +304,10 @@ int date_main(int argc UNUSED_PARAM, cha
- 		if (date_str[0] != '@')
- 			tm_time.tm_isdst = -1;
- 		ts.tv_sec = validate_tm_time(date_str, &tm_time);
-+		ts.tv_nsec = 0;
- 
- 		/* if setting time, set it */
--		if ((opt & OPT_SET) && stime(&ts.tv_sec) < 0) {
-+		if ((opt & OPT_SET) && clock_settime(CLOCK_REALTIME, &ts) < 0) {
- 			bb_perror_msg("can't set date");
- 		}
- 	}
---- a/libbb/missing_syscalls.c
-+++ b/libbb/missing_syscalls.c
-@@ -15,14 +15,6 @@ pid_t getsid(pid_t pid)
- 	return syscall(__NR_getsid, pid);
- }
-
--int stime(const time_t *t)
--{
--	struct timeval tv;
--	tv.tv_sec = *t;
--	tv.tv_usec = 0;
--	return settimeofday(&tv, NULL);
--}
--
- int sethostname(const char *name, size_t len)
- {
- 	return syscall(__NR_sethostname, name, len);
---- a/util-linux/rdate.c
-+++ b/util-linux/rdate.c
-@@ -95,9 +95,13 @@ int rdate_main(int argc UNUSED_PARAM, ch
- 	if (!(flags & 2)) { /* no -p (-s may be present) */
- 		if (time(NULL) == remote_time)
- 			bb_error_msg("current time matches remote time");
--		else
--			if (stime(&remote_time) < 0)
-+		else {
-+			struct timespec ts;
-+			ts.tv_sec = remote_time;
-+			ts.tv_nsec = 0;
-+			if (clock_settime(CLOCK_REALTIME, &ts) < 0)
- 				bb_perror_msg_and_die("can't set time of day");
-+		}
- 	}
- 
- 	if (flags != 1) /* not lone -s */
meta/recipes-core/busybox/busybox/0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch deleted +0 -120

120 lines not on this page · raw message

deleted file mode 100644
index 58a6c0d8a0..0000000000

meta/recipes-core/busybox/busybox/0001-time-Use-64-prefix-syscall-if-we-have-to.patch deleted +0 -36
@@ -1,43 +0,0 @@
-From 902d3992922fc8db8495d5fb30a4581711b60c62 Mon Sep 17 00:00:00 2001
-From: Alistair Francis <[email protected]>
-Date: Wed, 18 Sep 2019 09:28:50 -0700
-Subject: [PATCH] time: Use 64 prefix syscall if we have to
-
-Some 32-bit architectures no longer have the 32-bit time_t syscalls.
-Instead they have suffixed syscalls that returns a 64-bit time_t. If -the architecture doesn't have the non-suffixed syscall and is using a -64-bit time_t let's use the suffixed syscall instead.
-
-This fixes build issues when building for RISC-V 32-bit with 5.1+ kernel -headers.
-
-If an architecture only supports the suffixed syscalls, but is still -using a 32-bit time_t report a compilation error. This avoids us have to -deal with converting between 64-bit and 32-bit values. There are -currently no architectures where this is the case.
-
-Upstream-Status: Backport [https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.busybox.net%2Fbusybox%2Fcommit%2F%3Fid%3D902d3992922fc8db8495d5fb30a4581711b60c62&amp;data=02%7C01%7Candrej.valek%40siemens.com%7C6bcbe021a12a49fb883f08d81d8e55f8%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637291844451080363&amp;sdata=eKROGzCqNMc89uwrL%2B9qmDKoHAaUCxDnp5lBXgkPahw%3D&amp;reserved=0]
-Signed-off-by: Alistair Francis <[email protected]>
-Signed-off-by: Denys Vlasenko <[email protected]>
----
- libbb/time.c | 7 +++++++
- 1 file changed, 7 insertions(+)
-
---- a/libbb/time.c
-+++ b/libbb/time.c
-@@ -257,7 +257,14 @@ char* FAST_FUNC strftime_YYYYMMDDHHMMSS(
-  * typically requiring -lrt. We just skip all this mess */
- static void get_mono(struct timespec *ts)
- {
--	if (syscall(__NR_clock_gettime, CLOCK_MONOTONIC, ts))
-+#if defined(__NR_clock_gettime)
-+ 	if (syscall(__NR_clock_gettime, CLOCK_MONOTONIC, ts)) #elif 
-+__TIMESIZE == 64
-+	if (syscall(__NR_clock_gettime64, CLOCK_MONOTONIC, ts)) #else # error 
-+"We currently don't support architectures without " \
-+	"the __NR_clock_gettime syscall and 32-bit time_t"
-+#endif
- 		bb_error_msg_and_die("clock_gettime(MONOTONIC) failed");
- }
- unsigned long long FAST_FUNC monotonic_ns(void) diff --git a/meta/recipes-core/busybox/busybox/0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch b/meta/recipes-core/busybox/busybox/0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch

deleted file mode 100644
index 4760570441..0000000000

meta/recipes-core/busybox/busybox/0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch deleted +0 -38
@@ -1,46 +0,0 @@
-From 8c7419649d6e6fda8fa7d0e863084c78ac728628 Mon Sep 17 00:00:00 2001
-From: Alistair Francis <[email protected]>
-Date: Wed, 28 Aug 2019 10:54:15 -0700
-Subject: [PATCH 3/3] runsv: Use 64 prefix syscall if we have to
-
-Some 32-bit architectures no longer have the 32-bit time_t syscalls.
-Instead they have suffixed syscalls that returns a 64-bit time_t. If -the architecture doesn't have the non-suffixed syscall and is using a -64-bit time_t let's use the suffixed syscall instead.
-
-This fixes build issues when building for RISC-V 32-bit with 5.1+ kernel -headers.
-
-If an architecture only supports the suffixed syscalls, but is still -using a 32-bit time_t report a compilation error. This avoids us have to -deal with converting between 64-bit and 32-bit values. There are -currently no architectures where this is the case.
-
-Signed-off-by: Alistair Francis <[email protected]>
-Upstream-Status: Backport [https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.busybox.net%2Fbusybox%2Fcommit%2F%3Fid%3Dad27d44ebe950335616f37e36863469dc181b455&amp;data=02%7C01%7Candrej.valek%40siemens.com%7C6bcbe021a12a49fb883f08d81d8e55f8%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637291844451080363&amp;sdata=NvFi6Ae7LpsKbGFCo%2Bg19jPB%2Bp5WTy1Ro8812zQl7x4%3D&amp;reserved=0]
----
- runit/runsv.c | 7 +++++++
- 1 file changed, 7 insertions(+)
-
-diff --git a/runit/runsv.c b/runit/runsv.c -index ccc762d78..737909b0e 100644
---- a/runit/runsv.c
-+++ b/runit/runsv.c
-@@ -55,7 +55,14 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-  * typically requiring -lrt. We just skip all this mess */
- static void gettimeofday_ns(struct timespec *ts)
- {
-+#if defined(__NR_clock_gettime)
- 	syscall(__NR_clock_gettime, CLOCK_REALTIME, ts);
-+#elif __TIMESIZE == 64
-+	syscall(__NR_clock_gettime64, CLOCK_REALTIME, ts); #else # error "We 
-+currently don't support architectures without " \
-+	"the __NR_clock_gettime syscall and 32-bit time_t"
-+#endif
- }
- #else
- static void gettimeofday_ns(struct timespec *ts)
---
-2.22.0
-
meta/recipes-core/busybox/busybox/busybox-udhcpc-no_deconfig.patch +17 -15
index 2a0a40c512..89e1020f13 100644
@@ -28,14 +28,14 @@ Fixed options -b, -a and -P.
 
 Signed-off-by: Andreas Oberritter <[email protected]>
 ---
- networking/udhcp/dhcpc.c                       | 29 ++++++++++++++++------
- 1 file changed, 21 insertions(+), 8 deletions(-)
+ networking/udhcp/dhcpc.c | 34 +++++++++++++++++++++++++---------
+ 1 file changed, 25 insertions(+), 9 deletions(-)
 
-Index: busybox-1.31.0/networking/udhcp/dhcpc.c
-===================================================================
---- busybox-1.31.0.orig/networking/udhcp/dhcpc.c
-+++ busybox-1.31.0/networking/udhcp/dhcpc.c
-@@ -48,6 +48,8 @@
+diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 
+102178a..8210322 100644
+--- a/networking/udhcp/dhcpc.c
++++ b/networking/udhcp/dhcpc.c
+@@ -48,6 +48,8 @@ struct tpacket_auxdata {
  };
  #endif
  
@@ -44,7 +44,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c
  
  /* "struct client_data_t client_data" is in bb_common_bufsiz1 */
  
-@@ -103,8 +105,10 @@
+@@ -103,8 +105,10 @@ enum {
  	OPT_x = 1 << 18,
  	OPT_f = 1 << 19,
  	OPT_B = 1 << 20,
@@ -55,27 +55,27 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c
  	USE_FOR_MMU(             OPTBIT_b,)
  	IF_FEATURE_UDHCPC_ARPING(OPTBIT_a,)
  	IF_FEATURE_UDHCP_PORT(   OPTBIT_P,)
-@@ -1124,7 +1128,8 @@
+@@ -1084,7 +1088,8 @@ static void perform_renew(void)
  		client_data.state = RENEW_REQUESTED;
  		break;
  	case RENEW_REQUESTED: /* impatient are we? fine, square 1 */
 -		udhcp_run_script(NULL, "deconfig");
-+		if (allow_deconfig)
-+			udhcp_run_script(NULL, "deconfig");
++               if (allow_deconfig)
++                       udhcp_run_script(NULL, "deconfig");
  	case REQUESTING:
  	case RELEASED:
  		change_listen_mode(LISTEN_RAW);
-@@ -1160,7 +1165,8 @@
+@@ -1120,7 +1125,8 @@ static void perform_release(uint32_t server_addr, 
+uint32_t requested_ip)
   * Users requested to be notified in all cases, even if not in one
   * of the states above.
   */
 -	udhcp_run_script(NULL, "deconfig");
-+	if (allow_deconfig)
-+		udhcp_run_script(NULL, "deconfig");
++       if (allow_deconfig)
++               udhcp_run_script(NULL, "deconfig");
  
  	change_listen_mode(LISTEN_NONE);
  	client_data.state = RELEASED;
-@@ -1278,7 +1284,7 @@
+@@ -1238,7 +1244,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char 
+**argv)
  	/* Parse command line */

opt = getopt32long(argv, "^"
/* O,x: list; -T,-t,-A take numeric param */ @@ -84,60 +84,63 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c USE_FOR_MMU("b")
IF_FEATURE_UDHCPC_ARPING("a::")
IF_FEATURE_UDHCP_PORT("P:")
-@@ -1389,6 +1395,10 @@
+@@ -1349,6 +1355,10 @@ int udhcpc_main(int argc UNUSED_PARAM, char
+**argv)
logmode |= LOGMODE_SYSLOG;
}

-+ if (opt & OPT_D) {
-+ allow_deconfig = 0;
-+ }
++ if (opt & OPT_D) {
++ allow_deconfig = 0;
++ }
+
/* Create pidfile */
write_pidfile(client_data.pidfile);
/* Goes to stdout (unless NOMMU) and possibly syslog */ -@@ -1397,7 +1407,8 @@
+@@ -1357,7 +1367,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char +**argv)
srand(monotonic_us());

client_data.state = INIT_SELECTING;
- udhcp_run_script(NULL, "deconfig");
-+ if (allow_deconfig)
-+ udhcp_run_script(NULL, "deconfig");
++ if (allow_deconfig)
++ udhcp_run_script(NULL, "deconfig");
change_listen_mode(LISTEN_RAW);
packet_num = 0;
timeout = 0;
-@@ -1570,7 +1581,8 @@
+@@ -1530,7 +1541,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char
+**argv)
}
/* Timed out, enter init state */
- bb_info_msg("lease lost, entering init state");
+ bb_simple_info_msg("lease lost, entering init state");
- udhcp_run_script(NULL, "deconfig");
-+ if (allow_deconfig)
-+ udhcp_run_script(NULL, "deconfig");
++ if (allow_deconfig)
++ udhcp_run_script(NULL,
++ "deconfig");
client_data.state = INIT_SELECTING; client_data.first_secs = 0; /* make secs field count from 0 */ /*timeout = 0; - already is */
-@@ -1762,8 +1774,10 @@
+@@ -1722,8 +1734,10 @@ int udhcpc_main(int argc UNUSED_PARAM, char
+**argv)
"(got ARP reply), declining");
send_decline(/*xid,*/ server_addr, packet.yiaddr);

- if (client_data.state != REQUESTING)
- udhcp_run_script(NULL, "deconfig");
-+ if (client_data.state != REQUESTING) {
-+ if (allow_deconfig)
-+ udhcp_run_script(NULL, "deconfig");
-+ }
++ if (client_data.state != REQUESTING) {
++ if (allow_deconfig)
++ udhcp_run_script(NULL, "deconfig");
++ }
change_listen_mode(LISTEN_RAW);
client_data.state = INIT_SELECTING;
client_data.first_secs = 0; /* make secs field count from 0 */ -@@ -1832,8 +1846,10 @@
+@@ -1792,8 +1806,10 @@ int udhcpc_main(int argc UNUSED_PARAM, char
+**argv)
/* return to init state */
bb_info_msg("received %s", "DHCP NAK");
udhcp_run_script(&packet, "nak");
- if (client_data.state != REQUESTING)
- udhcp_run_script(NULL, "deconfig");
-+ if (client_data.state != REQUESTING) {
-+ if (allow_deconfig)
-+ udhcp_run_script(NULL, "deconfig");
-+ }
++ if (client_data.state != REQUESTING) {
++ if (allow_deconfig)
++ udhcp_run_script(NULL, "deconfig");
++ }
change_listen_mode(LISTEN_RAW);
sleep(3); /* avoid excessive network traffic */
client_data.state = INIT_SELECTING;
+--
+2.17.1
+

meta/recipes-core/busybox/busybox_1.32.0.bb renamed from meta/recipes-core/busybox/busybox_1.31.1.bb +2 -8
similarity index 79%
rename from meta/recipes-core/busybox/busybox_1.31.1.bb
rename to meta/recipes-core/busybox/busybox_1.32.0.bb
index 2bb1d59ba7..0dfdfdb549 100644
@@ -42,14 +42,9 @@ SRC_URI = "https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbusybox.net%2Fdownloads%2Fbusybox-%24&amp;data=02%7C01%7Candrej.valek%40siemens.com%7C6bcbe021a12a49fb883f08d81d8e55f8%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637291844451080363&amp;sdata=%2BWaiH9tRn8RwGqLgpsUAKRUYlEXQlxUGdID2L2Tux64%3D&amp;reserved=0{PV}.tar.bz2;name=tarball \
            file://0001-testsuite-check-uudecode-before-using-it.patch \
            file://0001-testsuite-use-https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.example.org-for-wget-test-cases.patch%2F&amp;data=02%7C01%7Candrej.valek%40siemens.com%7C6bcbe021a12a49fb883f08d81d8e55f8%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637291844451080363&amp;sdata=LIGyOWr4fLVhvntBsEZgLjpoMgwLi%2BfwC4TyEFZrk%2F4%3D&amp;reserved=0 \
            file://0001-du-l-works-fix-to-use-145-instead-of-144.patch \
-           file://0001-date-Use-64-prefix-syscall-if-we-have-to.patch \
-           file://0001-time-Use-64-prefix-syscall-if-we-have-to.patch \
-           file://0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch \
-           file://0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch \
-           file://0001-Remove-stime-function-calls.patch \
            file://0001-sysctl-ignore-EIO-of-stable_secret-below-proc-sys-ne.patch \  "
 SRC_URI_append_libc-musl = " file://musl.cfg "
 
-SRC_URI[tarball.md5sum] = "70913edaf2263a157393af07565c17f0"
-SRC_URI[tarball.sha256sum] = "d0f940a72f648943c1f2211e0e3117387c31d765137d92bd8284a3fb9752a998"
+SRC_URI[tarball.md5sum] = "9576986f1a960da471d03b72a62f13c7"
+SRC_URI[tarball.sha256sum] = "c35d87f1d04b2b153d33c275c2632e40d388a88f19a9e71727e0bbbff51fe689"
--

2.17.1

#4 lore raw

PATCH v2 1/1 busybox: 1.31.1 -> 1.32.0

In reply to Wang Mingyu

- update to last stable version 1.32.0
- remove and refresh already merged patches

---
 ...inittab_1.31.0.bb => busybox-inittab_1.32.0.bb} |   0
 .../busybox/0001-Remove-stime-function-calls.patch |  85 ---------------
 ...all-wrappers-around-clock_gettime-closes-.patch | 120 ---------------------
 ...-date-Use-64-prefix-syscall-if-we-have-to.patch |  53 ---------
 ...-time-Use-64-prefix-syscall-if-we-have-to.patch |  43 --------
 ...runsv-Use-64-prefix-syscall-if-we-have-to.patch |  46 --------
 .../busybox/busybox-udhcpc-no_deconfig.patch       |  26 ++---
 .../{busybox_1.31.1.bb => busybox_1.32.0.bb}       |   9 +-
 8 files changed, 15 insertions(+), 367 deletions(-)
 rename meta/recipes-core/busybox/{busybox-inittab_1.31.0.bb => busybox-inittab_1.32.0.bb} (100%)
 delete mode 100644 meta/recipes-core/busybox/busybox/0001-Remove-stime-function-calls.patch
 delete mode 100644 meta/recipes-core/busybox/busybox/0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch
 delete mode 100644 meta/recipes-core/busybox/busybox/0001-date-Use-64-prefix-syscall-if-we-have-to.patch
 delete mode 100644 meta/recipes-core/busybox/busybox/0001-time-Use-64-prefix-syscall-if-we-have-to.patch
 delete mode 100644 meta/recipes-core/busybox/busybox/0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch
 rename meta/recipes-core/busybox/{busybox_1.31.1.bb => busybox_1.32.0.bb} (79%)
meta/recipes-core/busybox/busybox-inittab_1.32.0.bb renamed from meta/recipes-core/busybox/busybox-inittab_1.31.0.bb +0 -0
similarity index 100%
rename from meta/recipes-core/busybox/busybox-inittab_1.31.0.bb
rename to meta/recipes-core/busybox/busybox-inittab_1.32.0.bb
meta/recipes-core/busybox/busybox/0001-Remove-stime-function-calls.patch deleted +0 -85

85 lines not on this page · raw message

meta/recipes-core/busybox/busybox/0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch deleted +0 -120

120 lines not on this page · raw message

meta/recipes-core/busybox/busybox/0001-date-Use-64-prefix-syscall-if-we-have-to.patch deleted +0 -53

53 lines not on this page · raw message

meta/recipes-core/busybox/busybox/0001-time-Use-64-prefix-syscall-if-we-have-to.patch deleted +0 -43

43 lines not on this page · raw message

meta/recipes-core/busybox/busybox/0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch deleted +0 -46

46 lines not on this page · raw message

meta/recipes-core/busybox/busybox/busybox-udhcpc-no_deconfig.patch +13 -13
index 2a0a40c512..35e981d6a2 100644
@@ -31,11 +31,11 @@ Signed-off-by: Andreas Oberritter <[email protected]>
  networking/udhcp/dhcpc.c                       | 29 ++++++++++++++++------
  1 file changed, 21 insertions(+), 8 deletions(-)
 
-Index: busybox-1.31.0/networking/udhcp/dhcpc.c
+Index: busybox-1.32.0/networking/udhcp/dhcpc.c
 ===================================================================
---- busybox-1.31.0.orig/networking/udhcp/dhcpc.c
-+++ busybox-1.31.0/networking/udhcp/dhcpc.c
-@@ -48,6 +48,8 @@
+--- busybox-1.32.0.orig/networking/udhcp/dhcpc.c
++++ busybox-1.32.0/networking/udhcp/dhcpc.c
+@@ -48,6 +48,8 @@ struct tpacket_auxdata {
  };
  #endif
  
@@ -55,7 +55,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c
  	USE_FOR_MMU(             OPTBIT_b,)
  	IF_FEATURE_UDHCPC_ARPING(OPTBIT_a,)
  	IF_FEATURE_UDHCP_PORT(   OPTBIT_P,)
-@@ -1124,7 +1128,8 @@
+@@ -1084,7 +1088,8 @@
  		client_data.state = RENEW_REQUESTED;
  		break;
  	case RENEW_REQUESTED: /* impatient are we? fine, square 1 */
@@ -65,7 +65,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c
  	case REQUESTING:
  	case RELEASED:
  		change_listen_mode(LISTEN_RAW);
-@@ -1160,7 +1165,8 @@
+@@ -1120,7 +1125,8 @@ static void perform_release(uint32_t server_addr, uint32_t requested_ip)
   * Users requested to be notified in all cases, even if not in one
   * of the states above.
   */
@@ -75,7 +75,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c
  
  	change_listen_mode(LISTEN_NONE);
  	client_data.state = RELEASED;
-@@ -1278,7 +1284,7 @@
+@@ -1238,7 +1244,7 @@
  	/* Parse command line */
  	opt = getopt32long(argv, "^"
  		/* O,x: list; -T,-t,-A take numeric param */
@@ -84,7 +84,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c
  		USE_FOR_MMU("b")
  		IF_FEATURE_UDHCPC_ARPING("a::")
  		IF_FEATURE_UDHCP_PORT("P:")
-@@ -1389,6 +1395,10 @@
+@@ -1349,6 +1355,10 @@
  		logmode |= LOGMODE_SYSLOG;
  	}
  
@@ -95,7 +95,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c
  	/* Create pidfile */
  	write_pidfile(client_data.pidfile);
  	/* Goes to stdout (unless NOMMU) and possibly syslog */
-@@ -1397,7 +1407,8 @@
+@@ -1357,7 +1367,8 @@
  	srand(monotonic_us());
  
  	client_data.state = INIT_SELECTING;
@@ -105,17 +105,17 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c
  	change_listen_mode(LISTEN_RAW);
  	packet_num = 0;
  	timeout = 0;
-@@ -1570,7 +1581,8 @@
+@@ -1530,7 +1541,8 @@
  				}
  				/* Timed out, enter init state */
- 				bb_info_msg("lease lost, entering init state");
+ 				bb_simple_info_msg("lease lost, entering init state");
 -				udhcp_run_script(NULL, "deconfig");
 +				if (allow_deconfig)
 +					udhcp_run_script(NULL, "deconfig");
  				client_data.state = INIT_SELECTING;
  				client_data.first_secs = 0; /* make secs field count from 0 */
  				/*timeout = 0; - already is */
-@@ -1762,8 +1774,10 @@
+@@ -1722,8 +1734,10 @@
  							"(got ARP reply), declining");
  						send_decline(/*xid,*/ server_addr, packet.yiaddr);
  
@@ -128,7 +128,7 @@ Index: busybox-1.31.0/networking/udhcp/dhcpc.c
  						change_listen_mode(LISTEN_RAW);
  						client_data.state = INIT_SELECTING;
  						client_data.first_secs = 0; /* make secs field count from 0 */
-@@ -1832,8 +1846,10 @@
+@@ -1792,8 +1806,10 @@
  				/* return to init state */
  				bb_info_msg("received %s", "DHCP NAK");
  				udhcp_run_script(&packet, "nak");
meta/recipes-core/busybox/busybox_1.32.0.bb renamed from meta/recipes-core/busybox/busybox_1.31.1.bb +2 -7
similarity index 79%
rename from meta/recipes-core/busybox/busybox_1.31.1.bb
rename to meta/recipes-core/busybox/busybox_1.32.0.bb
index 2bb1d59ba7..0dfdfdb549 100644
@@ -42,14 +42,9 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://0001-testsuite-check-uudecode-before-using-it.patch \
            file://0001-testsuite-use-www.example.org-for-wget-test-cases.patch \
            file://0001-du-l-works-fix-to-use-145-instead-of-144.patch \
-           file://0001-date-Use-64-prefix-syscall-if-we-have-to.patch \
-           file://0001-time-Use-64-prefix-syscall-if-we-have-to.patch \
-           file://0003-runsv-Use-64-prefix-syscall-if-we-have-to.patch \
-           file://0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch \
-           file://0001-Remove-stime-function-calls.patch \
            file://0001-sysctl-ignore-EIO-of-stable_secret-below-proc-sys-ne.patch \
 "
 SRC_URI_append_libc-musl = " file://musl.cfg "
 
-SRC_URI[tarball.md5sum] = "70913edaf2263a157393af07565c17f0"
-SRC_URI[tarball.sha256sum] = "d0f940a72f648943c1f2211e0e3117387c31d765137d92bd8284a3fb9752a998"
+SRC_URI[tarball.md5sum] = "9576986f1a960da471d03b72a62f13c7"
+SRC_URI[tarball.sha256sum] = "c35d87f1d04b2b153d33c275c2632e40d388a88f19a9e71727e0bbbff51fe689"
Signature · 1 line
2.11.0
#5 lore raw

PATCH 1/1 dropbear: update to 2020.80

---
 meta/recipes-core/dropbear/dropbear_2020.79.bb | 3 ---
 meta/recipes-core/dropbear/dropbear_2020.80.bb | 4 ++++
 2 files changed, 4 insertions(+), 3 deletions(-)
 delete mode 100644 meta/recipes-core/dropbear/dropbear_2020.79.bb
 create mode 100644 meta/recipes-core/dropbear/dropbear_2020.80.bb
meta/recipes-core/dropbear/dropbear_2020.79.bb deleted +0 -3
deleted file mode 100644
index 43a17bf1e5..0000000000
@@ -1,3 +0,0 @@
-require dropbear.inc
-
-SRC_URI[sha256sum] = "084f00546b1610a3422a0773e2c04cbe1a220d984209e033b548b49f379cc441"
meta/recipes-core/dropbear/dropbear_2020.80.bb new file +4 -0
new file mode 100644
index 0000000000..bc805c64b2
@@ -0,0 +1,4 @@
+require dropbear.inc
+
+SRC_URI[md5sum] = "63527580ca47706b70046f87bb9d14fe"
+SRC_URI[sha256sum] = "d927941b91f2da150b2033f1a88b6a47999bf0afb1493a73e9216cffdb5d7949"
Signature · 1 line
2.11.0
#6 lore raw

Re: [OE-core][PATCH] dropbear: update to 2020.80

Quoted 6 lines · Andrej Valek

-SRC_URI[sha256sum] = "084f00546b1610a3422a0773e2c04cbe1a220d984209e033b548b49f379cc441"

(quoted diff) +2 -0
+SRC_URI[md5sum] = "63527580ca47706b70046f87bb9d14fe"
+SRC_URI[sha256sum] =

"d927941b91f2da150b2033f1a88b6a47999bf0afb1493a73e9216cffdb5d7949"

No need to reintroduce md5sum. How was it added? Both devtool upgrade and bitbake no longer suggest it.

Alex

#7 lore raw

PATCH v2 1/1 dropbear: update to 2020.80

In reply to Andrej Valek

License-Update: changed date and added info about existence LICENSE files
in libtomcrypt and libtommath folders

---
 meta/recipes-core/dropbear/dropbear.inc        | 2 +-
 meta/recipes-core/dropbear/dropbear_2020.79.bb | 3 ---
 meta/recipes-core/dropbear/dropbear_2020.80.bb | 3 +++
 3 files changed, 4 insertions(+), 4 deletions(-)
 delete mode 100644 meta/recipes-core/dropbear/dropbear_2020.79.bb
 create mode 100644 meta/recipes-core/dropbear/dropbear_2020.80.bb
meta/recipes-core/dropbear/dropbear.inc +1 -1
index 240e328ed2..080ee26b2e 100644
@@ -5,7 +5,7 @@ SECTION = "console/network"
 # some files are from other projects and have others license terms:
 #   public domain, OpenSSH 3.5p1, OpenSSH3.6.1p2, PuTTY
 LICENSE = "MIT & BSD-3-Clause & BSD-2-Clause & PD"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=da58928b5d844c6667963cb5a109272d"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=25cf44512b7bc8966a48b6b1a9b7605f"
 
 DEPENDS = "zlib virtual/crypt"
 RPROVIDES_${PN} = "ssh sshd"
meta/recipes-core/dropbear/dropbear_2020.79.bb deleted +0 -3
deleted file mode 100644
index 43a17bf1e5..0000000000
@@ -1,3 +0,0 @@
-require dropbear.inc
-
-SRC_URI[sha256sum] = "084f00546b1610a3422a0773e2c04cbe1a220d984209e033b548b49f379cc441"
meta/recipes-core/dropbear/dropbear_2020.80.bb new file +3 -0
new file mode 100644
index 0000000000..088c71cb99
@@ -0,0 +1,3 @@
+require dropbear.inc
+
+SRC_URI[sha256sum] = "d927941b91f2da150b2033f1a88b6a47999bf0afb1493a73e9216cffdb5d7949"
Signature · 1 line
2.11.0