busybox: Upgrade to v1.21.0
PATCH v3 1/1 busybox: Upgrade to v1.21.0
Removed obsolete patches
Added a few fixes from upstream
(http://busybox.net/downloads/fixes-1.21.0/)
*busybox-1.21.0-mdev.patch
*busybox-1.21.0-platform.patch
*busybox-1.21.0-xz.patch
Signed-off-by Radu Moisan <[email protected]>
---
.../busybox/busybox-1.20.2/B921600.patch | 24 -
.../busybox-1.20.2/busybox-1.20.2-kernel_ver.patch | 28 -
.../busybox-mkfs-minix-tests_bigendian.patch | 34 -
.../fix-for-spurious-testsuite-failure.patch | 27 -
.../busybox/busybox-1.20.2/sys_resource.patch | 99 ---
.../busybox/busybox-1.20.2/wget_dl_dir_fix.patch | 30 -
.../busybox-1.21.0/busybox-1.21.0-mdev.patch | 647 ++++++++++++++++++++
.../busybox-1.21.0/busybox-1.21.0-platform.patch | 28 +
.../busybox/busybox-1.21.0/busybox-1.21.0-xz.patch | 88 +++
.../busybox-appletlib-dependency.patch | 0
.../busybox-udhcpc-no_deconfig.patch | 0
.../{busybox-1.20.2 => busybox-1.21.0}/defconfig | 0
.../get_header_tar.patch | 0
.../run-parts.in.usr-bin.patch | 6 +-
.../stat-usr-bin.patch | 0
...estsuite-du-du-k-works-fix-false-positive.patch | 0
.../watch.in.usr-bin.patch | 0
.../{busybox_1.20.2.bb => busybox_1.21.0.bb} | 18 +-
18 files changed, 774 insertions(+), 255 deletions(-)
delete mode 100644 meta/recipes-core/busybox/busybox-1.20.2/B921600.patch
delete mode 100644 meta/recipes-core/busybox/busybox-1.20.2/busybox-1.20.2-kernel_ver.patch
delete mode 100644 meta/recipes-core/busybox/busybox-1.20.2/busybox-mkfs-minix-tests_bigendian.patch
delete mode 100644 meta/recipes-core/busybox/busybox-1.20.2/fix-for-spurious-testsuite-failure.patch
delete mode 100644 meta/recipes-core/busybox/busybox-1.20.2/sys_resource.patch
delete mode 100644 meta/recipes-core/busybox/busybox-1.20.2/wget_dl_dir_fix.patch
create mode 100644 meta/recipes-core/busybox/busybox-1.21.0/busybox-1.21.0-mdev.patch
create mode 100644 meta/recipes-core/busybox/busybox-1.21.0/busybox-1.21.0-platform.patch
create mode 100644 meta/recipes-core/busybox/busybox-1.21.0/busybox-1.21.0-xz.patch
rename meta/recipes-core/busybox/{busybox-1.20.2 => busybox-1.21.0}/busybox-appletlib-dependency.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.20.2 => busybox-1.21.0}/busybox-udhcpc-no_deconfig.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.20.2 => busybox-1.21.0}/defconfig (100%)
rename meta/recipes-core/busybox/{busybox-1.20.2 => busybox-1.21.0}/get_header_tar.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.20.2 => busybox-1.21.0}/run-parts.in.usr-bin.patch (90%)
rename meta/recipes-core/busybox/{busybox-1.20.2 => busybox-1.21.0}/stat-usr-bin.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.20.2 => busybox-1.21.0}/testsuite-du-du-k-works-fix-false-positive.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.20.2 => busybox-1.21.0}/watch.in.usr-bin.patch (100%)
rename meta/recipes-core/busybox/{busybox_1.20.2.bb => busybox_1.21.0.bb} (68%)meta/recipes-core/busybox/busybox-1.20.2/B921600.patch deleted +0 -24
@@ -1,24 +0,0 @@ -Upstream-Status: Inappropriate [configuration] - -# copy commit message from OE as the patch comment: -# commit 5b1ed09b1ab1a60a28a76e4658bc9957cd361b5d -# Author: Valentin Longchamp <[email protected]> -# Date: Mon Dec 8 14:43:23 2008 +0100 - -# busybox: added support for 921600 speed of serial line -# -# above comment added by Kevin Tian <[email protected]>, 2010-07-06 - -diff -upNr busybox-1.7.2/libbb/speed_table.c busybox-1.7.2-921600/libbb/speed_table.c ---- busybox-1.7.2/libbb/speed_table.c 2007-09-03 13:48:41.000000000 +0200 -+++ busybox-1.7.2-921600/libbb/speed_table.c 2008-10-09 16:23:26.269592899 +0200 -@@ -52,6 +52,9 @@ static const struct speed_map speeds[] = - #ifdef B460800 - {B460800, 460800/256 + 0x8000U}, - #endif -+#ifdef B921600 -+ {B921600, 921600/256 + 0x8000U}, -+#endif - }; - - enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };
meta/recipes-core/busybox/busybox-1.20.2/busybox-1.20.2-kernel_ver.patch deleted +0 -28
@@ -1,28 +0,0 @@ -Signed-off-by: Radu Moisan <[email protected]> -Upstream-Status: Pending - ---- busybox-1.20.2/libbb/kernel_version.c -+++ busybox-1.20.2-kernel_ver/libbb/kernel_version.c -@@ -20,18 +20,15 @@ - int FAST_FUNC get_linux_version_code(void) - { - struct utsname name; -- char *s; -+ char *s, *t; - int i, r; - -- if (uname(&name) == -1) { -- bb_perror_msg("can't get system information"); -- return 0; -- } -- -+ uname(&name); /* never fails */ - s = name.release; - r = 0; - for (i = 0; i < 3; i++) { -- r = r * 256 + atoi(strtok(s, ".")); -+ t = strtok(s, "."); -+ r = r * 256 + (t ? atoi(t) : 0); - s = NULL; - } - return r;
meta/recipes-core/busybox/busybox-1.20.2/busybox-mkfs-minix-tests_bigendian.patch deleted +0 -34
@@ -1,34 +0,0 @@ -patch mkfs.minix.tests to have correct md5sum on big endian platform - -Upstream-Status: Accepted, expected in next release - -Signed-off-by: Yao Zhao <[email protected]> - -diff --git a/testsuite/mkfs.minix.tests b/testsuite/mkfs.minix.tests -index 8a33c16..7eecaf2 100755 ---- a/testsuite/mkfs.minix.tests -+++ b/testsuite/mkfs.minix.tests -@@ -8,6 +8,14 @@ - - # testing "test name" "options" "expected result" "file input" "stdin" - -+# '\n' produces 10 on little endian, but not on big endian -+cr=`echo | od -i | sed 's/.* //g;2d'` -+if [ x"$cr" = x"10" ]; then -+ hash=4f35f7afeba07d56055bed1f29ae20b7 -+else -+ hash=5adbc1b3ccd20ca5d0ab5bc1e13ac3fc -+fi -+ - testing "mkfs.minix" \ - "dd if=/dev/zero of=input bs=1k count=1024 2>/dev/null; mkfs.minix input; md5sum <input" \ - "352 inodes\n"\ -@@ -15,7 +23,7 @@ testing "mkfs.minix" \ - "Firstdatazone=15 (15)\n"\ - "Zonesize=1024\n"\ - "Maxsize=268966912\n"\ --"4f35f7afeba07d56055bed1f29ae20b7 -\n" \ -+"$hash -\n" \ - "" \ - "" -
meta/recipes-core/busybox/busybox-1.20.2/fix-for-spurious-testsuite-failure.patch deleted +0 -27
@@ -1,27 +0,0 @@ -Backport the patch from: -http://git.busybox.net/busybox/commit/?id=a5ee090e8651692545514a81a16c6cde3a2dc577 - -From a5ee090e8651692545514a81a16c6cde3a2dc577 Mon Sep 17 00:00:00 2001 -From: Denys Vlasenko <[email protected]> -Date: Thu, 10 May 2012 19:26:37 +0200 -Subject: [PATCH] fix for spurious testsuite failure - -Upstream-Status: Backport -Signed-off-by: Denys Vlasenko <[email protected]> ---- - testsuite/du/du-k-works | 1 + - 1 files changed, 1 insertions(+), 0 deletions(-) - -diff --git a/testsuite/du/du-k-works b/testsuite/du/du-k-works -index 229a948..36dcaa8 100644 ---- a/testsuite/du/du-k-works -+++ b/testsuite/du/du-k-works -@@ -3,4 +3,5 @@ cd du.testdir - dd if=/dev/zero of=file1 bs=1k count=64 2>/dev/null - dd if=/dev/zero of=file2 bs=1k count=16 2>/dev/null - test x"`busybox du -k .`" = x"80 ." \ -+ -o x"`busybox du -k .`" = x"84 ." \ - -o x"`busybox du -k .`" = x"88 ." --- -1.7.4.1 -
meta/recipes-core/busybox/busybox-1.20.2/sys_resource.patch deleted +0 -99
99 lines not on this page · raw message
meta/recipes-core/busybox/busybox-1.20.2/wget_dl_dir_fix.patch deleted +0 -30
@@ -1,30 +0,0 @@ -In cases where busybox wget is invoked with -P <...> and the url ends -in "/", the download directory is ignored (ie the file index.html is -implied), this change enables the -P option for those urls. - -Signed-off-by: Amy Fong <[email protected]> -Upstream-Status: Submitted ---- - networking/wget.c | 10 +++++++--- - 1 file changed, 7 insertions(+), 3 deletions(-) - ---- a/networking/wget.c -+++ b/networking/wget.c -@@ -589,10 +589,14 @@ - if (!(option_mask32 & WGET_OPT_OUTNAME)) { - G.fname_out = bb_get_last_path_component_nostrip(target.path); - /* handle "wget http://kernel.org//" */ -- if (G.fname_out[0] == '/' || !G.fname_out[0]) -- G.fname_out = (char*)"index.html"; -+ if (G.fname_out[0] == '/' || !G.fname_out[0]) { -+ /* bug: if we provide a default name, we should still look at -P option */ -+ if (G.dir_prefix) -+ G.fname_out = fname_out_alloc = concat_path_file(G.dir_prefix, "index.html"); -+ else -+ G.fname_out = (char*)"index.html"; - /* -P DIR is considered only if there was no -O FILE */ -- else { -+ } else { - if (G.dir_prefix) - G.fname_out = fname_out_alloc = concat_path_file(G.dir_prefix, G.fname_out); - else {
meta/recipes-core/busybox/busybox-1.21.0/busybox-1.21.0-mdev.patch new file +647 -0
647 lines not on this page · raw message
meta/recipes-core/busybox/busybox-1.21.0/busybox-1.21.0-platform.patch new file +28 -0
@@ -0,0 +1,28 @@ +http://busybox.net/downloads/fixes-1.21.0/ + +Upstream-Status: Pending +Signed-off-by: Radu Moisan <[email protected]> +--- busybox-1.21.0/archival/libarchive/decompress_unxz.c ++++ busybox-1.21.0-platform/archival/libarchive/decompress_unxz.c +@@ -30,8 +30,8 @@ static uint32_t xz_crc32(const uint8_t * + /* We use arch-optimized unaligned accessors */ + #define get_unaligned_le32(buf) ({ uint32_t v; move_from_unaligned32(v, buf); SWAP_LE32(v); }) + #define get_unaligned_be32(buf) ({ uint32_t v; move_from_unaligned32(v, buf); SWAP_BE32(v); }) +-#define put_unaligned_le32(val, buf) move_to_unaligned16(buf, SWAP_LE32(val)) +-#define put_unaligned_be32(val, buf) move_to_unaligned16(buf, SWAP_BE32(val)) ++#define put_unaligned_le32(val, buf) move_to_unaligned32(buf, SWAP_LE32(val)) ++#define put_unaligned_be32(val, buf) move_to_unaligned32(buf, SWAP_BE32(val)) + + #include "unxz/xz_dec_bcj.c" + #include "unxz/xz_dec_lzma2.c" +--- busybox-1.21.0/include/platform.h ++++ busybox-1.21.0-platform/include/platform.h +@@ -228,7 +228,7 @@ typedef uint32_t bb__aliased_uint32_t FI + # define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4)) + # define move_to_unaligned16(u16p, v) do { \ + uint16_t __t = (v); \ +- memcpy((u16p), &__t, 4); \ ++ memcpy((u16p), &__t, 2); \ + } while (0) + # define move_to_unaligned32(u32p, v) do { \ + uint32_t __t = (v); \
meta/recipes-core/busybox/busybox-1.21.0/busybox-1.21.0-xz.patch new file +88 -0
88 lines not on this page · raw message
meta/recipes-core/busybox/busybox-1.21.0/busybox-appletlib-dependency.patch renamed from meta/recipes-core/busybox/busybox-1.20.2/busybox-appletlib-dependency.patch +0 -0
meta/recipes-core/busybox/busybox-1.21.0/busybox-udhcpc-no_deconfig.patch renamed from meta/recipes-core/busybox/busybox-1.20.2/busybox-udhcpc-no_deconfig.patch +0 -0
meta/recipes-core/busybox/busybox-1.21.0/defconfig renamed from meta/recipes-core/busybox/busybox-1.20.2/defconfig +0 -0
meta/recipes-core/busybox/busybox-1.21.0/get_header_tar.patch renamed from meta/recipes-core/busybox/busybox-1.20.2/get_header_tar.patch +0 -0
meta/recipes-core/busybox/busybox-1.21.0/run-parts.in.usr-bin.patch renamed from meta/recipes-core/busybox/busybox-1.20.2/run-parts.in.usr-bin.patch +3 -3
@@ -18,12 +18,12 @@ Upstream-Status: Inappropriate [configuration] diff -uNr busybox-1.15.3.orig//include/applets.src.h busybox-1.15.3/include/applets.src.h --- busybox-1.15.3.orig//include/applets.src.h 2009-12-12 22:13:28.000000000 +0100 +++ busybox-1.15.3/include/applets.src.h 2010-04-30 15:35:40.000000000 +0200 -@@ -323,7 +323,7 @@ +@@ -304,7 +304,7 @@ IF_RPM(APPLET(rpm, BB_DIR_BIN, BB_SUID_DROP)) IF_RPM2CPIO(APPLET(rpm2cpio, BB_DIR_USR_BIN, BB_SUID_DROP)) - IF_RTCWAKE(APPLET(rtcwake, BB_DIR_USR_BIN, BB_SUID_DROP)) + IF_RTCWAKE(APPLET(rtcwake, BB_DIR_USR_SBIN, BB_SUID_DROP)) -IF_RUN_PARTS(APPLET_ODDNAME(run-parts, run_parts, BB_DIR_BIN, BB_SUID_DROP, run_parts)) +IF_RUN_PARTS(APPLET_ODDNAME(run-parts, run_parts, BB_DIR_USR_BIN, BB_SUID_DROP, run_parts)) IF_RUNCON(APPLET(runcon, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_RUNLEVEL(APPLET(runlevel, BB_DIR_SBIN, BB_SUID_DROP)) - IF_RUNSV(APPLET(runsv, BB_DIR_USR_BIN, _BB_SUID_DROP)) + IF_RUNSV(APPLET(runsv, BB_DIR_USR_BIN, BB_SUID_DROP))
meta/recipes-core/busybox/busybox-1.21.0/stat-usr-bin.patch renamed from meta/recipes-core/busybox/busybox-1.20.2/stat-usr-bin.patch +0 -0
meta/recipes-core/busybox/busybox-1.21.0/testsuite-du-du-k-works-fix-false-positive.patch renamed from meta/recipes-core/busybox/busybox-1.20.2/testsuite-du-du-k-works-fix-false-positive.patch +0 -0
meta/recipes-core/busybox/busybox-1.21.0/watch.in.usr-bin.patch renamed from meta/recipes-core/busybox/busybox-1.20.2/watch.in.usr-bin.patch +0 -0
meta/recipes-core/busybox/busybox_1.21.0.bb renamed from meta/recipes-core/busybox/busybox_1.20.2.bb +8 -10
@@ -1,15 +1,12 @@ require busybox.inc -PR = "r5" +PR = "r0" SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ - file://B921600.patch \ file://get_header_tar.patch \ file://busybox-appletlib-dependency.patch \ file://run-parts.in.usr-bin.patch \ file://watch.in.usr-bin.patch \ file://busybox-udhcpc-no_deconfig.patch \ - file://sys_resource.patch \ - file://wget_dl_dir_fix.patch \ file://find-touchscreen.sh \ file://busybox-cron \ file://busybox-httpd \
@@ -24,13 +21,14 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://mdev.conf \ file://umount.busybox \ file://defconfig \ - file://busybox-mkfs-minix-tests_bigendian.patch \ - file://fix-for-spurious-testsuite-failure.patch \ - file://busybox-1.20.2-kernel_ver.patch \ file://stat-usr-bin.patch \ - file://testsuite-du-du-k-works-fix-false-positive.patch" + file://testsuite-du-du-k-works-fix-false-positive.patch \ + file://busybox-1.21.0-mdev.patch \ + file://busybox-1.21.0-platform.patch \ + file://busybox-1.21.0-xz.patch \ +" -SRC_URI[tarball.md5sum] = "e025414bc6cd79579cc7a32a45d3ae1c" -SRC_URI[tarball.sha256sum] = "eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882" +SRC_URI[tarball.md5sum] = "d613f2e4b580305c1de8691f7b84285e" +SRC_URI[tarball.sha256sum] = "eb9d268627783297f5f459cb9bd61a94e395dc7cb3647e10ec186e0159aa36ed" EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX} SKIP_STRIP=y"
Signature · 1 line
1.7.9.5