aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-09-02 21:31:45 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2017-09-02 21:31:45 -0700
commitc397b91d0d12367fa2fe98bea0830a0e781d630d (patch)
tree4df93bc4cc2317ad417a1e950ccbe2eba6528111 /patches
parentBump version to 3.5.1.1 (diff)
downloadgenkernel-c397b91d0d12367fa2fe98bea0830a0e781d630d.tar.gz
genkernel-c397b91d0d12367fa2fe98bea0830a0e781d630d.tar.bz2
genkernel-c397b91d0d12367fa2fe98bea0830a0e781d630d.zip
busybox: move to 1.27.2
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'patches')
-rw-r--r--patches/busybox/1.18.1/1.18.1-mdstart.diff122
-rw-r--r--patches/busybox/1.19.3/1.18.1-openvt.diff19
-rw-r--r--patches/busybox/1.19.3/busybox-1.19.3-mdstart.patch130
-rw-r--r--patches/busybox/1.19.3/busybox-1.7.4-signal-hack.patch28
-rw-r--r--patches/busybox/1.20.1/1.18.1-openvt.diff19
-rw-r--r--patches/busybox/1.20.1/busybox-1.20.1-mdstart.patch130
-rw-r--r--patches/busybox/1.20.1/busybox-1.7.4-signal-hack.patch28
-rw-r--r--patches/busybox/1.20.2/1.18.1-openvt.diff19
-rw-r--r--patches/busybox/1.20.2/busybox-1.20.1-mdstart.patch130
-rw-r--r--patches/busybox/1.20.2/busybox-1.20.2-bunzip2.patch12
-rw-r--r--patches/busybox/1.20.2/busybox-1.20.2-glibc-sys-resource.patch109
-rw-r--r--patches/busybox/1.20.2/busybox-1.7.4-signal-hack.patch28
-rw-r--r--patches/busybox/1.26.0/1.18.1-openvt.diff19
-rw-r--r--patches/busybox/1.26.0/busybox-1.20.2-modprobe.patch26
-rw-r--r--patches/busybox/1.26.0/busybox-1.7.4-signal-hack.patch28
-rw-r--r--patches/busybox/1.27.2/1.18.1-openvt.diff (renamed from patches/busybox/1.18.1/1.18.1-openvt.diff)0
-rw-r--r--patches/busybox/1.27.2/README (renamed from patches/busybox/1.18.1/README)0
-rw-r--r--patches/busybox/1.27.2/busybox-1.20.2-modprobe.patch (renamed from patches/busybox/1.20.2/busybox-1.20.2-modprobe.patch)0
-rw-r--r--patches/busybox/1.27.2/busybox-1.26.0-mdstart.patch (renamed from patches/busybox/1.26.0/busybox-1.26.0-mdstart.patch)0
-rw-r--r--patches/busybox/1.27.2/busybox-1.7.4-signal-hack.patch (renamed from patches/busybox/1.18.1/busybox-1.7.4-signal-hack.patch)0
20 files changed, 0 insertions, 847 deletions
diff --git a/patches/busybox/1.18.1/1.18.1-mdstart.diff b/patches/busybox/1.18.1/1.18.1-mdstart.diff
deleted file mode 100644
index d4e1d77..0000000
--- a/patches/busybox/1.18.1/1.18.1-mdstart.diff
+++ /dev/null
@@ -1,122 +0,0 @@
-Based on:
-
-> Forward-port the old mdstart tool from the Gentoo Busybox-1.1.3.
-> Only fires the RAID_AUTORUN ioctl on existing /dev/md nodes.
-
-diff -pruN a/include/applets.src.h mdstart/include/applets.src.h
---- a/include/applets.src.h 2011-01-20 01:08:05.470632138 +0100
-+++ mdstart/include/applets.src.h 2011-01-20 01:09:13.198003320 +0100
-@@ -235,6 +235,7 @@ IF_MAN(APPLET(man, _BB_DIR_SBIN, _BB_SUI
- IF_MATCHPATHCON(APPLET(matchpathcon, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
- IF_MD5SUM(APPLET_NOEXEC(md5sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, md5sum))
- IF_MDEV(APPLET(mdev, _BB_DIR_SBIN, _BB_SUID_DROP))
-+IF_MDSTART(APPLET(mdstart, _BB_DIR_SBIN, _BB_SUID_DROP))
- IF_MICROCOM(APPLET(microcom, _BB_DIR_USR_BIN, _BB_SUID_DROP))
- IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, _BB_DIR_BIN, _BB_SUID_DROP, mkdir))
- IF_MKFS_VFAT(APPLET_ODDNAME(mkdosfs, mkfs_vfat, _BB_DIR_SBIN, _BB_SUID_DROP, mkfs_vfat))
-diff -pruN a/include/usage.src.h mdstart/include/usage.src.h
---- a/include/usage.src.h 2010-12-21 06:29:45.000000000 +0200
-+++ mdstart/include/usage.src.h 2011-01-12 21:29:47.000000000 +0200
-@@ -847,6 +847,11 @@ INSERT
- "$ dirname /tmp/foo/\n" \
- "/tmp\n"
-
-+#define mdstart_trivial_usage \
-+ "{[PARTITION] MD-NODE}..."
-+#define mdstart_full_usage \
-+ "Run the RAID_AUTORUN ioctl on the given MD number"
-+
- #define dmesg_trivial_usage \
- "[-c] [-n LEVEL] [-s SIZE]"
- #define dmesg_full_usage "\n\n" \
-diff -pruN a/util-linux/Config.src mdstart/util-linux/Config.src
---- a/util-linux/Config.src 2010-12-20 02:41:27.000000000 +0200
-+++ mdstart/util-linux/Config.src 2011-01-12 21:30:09.000000000 +0200
-@@ -456,6 +456,13 @@ config FEATURE_MDEV_LOAD_FIRMWARE
- /lib/firmware/ and if it exists, send it to the kernel for
- loading into the hardware.
-
-+config MDSTART
-+ bool "mdstart"
-+ default n
-+ help
-+ Allows you to autostart /dev/md devices if using an initramfs to
-+ boot.
-+
- config MKSWAP
- bool "mkswap"
- default y
-diff -pruN a/util-linux/Kbuild.src mdstart/util-linux/Kbuild.src
---- a/util-linux/Kbuild.src 2010-12-20 02:41:27.000000000 +0200
-+++ mdstart/util-linux/Kbuild.src 2011-01-12 21:30:09.000000000 +0200
-@@ -24,6 +24,7 @@ lib-$(CONFIG_HWCLOCK) += hwclo
- lib-$(CONFIG_IPCRM) += ipcrm.o
- lib-$(CONFIG_IPCS) += ipcs.o
- lib-$(CONFIG_LOSETUP) += losetup.o
-+lib-$(CONFIG_MDSTART) += mdStart.o
- lib-$(CONFIG_LSPCI) += lspci.o
- lib-$(CONFIG_LSUSB) += lsusb.o
- lib-$(CONFIG_MDEV) += mdev.o
-diff -pruN a/util-linux/mdStart.c mdstart/util-linux/mdStart.c
---- a/util-linux/mdStart.c 1970-01-01 03:00:00.000000000 +0300
-+++ mdstart/util-linux/mdStart.c 2011-01-12 21:30:09.000000000 +0200
-@@ -0,0 +1,59 @@
-+/*
-+ * Linux 2.6(+) RAID Autostarter
-+ *
-+ * Copyright (C) 2005 by Tim Yamin <plasmaroo@gentoo.org> <plasm@roo.me.uk>
-+ *
-+ * This program is free software; you can redistribute it and/or modify
-+ * it under the terms of the GNU General Public License as published by
-+ * the Free Software Foundation; either version 2 of the License, or
-+ * (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-+ * General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-+ *
-+ */
-+
-+#include <sys/types.h>
-+#include <sys/stat.h>
-+#include <fcntl.h>
-+#include <sys/ioctl.h>
-+#include <linux/major.h>
-+#include <linux/raid/md_u.h>
-+
-+extern int
-+mdstart_main(int argc, char *argv[])
-+{
-+ int i, fd, part = 0, retval = 0;
-+
-+ if(argc < 2)
-+ {
-+ bb_show_usage();
-+ }
-+
-+ for(i = 1; i < argc; i++)
-+ {
-+ if(sscanf(argv[i], "%d", &part) == 1)
-+ continue;
-+
-+ fd = open(argv[i], 0, 0);
-+ if (fd >= 0)
-+ {
-+ ioctl(fd, RAID_AUTORUN, part);
-+ close(fd);
-+ } else
-+ {
-+ printf("Error: Failed to open %s!\n", argv[i]);
-+ retval=1;
-+ }
-+
-+ part = 0;
-+ }
-+
-+ return retval;
-+}
diff --git a/patches/busybox/1.19.3/1.18.1-openvt.diff b/patches/busybox/1.19.3/1.18.1-openvt.diff
deleted file mode 100644
index b8a9f8a..0000000
--- a/patches/busybox/1.19.3/1.18.1-openvt.diff
+++ /dev/null
@@ -1,19 +0,0 @@
-Based on:
-
-> Allow a slightly wider range of valid vt numbers. Forward-ported from Gentoo
-> Busybox 1.1.3.
-
-> The previous spin of this patch on 1.1.3 had a 'wait(NULL);' right before
-> return EXIT_SUCCESS. I don't think it's needed anymore, so I left it out.
-
---- a/console-tools/openvt.c 2010-11-22 22:24:58.000000000 +0200
-+++ b/console-tools/openvt.c 2010-11-29 15:32:18.000000000 +0200
-@@ -124,7 +124,7 @@ int openvt_main(int argc UNUSED_PARAM, c
-
- if (flags & OPT_c) {
- /* Check for illegal vt number: < 1 or > 63 */
-- vtno = xatou_range(str_c, 1, 63);
-+ vtno = xatou_range(str_c, 0, 63);
- } else {
- vtno = find_free_vtno();
- }
diff --git a/patches/busybox/1.19.3/busybox-1.19.3-mdstart.patch b/patches/busybox/1.19.3/busybox-1.19.3-mdstart.patch
deleted file mode 100644
index 8e59595..0000000
--- a/patches/busybox/1.19.3/busybox-1.19.3-mdstart.patch
+++ /dev/null
@@ -1,130 +0,0 @@
-From b971b7317af525b1887d4af473307f8084015f02 Mon Sep 17 00:00:00 2001
-From: Sebastian Pipping <sebastian@pipping.org>
-Date: Sat, 14 Jan 2012 23:38:17 +0100
-Subject: [PATCH] Port mdstart patch to busybox 1.19.3
-
----
- include/applets.src.h | 1 +
- util-linux/Config.src | 7 +++++
- util-linux/Kbuild.src | 1 +
- util-linux/mdStart.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++
- 4 files changed, 75 insertions(+), 0 deletions(-)
- create mode 100644 util-linux/mdStart.c
-
-diff --git a/include/applets.src.h b/include/applets.src.h
-index 87d9cbb..331145c 100644
---- a/include/applets.src.h
-+++ b/include/applets.src.h
-@@ -241,6 +241,7 @@ IF_MAN(APPLET(man, BB_DIR_SBIN, BB_SUID_DROP))
- IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP))
- IF_MD5SUM(APPLET_NOEXEC(md5sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, md5sum))
- IF_MDEV(APPLET(mdev, BB_DIR_SBIN, BB_SUID_DROP))
-+IF_MDSTART(APPLET(mdstart, BB_DIR_SBIN, BB_SUID_DROP))
- IF_MICROCOM(APPLET(microcom, BB_DIR_USR_BIN, BB_SUID_DROP))
- IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, BB_DIR_BIN, BB_SUID_DROP, mkdir))
- IF_MKFS_VFAT(APPLET_ODDNAME(mkdosfs, mkfs_vfat, BB_DIR_SBIN, BB_SUID_DROP, mkfs_vfat))
-diff --git a/util-linux/Config.src b/util-linux/Config.src
-index bb45705..2f60d04 100644
---- a/util-linux/Config.src
-+++ b/util-linux/Config.src
-@@ -462,6 +462,13 @@ config FEATURE_MDEV_LOAD_FIRMWARE
- /lib/firmware/ and if it exists, send it to the kernel for
- loading into the hardware.
-
-+config MDSTART
-+ bool "mdstart"
-+ default n
-+ help
-+ Allows you to autostart /dev/md devices if using an initramfs to
-+ boot.
-+
- config MKSWAP
- bool "mkswap"
- default y
-diff --git a/util-linux/Kbuild.src b/util-linux/Kbuild.src
-index c06d911..98cbb09 100644
---- a/util-linux/Kbuild.src
-+++ b/util-linux/Kbuild.src
-@@ -24,6 +24,7 @@ lib-$(CONFIG_HWCLOCK) += hwclock.o
- lib-$(CONFIG_IPCRM) += ipcrm.o
- lib-$(CONFIG_IPCS) += ipcs.o
- lib-$(CONFIG_LOSETUP) += losetup.o
-+lib-$(CONFIG_MDSTART) += mdStart.o
- lib-$(CONFIG_LSPCI) += lspci.o
- lib-$(CONFIG_LSUSB) += lsusb.o
- lib-$(CONFIG_MDEV) += mdev.o
-diff --git a/util-linux/mdStart.c b/util-linux/mdStart.c
-new file mode 100644
-index 0000000..0c55bab
---- /dev/null
-+++ b/util-linux/mdStart.c
-@@ -0,0 +1,66 @@
-+/*
-+ * Linux 2.6(+) RAID Autostarter
-+ *
-+ * Copyright (C) 2005 by Tim Yamin <plasmaroo@gentoo.org> <plasm@roo.me.uk>
-+ * Copyright (C) 2012 by Sebastian Pipping <sebastian@pipping.org>
-+ *
-+ * This program is free software; you can redistribute it and/or modify
-+ * it under the terms of the GNU General Public License as published by
-+ * the Free Software Foundation; either version 2 of the License, or
-+ * (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-+ * General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-+ *
-+ */
-+
-+//usage:#define mdstart_trivial_usage
-+//usage: "[PARTITION] MD-NODE [[PARTITION] MD-NODE ...]"
-+//usage:
-+//usage:#define mdstart_full_usage "\n\n"
-+//usage: "Run the RAID_AUTORUN ioctl on the given MD number"
-+
-+#include <sys/types.h>
-+#include <sys/stat.h>
-+#include <fcntl.h>
-+#include <sys/ioctl.h>
-+#include <linux/major.h>
-+#include <linux/raid/md_u.h>
-+
-+extern int
-+mdstart_main(int argc, char *argv[])
-+{
-+ int i, fd, part = 0, retval = 0;
-+
-+ if(argc < 2)
-+ {
-+ bb_show_usage();
-+ }
-+
-+ for(i = 1; i < argc; i++)
-+ {
-+ if(sscanf(argv[i], "%d", &part) == 1)
-+ continue;
-+
-+ fd = open(argv[i], 0, 0);
-+ if (fd >= 0)
-+ {
-+ ioctl(fd, RAID_AUTORUN, part);
-+ close(fd);
-+ } else
-+ {
-+ printf("Error: Failed to open %s!\n", argv[i]);
-+ retval=1;
-+ }
-+
-+ part = 0;
-+ }
-+
-+ return retval;
-+}
---
-1.7.8.3
-
diff --git a/patches/busybox/1.19.3/busybox-1.7.4-signal-hack.patch b/patches/busybox/1.19.3/busybox-1.7.4-signal-hack.patch
deleted file mode 100644
index ba11830..0000000
--- a/patches/busybox/1.19.3/busybox-1.7.4-signal-hack.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-workaround while we get it fixed upstream
-
-http://bugs.gentoo.org/201114
-
---- libbb/u_signal_names.c
-+++ libbb/u_signal_names.c
-@@ -66,7 +66,7 @@
- #ifdef SIGTERM
- [SIGTERM ] = "TERM",
- #endif
--#ifdef SIGSTKFLT
-+#if defined(SIGSTKFLT) && SIGSTKFLT < 32
- [SIGSTKFLT] = "STKFLT",
- #endif
- #ifdef SIGCHLD
-@@ -90,10 +90,10 @
- #ifdef SIGURG
- [SIGURG ] = "URG",
- #endif
--#ifdef SIGXCPU
-+#if defined(SIGXCPU) && SIGXCPU < 32
- [SIGXCPU ] = "XCPU",
- #endif
--#ifdef SIGXFSZ
-+#if defined(SIGXFSZ) && SIGXFSZ < 32
- [SIGXFSZ ] = "XFSZ",
- #endif
- #ifdef SIGVTALRM
diff --git a/patches/busybox/1.20.1/1.18.1-openvt.diff b/patches/busybox/1.20.1/1.18.1-openvt.diff
deleted file mode 100644
index b8a9f8a..0000000
--- a/patches/busybox/1.20.1/1.18.1-openvt.diff
+++ /dev/null
@@ -1,19 +0,0 @@
-Based on:
-
-> Allow a slightly wider range of valid vt numbers. Forward-ported from Gentoo
-> Busybox 1.1.3.
-
-> The previous spin of this patch on 1.1.3 had a 'wait(NULL);' right before
-> return EXIT_SUCCESS. I don't think it's needed anymore, so I left it out.
-
---- a/console-tools/openvt.c 2010-11-22 22:24:58.000000000 +0200
-+++ b/console-tools/openvt.c 2010-11-29 15:32:18.000000000 +0200
-@@ -124,7 +124,7 @@ int openvt_main(int argc UNUSED_PARAM, c
-
- if (flags & OPT_c) {
- /* Check for illegal vt number: < 1 or > 63 */
-- vtno = xatou_range(str_c, 1, 63);
-+ vtno = xatou_range(str_c, 0, 63);
- } else {
- vtno = find_free_vtno();
- }
diff --git a/patches/busybox/1.20.1/busybox-1.20.1-mdstart.patch b/patches/busybox/1.20.1/busybox-1.20.1-mdstart.patch
deleted file mode 100644
index 5ca3eca..0000000
--- a/patches/busybox/1.20.1/busybox-1.20.1-mdstart.patch
+++ /dev/null
@@ -1,130 +0,0 @@
-From d1f76c9546758611bcadd6ad10fc0c4c1ceb14ee Mon Sep 17 00:00:00 2001
-From: Sebastian Pipping <sebastian@pipping.org>
-Date: Sun, 10 Jun 2012 19:05:38 +0200
-Subject: [PATCH] Port mdstart patch from busybox 1.19.3 to 1.20.1
-
----
- include/applets.src.h | 1 +
- util-linux/Config.src | 7 ++++++
- util-linux/Kbuild.src | 1 +
- util-linux/mdStart.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++
- 4 files changed, 75 insertions(+)
- create mode 100644 util-linux/mdStart.c
-
-diff --git a/include/applets.src.h b/include/applets.src.h
-index 252a060..0b199bc 100644
---- a/include/applets.src.h
-+++ b/include/applets.src.h
-@@ -239,6 +239,7 @@ IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP))
- IF_MAN(APPLET(man, BB_DIR_SBIN, BB_SUID_DROP))
- IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP))
- IF_MD5SUM(APPLET_NOEXEC(md5sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, md5sum))
-+IF_MDSTART(APPLET(mdstart, BB_DIR_SBIN, BB_SUID_DROP))
- IF_MICROCOM(APPLET(microcom, BB_DIR_USR_BIN, BB_SUID_DROP))
- IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, BB_DIR_BIN, BB_SUID_DROP, mkdir))
- IF_MKFS_VFAT(APPLET_ODDNAME(mkdosfs, mkfs_vfat, BB_DIR_SBIN, BB_SUID_DROP, mkfs_vfat))
-diff --git a/util-linux/Config.src b/util-linux/Config.src
-index 57a52ce..e07fe2b 100644
---- a/util-linux/Config.src
-+++ b/util-linux/Config.src
-@@ -404,6 +404,13 @@ config LSUSB
-
- This version uses sysfs (/sys/bus/usb/devices) only.
-
-+config MDSTART
-+ bool "mdstart"
-+ default n
-+ help
-+ Allows you to autostart /dev/md devices if using an initramfs to
-+ boot.
-+
- config MKSWAP
- bool "mkswap"
- default y
-diff --git a/util-linux/Kbuild.src b/util-linux/Kbuild.src
-index 468fc6b..0bc9a9b 100644
---- a/util-linux/Kbuild.src
-+++ b/util-linux/Kbuild.src
-@@ -24,6 +24,7 @@ lib-$(CONFIG_HWCLOCK) += hwclock.o
- lib-$(CONFIG_IPCRM) += ipcrm.o
- lib-$(CONFIG_IPCS) += ipcs.o
- lib-$(CONFIG_LOSETUP) += losetup.o
-+lib-$(CONFIG_MDSTART) += mdStart.o
- lib-$(CONFIG_LSPCI) += lspci.o
- lib-$(CONFIG_LSUSB) += lsusb.o
- lib-$(CONFIG_MKFS_EXT2) += mkfs_ext2.o
-diff --git a/util-linux/mdStart.c b/util-linux/mdStart.c
-new file mode 100644
-index 0000000..0c55bab
---- /dev/null
-+++ b/util-linux/mdStart.c
-@@ -0,0 +1,66 @@
-+/*
-+ * Linux 2.6(+) RAID Autostarter
-+ *
-+ * Copyright (C) 2005 by Tim Yamin <plasmaroo@gentoo.org> <plasm@roo.me.uk>
-+ * Copyright (C) 2012 by Sebastian Pipping <sebastian@pipping.org>
-+ *
-+ * This program is free software; you can redistribute it and/or modify
-+ * it under the terms of the GNU General Public License as published by
-+ * the Free Software Foundation; either version 2 of the License, or
-+ * (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-+ * General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-+ *
-+ */
-+
-+//usage:#define mdstart_trivial_usage
-+//usage: "[PARTITION] MD-NODE [[PARTITION] MD-NODE ...]"
-+//usage:
-+//usage:#define mdstart_full_usage "\n\n"
-+//usage: "Run the RAID_AUTORUN ioctl on the given MD number"
-+
-+#include <sys/types.h>
-+#include <sys/stat.h>
-+#include <fcntl.h>
-+#include <sys/ioctl.h>
-+#include <linux/major.h>
-+#include <linux/raid/md_u.h>
-+
-+extern int
-+mdstart_main(int argc, char *argv[])
-+{
-+ int i, fd, part = 0, retval = 0;
-+
-+ if(argc < 2)
-+ {
-+ bb_show_usage();
-+ }
-+
-+ for(i = 1; i < argc; i++)
-+ {
-+ if(sscanf(argv[i], "%d", &part) == 1)
-+ continue;
-+
-+ fd = open(argv[i], 0, 0);
-+ if (fd >= 0)
-+ {
-+ ioctl(fd, RAID_AUTORUN, part);
-+ close(fd);
-+ } else
-+ {
-+ printf("Error: Failed to open %s!\n", argv[i]);
-+ retval=1;
-+ }
-+
-+ part = 0;
-+ }
-+
-+ return retval;
-+}
---
-1.7.10.2
-
diff --git a/patches/busybox/1.20.1/busybox-1.7.4-signal-hack.patch b/patches/busybox/1.20.1/busybox-1.7.4-signal-hack.patch
deleted file mode 100644
index ba11830..0000000
--- a/patches/busybox/1.20.1/busybox-1.7.4-signal-hack.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-workaround while we get it fixed upstream
-
-http://bugs.gentoo.org/201114
-
---- libbb/u_signal_names.c
-+++ libbb/u_signal_names.c
-@@ -66,7 +66,7 @@
- #ifdef SIGTERM
- [SIGTERM ] = "TERM",
- #endif
--#ifdef SIGSTKFLT
-+#if defined(SIGSTKFLT) && SIGSTKFLT < 32
- [SIGSTKFLT] = "STKFLT",
- #endif
- #ifdef SIGCHLD
-@@ -90,10 +90,10 @
- #ifdef SIGURG
- [SIGURG ] = "URG",
- #endif
--#ifdef SIGXCPU
-+#if defined(SIGXCPU) && SIGXCPU < 32
- [SIGXCPU ] = "XCPU",
- #endif
--#ifdef SIGXFSZ
-+#if defined(SIGXFSZ) && SIGXFSZ < 32
- [SIGXFSZ ] = "XFSZ",
- #endif
- #ifdef SIGVTALRM
diff --git a/patches/busybox/1.20.2/1.18.1-openvt.diff b/patches/busybox/1.20.2/1.18.1-openvt.diff
deleted file mode 100644
index b8a9f8a..0000000
--- a/patches/busybox/1.20.2/1.18.1-openvt.diff
+++ /dev/null
@@ -1,19 +0,0 @@
-Based on:
-
-> Allow a slightly wider range of valid vt numbers. Forward-ported from Gentoo
-> Busybox 1.1.3.
-
-> The previous spin of this patch on 1.1.3 had a 'wait(NULL);' right before
-> return EXIT_SUCCESS. I don't think it's needed anymore, so I left it out.
-
---- a/console-tools/openvt.c 2010-11-22 22:24:58.000000000 +0200
-+++ b/console-tools/openvt.c 2010-11-29 15:32:18.000000000 +0200
-@@ -124,7 +124,7 @@ int openvt_main(int argc UNUSED_PARAM, c
-
- if (flags & OPT_c) {
- /* Check for illegal vt number: < 1 or > 63 */
-- vtno = xatou_range(str_c, 1, 63);
-+ vtno = xatou_range(str_c, 0, 63);
- } else {
- vtno = find_free_vtno();
- }
diff --git a/patches/busybox/1.20.2/busybox-1.20.1-mdstart.patch b/patches/busybox/1.20.2/busybox-1.20.1-mdstart.patch
deleted file mode 100644
index 5ca3eca..0000000
--- a/patches/busybox/1.20.2/busybox-1.20.1-mdstart.patch
+++ /dev/null
@@ -1,130 +0,0 @@
-From d1f76c9546758611bcadd6ad10fc0c4c1ceb14ee Mon Sep 17 00:00:00 2001
-From: Sebastian Pipping <sebastian@pipping.org>
-Date: Sun, 10 Jun 2012 19:05:38 +0200
-Subject: [PATCH] Port mdstart patch from busybox 1.19.3 to 1.20.1
-
----
- include/applets.src.h | 1 +
- util-linux/Config.src | 7 ++++++
- util-linux/Kbuild.src | 1 +
- util-linux/mdStart.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++
- 4 files changed, 75 insertions(+)
- create mode 100644 util-linux/mdStart.c
-
-diff --git a/include/applets.src.h b/include/applets.src.h
-index 252a060..0b199bc 100644
---- a/include/applets.src.h
-+++ b/include/applets.src.h
-@@ -239,6 +239,7 @@ IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP))
- IF_MAN(APPLET(man, BB_DIR_SBIN, BB_SUID_DROP))
- IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP))
- IF_MD5SUM(APPLET_NOEXEC(md5sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, md5sum))
-+IF_MDSTART(APPLET(mdstart, BB_DIR_SBIN, BB_SUID_DROP))
- IF_MICROCOM(APPLET(microcom, BB_DIR_USR_BIN, BB_SUID_DROP))
- IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, BB_DIR_BIN, BB_SUID_DROP, mkdir))
- IF_MKFS_VFAT(APPLET_ODDNAME(mkdosfs, mkfs_vfat, BB_DIR_SBIN, BB_SUID_DROP, mkfs_vfat))
-diff --git a/util-linux/Config.src b/util-linux/Config.src
-index 57a52ce..e07fe2b 100644
---- a/util-linux/Config.src
-+++ b/util-linux/Config.src
-@@ -404,6 +404,13 @@ config LSUSB
-
- This version uses sysfs (/sys/bus/usb/devices) only.
-
-+config MDSTART
-+ bool "mdstart"
-+ default n
-+ help
-+ Allows you to autostart /dev/md devices if using an initramfs to
-+ boot.
-+
- config MKSWAP
- bool "mkswap"
- default y
-diff --git a/util-linux/Kbuild.src b/util-linux/Kbuild.src
-index 468fc6b..0bc9a9b 100644
---- a/util-linux/Kbuild.src
-+++ b/util-linux/Kbuild.src
-@@ -24,6 +24,7 @@ lib-$(CONFIG_HWCLOCK) += hwclock.o
- lib-$(CONFIG_IPCRM) += ipcrm.o
- lib-$(CONFIG_IPCS) += ipcs.o
- lib-$(CONFIG_LOSETUP) += losetup.o
-+lib-$(CONFIG_MDSTART) += mdStart.o
- lib-$(CONFIG_LSPCI) += lspci.o
- lib-$(CONFIG_LSUSB) += lsusb.o
- lib-$(CONFIG_MKFS_EXT2) += mkfs_ext2.o
-diff --git a/util-linux/mdStart.c b/util-linux/mdStart.c
-new file mode 100644
-index 0000000..0c55bab
---- /dev/null
-+++ b/util-linux/mdStart.c
-@@ -0,0 +1,66 @@
-+/*
-+ * Linux 2.6(+) RAID Autostarter
-+ *
-+ * Copyright (C) 2005 by Tim Yamin <plasmaroo@gentoo.org> <plasm@roo.me.uk>
-+ * Copyright (C) 2012 by Sebastian Pipping <sebastian@pipping.org>
-+ *
-+ * This program is free software; you can redistribute it and/or modify
-+ * it under the terms of the GNU General Public License as published by
-+ * the Free Software Foundation; either version 2 of the License, or
-+ * (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-+ * General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-+ *
-+ */
-+
-+//usage:#define mdstart_trivial_usage
-+//usage: "[PARTITION] MD-NODE [[PARTITION] MD-NODE ...]"
-+//usage:
-+//usage:#define mdstart_full_usage "\n\n"
-+//usage: "Run the RAID_AUTORUN ioctl on the given MD number"
-+
-+#include <sys/types.h>
-+#include <sys/stat.h>
-+#include <fcntl.h>
-+#include <sys/ioctl.h>
-+#include <linux/major.h>
-+#include <linux/raid/md_u.h>
-+
-+extern int
-+mdstart_main(int argc, char *argv[])
-+{
-+ int i, fd, part = 0, retval = 0;
-+
-+ if(argc < 2)
-+ {
-+ bb_show_usage();
-+ }
-+
-+ for(i = 1; i < argc; i++)
-+ {
-+ if(sscanf(argv[i], "%d", &part) == 1)
-+ continue;
-+
-+ fd = open(argv[i], 0, 0);
-+ if (fd >= 0)
-+ {
-+ ioctl(fd, RAID_AUTORUN, part);
-+ close(fd);
-+ } else
-+ {
-+ printf("Error: Failed to open %s!\n", argv[i]);
-+ retval=1;
-+ }
-+
-+ part = 0;
-+ }
-+
-+ return retval;
-+}
---
-1.7.10.2
-
diff --git a/patches/busybox/1.20.2/busybox-1.20.2-bunzip2.patch b/patches/busybox/1.20.2/busybox-1.20.2-bunzip2.patch
deleted file mode 100644
index f46a4a5..0000000
--- a/patches/busybox/1.20.2/busybox-1.20.2-bunzip2.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -uNr busybox-1.20.2.orig/archival/libarchive/decompress_bunzip2.c busybox-1.20.2/archival/libarchive/decompress_bunzip2.c
---- busybox-1.20.2.orig/archival/libarchive/decompress_bunzip2.c 2014-01-20 11:16:01.817359481 +0100
-+++ busybox-1.20.2/archival/libarchive/decompress_bunzip2.c 2014-01-20 11:16:47.492875819 +0100
-@@ -440,7 +440,7 @@
- literal used is the one at the head of the mtfSymbol array.) */
- if (runPos != 0) {
- uint8_t tmp_byte;
-- if (dbufCount + runCnt >= dbufSize) return RETVAL_DATA_ERROR;
-+ if (dbufCount + runCnt > dbufSize) return RETVAL_DATA_ERROR;
- tmp_byte = symToByte[mtfSymbol[0]];
- byteCount[tmp_byte] += runCnt;
- while (--runCnt >= 0) dbuf[dbufCount++] = (uint32_t)tmp_byte;
diff --git a/patches/busybox/1.20.2/busybox-1.20.2-glibc-sys-resource.patch b/patches/busybox/1.20.2/busybox-1.20.2-glibc-sys-resource.patch
deleted file mode 100644
index f682d00..0000000
--- a/patches/busybox/1.20.2/busybox-1.20.2-glibc-sys-resource.patch
+++ /dev/null
@@ -1,109 +0,0 @@
-https://bugs.gentoo.org/424954
-
-From c5fe9f7b723f949457263ef8e22ab807d5b549ce Mon Sep 17 00:00:00 2001
-From: Mike Frysinger <vapier@gentoo.org>
-Date: Thu, 5 Jul 2012 23:19:09 -0400
-Subject: [PATCH] include sys/resource.h where needed
-
-We use functions from sys/resource.h in misc applets, but don't include
-the header. This breaks building with newer glibc versions, so add the
-include where needed.
-
-Signed-off-by: Mike Frysinger <vapier@gentoo.org>
----
- loginutils/passwd.c | 1 +
- miscutils/time.c | 1 +
- networking/inetd.c | 1 +
- networking/ntpd.c | 1 +
- networking/ntpd_simple.c | 1 +
- runit/chpst.c | 1 +
- shell/shell_common.c | 1 +
- 7 files changed, 7 insertions(+)
-
-diff --git a/loginutils/passwd.c b/loginutils/passwd.c
-index b83db00..a7006f0 100644
---- a/loginutils/passwd.c
-+++ b/loginutils/passwd.c
-@@ -15,6 +15,7 @@
-
- #include "libbb.h"
- #include <syslog.h>
-+#include <sys/resource.h> /* setrlimit */
-
- static void nuke_str(char *str)
- {
-diff --git a/miscutils/time.c b/miscutils/time.c
-index 945f15f..ffed386 100644
---- a/miscutils/time.c
-+++ b/miscutils/time.c
-@@ -16,6 +16,7 @@
- //usage: "\n -v Verbose"
-
- #include "libbb.h"
-+#include <sys/resource.h> /* getrusage */
-
- /* Information on the resources used by a child process. */
- typedef struct {
-diff --git a/networking/inetd.c b/networking/inetd.c
-index 1308d74..00baf69 100644
---- a/networking/inetd.c
-+++ b/networking/inetd.c
-@@ -165,6 +165,7 @@
- //usage: "\n (default: 0 - disabled)"
-
- #include <syslog.h>
-+#include <sys/resource.h> /* setrlimit */
- #include <sys/un.h>
-
- #include "libbb.h"
-diff --git a/networking/ntpd.c b/networking/ntpd.c
-index 72e9d0b..5b92db6 100644
---- a/networking/ntpd.c
-+++ b/networking/ntpd.c
-@@ -46,6 +46,7 @@
- #include "libbb.h"
- #include <math.h>
- #include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */
-+#include <sys/resource.h> /* setpriority */
- #include <sys/timex.h>
- #ifndef IPTOS_LOWDELAY
- # define IPTOS_LOWDELAY 0x10
-diff --git a/networking/ntpd_simple.c b/networking/ntpd_simple.c
-index 4ad44e4..1b7c66b 100644
---- a/networking/ntpd_simple.c
-+++ b/networking/ntpd_simple.c
-@@ -7,6 +7,7 @@
- */
- #include "libbb.h"
- #include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */
-+#include <sys/resource.h> /* setpriority */
- #ifndef IPTOS_LOWDELAY
- # define IPTOS_LOWDELAY 0x10
- #endif
-diff --git a/runit/chpst.c b/runit/chpst.c
-index ac296ba..ed72c8b 100644
---- a/runit/chpst.c
-+++ b/runit/chpst.c
-@@ -91,6 +91,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- //usage: "\n a SIGXCPU after N seconds"
-
- #include "libbb.h"
-+#include <sys/resource.h> /* getrlimit */
-
- /*
- Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit.
-diff --git a/shell/shell_common.c b/shell/shell_common.c
-index 51c92d6..780e27e 100644
---- a/shell/shell_common.c
-+++ b/shell/shell_common.c
-@@ -18,6 +18,7 @@
- */
- #include "libbb.h"
- #include "shell_common.h"
-+#include <sys/resource.h> /* getrlimit */
-
- const char defifsvar[] ALIGN1 = "IFS= \t\n";
-
---
-1.7.9.7
-
diff --git a/patches/busybox/1.20.2/busybox-1.7.4-signal-hack.patch b/patches/busybox/1.20.2/busybox-1.7.4-signal-hack.patch
deleted file mode 100644
index ba11830..0000000
--- a/patches/busybox/1.20.2/busybox-1.7.4-signal-hack.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-workaround while we get it fixed upstream
-
-http://bugs.gentoo.org/201114
-
---- libbb/u_signal_names.c
-+++ libbb/u_signal_names.c
-@@ -66,7 +66,7 @@
- #ifdef SIGTERM
- [SIGTERM ] = "TERM",
- #endif
--#ifdef SIGSTKFLT
-+#if defined(SIGSTKFLT) && SIGSTKFLT < 32
- [SIGSTKFLT] = "STKFLT",
- #endif
- #ifdef SIGCHLD
-@@ -90,10 +90,10 @
- #ifdef SIGURG
- [SIGURG ] = "URG",
- #endif
--#ifdef SIGXCPU
-+#if defined(SIGXCPU) && SIGXCPU < 32
- [SIGXCPU ] = "XCPU",
- #endif
--#ifdef SIGXFSZ
-+#if defined(SIGXFSZ) && SIGXFSZ < 32
- [SIGXFSZ ] = "XFSZ",
- #endif
- #ifdef SIGVTALRM
diff --git a/patches/busybox/1.26.0/1.18.1-openvt.diff b/patches/busybox/1.26.0/1.18.1-openvt.diff
deleted file mode 100644
index b8a9f8a..0000000
--- a/patches/busybox/1.26.0/1.18.1-openvt.diff
+++ /dev/null
@@ -1,19 +0,0 @@
-Based on:
-
-> Allow a slightly wider range of valid vt numbers. Forward-ported from Gentoo
-> Busybox 1.1.3.
-
-> The previous spin of this patch on 1.1.3 had a 'wait(NULL);' right before
-> return EXIT_SUCCESS. I don't think it's needed anymore, so I left it out.
-
---- a/console-tools/openvt.c 2010-11-22 22:24:58.000000000 +0200
-+++ b/console-tools/openvt.c 2010-11-29 15:32:18.000000000 +0200
-@@ -124,7 +124,7 @@ int openvt_main(int argc UNUSED_PARAM, c
-
- if (flags & OPT_c) {
- /* Check for illegal vt number: < 1 or > 63 */
-- vtno = xatou_range(str_c, 1, 63);
-+ vtno = xatou_range(str_c, 0, 63);
- } else {
- vtno = find_free_vtno();
- }
diff --git a/patches/busybox/1.26.0/busybox-1.20.2-modprobe.patch b/patches/busybox/1.26.0/busybox-1.20.2-modprobe.patch
deleted file mode 100644
index 491eb05..0000000
--- a/patches/busybox/1.26.0/busybox-1.20.2-modprobe.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff --git a/modutils/modprobe.c b/modutils/modprobe.c
-index fb6c659..11fa521 100644
---- a/modutils/modprobe.c
-+++ b/modutils/modprobe.c
-@@ -413,7 +413,7 @@ static int do_modprobe(struct module_entry *m)
- rc = 0;
- while (m->deps) {
- struct module_entry *m2;
-- char *fn, *options;
-+ char *fn, *options, *path;
-
- rc = 0;
- fn = llist_pop(&m->deps); /* we leak it */
-@@ -460,7 +460,11 @@ static int do_modprobe(struct module_entry *m)
- continue;
- }
-
-- rc = bb_init_module(fn, options);
-+ path = xmalloc(strlen(fn) + strlen(CONFIG_DEFAULT_MODULES_DIR) + strlen(G.uts.release) + 3);
-+ sprintf(path, "%s/%s/%s", CONFIG_DEFAULT_MODULES_DIR, G.uts.release, fn);
-+
-+ rc = bb_init_module(path, options);
-+ free(path);
- DBG("loaded %s '%s', rc:%d", fn, options, rc);
- if (rc == EEXIST)
- rc = 0;
diff --git a/patches/busybox/1.26.0/busybox-1.7.4-signal-hack.patch b/patches/busybox/1.26.0/busybox-1.7.4-signal-hack.patch
deleted file mode 100644
index ba11830..0000000
--- a/patches/busybox/1.26.0/busybox-1.7.4-signal-hack.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-workaround while we get it fixed upstream
-
-http://bugs.gentoo.org/201114
-
---- libbb/u_signal_names.c
-+++ libbb/u_signal_names.c
-@@ -66,7 +66,7 @@
- #ifdef SIGTERM
- [SIGTERM ] = "TERM",
- #endif
--#ifdef SIGSTKFLT
-+#if defined(SIGSTKFLT) && SIGSTKFLT < 32
- [SIGSTKFLT] = "STKFLT",
- #endif
- #ifdef SIGCHLD
-@@ -90,10 +90,10 @
- #ifdef SIGURG
- [SIGURG ] = "URG",
- #endif
--#ifdef SIGXCPU
-+#if defined(SIGXCPU) && SIGXCPU < 32
- [SIGXCPU ] = "XCPU",
- #endif
--#ifdef SIGXFSZ
-+#if defined(SIGXFSZ) && SIGXFSZ < 32
- [SIGXFSZ ] = "XFSZ",
- #endif
- #ifdef SIGVTALRM
diff --git a/patches/busybox/1.18.1/1.18.1-openvt.diff b/patches/busybox/1.27.2/1.18.1-openvt.diff
index b8a9f8a..b8a9f8a 100644
--- a/patches/busybox/1.18.1/1.18.1-openvt.diff
+++ b/patches/busybox/1.27.2/1.18.1-openvt.diff
diff --git a/patches/busybox/1.18.1/README b/patches/busybox/1.27.2/README
index 654c172..654c172 100644
--- a/patches/busybox/1.18.1/README
+++ b/patches/busybox/1.27.2/README
diff --git a/patches/busybox/1.20.2/busybox-1.20.2-modprobe.patch b/patches/busybox/1.27.2/busybox-1.20.2-modprobe.patch
index 491eb05..491eb05 100644
--- a/patches/busybox/1.20.2/busybox-1.20.2-modprobe.patch
+++ b/patches/busybox/1.27.2/busybox-1.20.2-modprobe.patch
diff --git a/patches/busybox/1.26.0/busybox-1.26.0-mdstart.patch b/patches/busybox/1.27.2/busybox-1.26.0-mdstart.patch
index 35057b6..35057b6 100644
--- a/patches/busybox/1.26.0/busybox-1.26.0-mdstart.patch
+++ b/patches/busybox/1.27.2/busybox-1.26.0-mdstart.patch
diff --git a/patches/busybox/1.18.1/busybox-1.7.4-signal-hack.patch b/patches/busybox/1.27.2/busybox-1.7.4-signal-hack.patch
index ba11830..ba11830 100644
--- a/patches/busybox/1.18.1/busybox-1.7.4-signal-hack.patch
+++ b/patches/busybox/1.27.2/busybox-1.7.4-signal-hack.patch