1 |
commit: 143052516ea404aaaba16e35dbf8a66387c87065 |
2 |
Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org> |
3 |
AuthorDate: Sun Jun 10 17:08:52 2012 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 10 17:08:52 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=14305251 |
7 |
|
8 |
Support busybox 1.20.1 (bug #419511) |
9 |
|
10 |
--- |
11 |
ChangeLog | 6 + |
12 |
patches/busybox/1.20.1/1.18.1-openvt.diff | 19 +++ |
13 |
.../busybox/1.20.1/busybox-1.20.1-mdstart.patch | 130 ++++++++++++++++++++ |
14 |
.../busybox/1.20.1/busybox-1.7.4-signal-hack.patch | 28 ++++ |
15 |
4 files changed, 183 insertions(+), 0 deletions(-) |
16 |
|
17 |
diff --git a/ChangeLog b/ChangeLog |
18 |
index 4b4e4b3..2b79051 100644 |
19 |
--- a/ChangeLog |
20 |
+++ b/ChangeLog |
21 |
@@ -5,6 +5,12 @@ |
22 |
# Distributed under the GPL v2 |
23 |
# $Id$ |
24 |
|
25 |
+ 10 Jun 2012; Sebastian Pipping <sping@g.o> |
26 |
+ +patches/busybox/1.20.1/1.18.1-openvt.diff, |
27 |
+ +patches/busybox/1.20.1/busybox-1.7.4-signal-hack.patch, |
28 |
+ +patches/busybox/1.20.1/busybox-1.20.1-mdstart.patch: |
29 |
+ Support busybox 1.20.1 (bug #419511) |
30 |
+ |
31 |
04 Jun 2012; Sebastian Pipping <sping@g.o> genkernel: |
32 |
Bump version to 3.4.34 |
33 |
|
34 |
|
35 |
diff --git a/patches/busybox/1.20.1/1.18.1-openvt.diff b/patches/busybox/1.20.1/1.18.1-openvt.diff |
36 |
new file mode 100644 |
37 |
index 0000000..b8a9f8a |
38 |
--- /dev/null |
39 |
+++ b/patches/busybox/1.20.1/1.18.1-openvt.diff |
40 |
@@ -0,0 +1,19 @@ |
41 |
+Based on: |
42 |
+ |
43 |
+> Allow a slightly wider range of valid vt numbers. Forward-ported from Gentoo |
44 |
+> Busybox 1.1.3. |
45 |
+ |
46 |
+> The previous spin of this patch on 1.1.3 had a 'wait(NULL);' right before |
47 |
+> return EXIT_SUCCESS. I don't think it's needed anymore, so I left it out. |
48 |
+ |
49 |
+--- a/console-tools/openvt.c 2010-11-22 22:24:58.000000000 +0200 |
50 |
++++ b/console-tools/openvt.c 2010-11-29 15:32:18.000000000 +0200 |
51 |
+@@ -124,7 +124,7 @@ int openvt_main(int argc UNUSED_PARAM, c |
52 |
+ |
53 |
+ if (flags & OPT_c) { |
54 |
+ /* Check for illegal vt number: < 1 or > 63 */ |
55 |
+- vtno = xatou_range(str_c, 1, 63); |
56 |
++ vtno = xatou_range(str_c, 0, 63); |
57 |
+ } else { |
58 |
+ vtno = find_free_vtno(); |
59 |
+ } |
60 |
|
61 |
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 |
62 |
new file mode 100644 |
63 |
index 0000000..5ca3eca |
64 |
--- /dev/null |
65 |
+++ b/patches/busybox/1.20.1/busybox-1.20.1-mdstart.patch |
66 |
@@ -0,0 +1,130 @@ |
67 |
+From d1f76c9546758611bcadd6ad10fc0c4c1ceb14ee Mon Sep 17 00:00:00 2001 |
68 |
+From: Sebastian Pipping <sebastian@×××××××.org> |
69 |
+Date: Sun, 10 Jun 2012 19:05:38 +0200 |
70 |
+Subject: [PATCH] Port mdstart patch from busybox 1.19.3 to 1.20.1 |
71 |
+ |
72 |
+--- |
73 |
+ include/applets.src.h | 1 + |
74 |
+ util-linux/Config.src | 7 ++++++ |
75 |
+ util-linux/Kbuild.src | 1 + |
76 |
+ util-linux/mdStart.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++ |
77 |
+ 4 files changed, 75 insertions(+) |
78 |
+ create mode 100644 util-linux/mdStart.c |
79 |
+ |
80 |
+diff --git a/include/applets.src.h b/include/applets.src.h |
81 |
+index 252a060..0b199bc 100644 |
82 |
+--- a/include/applets.src.h |
83 |
++++ b/include/applets.src.h |
84 |
+@@ -239,6 +239,7 @@ IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP)) |
85 |
+ IF_MAN(APPLET(man, BB_DIR_SBIN, BB_SUID_DROP)) |
86 |
+ IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
87 |
+ IF_MD5SUM(APPLET_NOEXEC(md5sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, md5sum)) |
88 |
++IF_MDSTART(APPLET(mdstart, BB_DIR_SBIN, BB_SUID_DROP)) |
89 |
+ IF_MICROCOM(APPLET(microcom, BB_DIR_USR_BIN, BB_SUID_DROP)) |
90 |
+ IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, BB_DIR_BIN, BB_SUID_DROP, mkdir)) |
91 |
+ IF_MKFS_VFAT(APPLET_ODDNAME(mkdosfs, mkfs_vfat, BB_DIR_SBIN, BB_SUID_DROP, mkfs_vfat)) |
92 |
+diff --git a/util-linux/Config.src b/util-linux/Config.src |
93 |
+index 57a52ce..e07fe2b 100644 |
94 |
+--- a/util-linux/Config.src |
95 |
++++ b/util-linux/Config.src |
96 |
+@@ -404,6 +404,13 @@ config LSUSB |
97 |
+ |
98 |
+ This version uses sysfs (/sys/bus/usb/devices) only. |
99 |
+ |
100 |
++config MDSTART |
101 |
++ bool "mdstart" |
102 |
++ default n |
103 |
++ help |
104 |
++ Allows you to autostart /dev/md devices if using an initramfs to |
105 |
++ boot. |
106 |
++ |
107 |
+ config MKSWAP |
108 |
+ bool "mkswap" |
109 |
+ default y |
110 |
+diff --git a/util-linux/Kbuild.src b/util-linux/Kbuild.src |
111 |
+index 468fc6b..0bc9a9b 100644 |
112 |
+--- a/util-linux/Kbuild.src |
113 |
++++ b/util-linux/Kbuild.src |
114 |
+@@ -24,6 +24,7 @@ lib-$(CONFIG_HWCLOCK) += hwclock.o |
115 |
+ lib-$(CONFIG_IPCRM) += ipcrm.o |
116 |
+ lib-$(CONFIG_IPCS) += ipcs.o |
117 |
+ lib-$(CONFIG_LOSETUP) += losetup.o |
118 |
++lib-$(CONFIG_MDSTART) += mdStart.o |
119 |
+ lib-$(CONFIG_LSPCI) += lspci.o |
120 |
+ lib-$(CONFIG_LSUSB) += lsusb.o |
121 |
+ lib-$(CONFIG_MKFS_EXT2) += mkfs_ext2.o |
122 |
+diff --git a/util-linux/mdStart.c b/util-linux/mdStart.c |
123 |
+new file mode 100644 |
124 |
+index 0000000..0c55bab |
125 |
+--- /dev/null |
126 |
++++ b/util-linux/mdStart.c |
127 |
+@@ -0,0 +1,66 @@ |
128 |
++/* |
129 |
++ * Linux 2.6(+) RAID Autostarter |
130 |
++ * |
131 |
++ * Copyright (C) 2005 by Tim Yamin <plasmaroo@g.o> <plasm@××××××.uk> |
132 |
++ * Copyright (C) 2012 by Sebastian Pipping <sebastian@×××××××.org> |
133 |
++ * |
134 |
++ * This program is free software; you can redistribute it and/or modify |
135 |
++ * it under the terms of the GNU General Public License as published by |
136 |
++ * the Free Software Foundation; either version 2 of the License, or |
137 |
++ * (at your option) any later version. |
138 |
++ * |
139 |
++ * This program is distributed in the hope that it will be useful, |
140 |
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
141 |
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
142 |
++ * General Public License for more details. |
143 |
++ * |
144 |
++ * You should have received a copy of the GNU General Public License |
145 |
++ * along with this program; if not, write to the Free Software |
146 |
++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
147 |
++ * |
148 |
++ */ |
149 |
++ |
150 |
++//usage:#define mdstart_trivial_usage |
151 |
++//usage: "[PARTITION] MD-NODE [[PARTITION] MD-NODE ...]" |
152 |
++//usage: |
153 |
++//usage:#define mdstart_full_usage "\n\n" |
154 |
++//usage: "Run the RAID_AUTORUN ioctl on the given MD number" |
155 |
++ |
156 |
++#include <sys/types.h> |
157 |
++#include <sys/stat.h> |
158 |
++#include <fcntl.h> |
159 |
++#include <sys/ioctl.h> |
160 |
++#include <linux/major.h> |
161 |
++#include <linux/raid/md_u.h> |
162 |
++ |
163 |
++extern int |
164 |
++mdstart_main(int argc, char *argv[]) |
165 |
++{ |
166 |
++ int i, fd, part = 0, retval = 0; |
167 |
++ |
168 |
++ if(argc < 2) |
169 |
++ { |
170 |
++ bb_show_usage(); |
171 |
++ } |
172 |
++ |
173 |
++ for(i = 1; i < argc; i++) |
174 |
++ { |
175 |
++ if(sscanf(argv[i], "%d", &part) == 1) |
176 |
++ continue; |
177 |
++ |
178 |
++ fd = open(argv[i], 0, 0); |
179 |
++ if (fd >= 0) |
180 |
++ { |
181 |
++ ioctl(fd, RAID_AUTORUN, part); |
182 |
++ close(fd); |
183 |
++ } else |
184 |
++ { |
185 |
++ printf("Error: Failed to open %s!\n", argv[i]); |
186 |
++ retval=1; |
187 |
++ } |
188 |
++ |
189 |
++ part = 0; |
190 |
++ } |
191 |
++ |
192 |
++ return retval; |
193 |
++} |
194 |
+-- |
195 |
+1.7.10.2 |
196 |
+ |
197 |
|
198 |
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 |
199 |
new file mode 100644 |
200 |
index 0000000..ba11830 |
201 |
--- /dev/null |
202 |
+++ b/patches/busybox/1.20.1/busybox-1.7.4-signal-hack.patch |
203 |
@@ -0,0 +1,28 @@ |
204 |
+workaround while we get it fixed upstream |
205 |
+ |
206 |
+http://bugs.gentoo.org/201114 |
207 |
+ |
208 |
+--- libbb/u_signal_names.c |
209 |
++++ libbb/u_signal_names.c |
210 |
+@@ -66,7 +66,7 @@ |
211 |
+ #ifdef SIGTERM |
212 |
+ [SIGTERM ] = "TERM", |
213 |
+ #endif |
214 |
+-#ifdef SIGSTKFLT |
215 |
++#if defined(SIGSTKFLT) && SIGSTKFLT < 32 |
216 |
+ [SIGSTKFLT] = "STKFLT", |
217 |
+ #endif |
218 |
+ #ifdef SIGCHLD |
219 |
+@@ -90,10 +90,10 @ |
220 |
+ #ifdef SIGURG |
221 |
+ [SIGURG ] = "URG", |
222 |
+ #endif |
223 |
+-#ifdef SIGXCPU |
224 |
++#if defined(SIGXCPU) && SIGXCPU < 32 |
225 |
+ [SIGXCPU ] = "XCPU", |
226 |
+ #endif |
227 |
+-#ifdef SIGXFSZ |
228 |
++#if defined(SIGXFSZ) && SIGXFSZ < 32 |
229 |
+ [SIGXFSZ ] = "XFSZ", |
230 |
+ #endif |
231 |
+ #ifdef SIGVTALRM |