diff options
-rw-r--r-- | meta/packages/module-init-tools/files/module-init-tools-remove-index.patch | 14 | ||||
-rw-r--r-- | meta/packages/module-init-tools/module-init-tools_3.2.2.bb | 7 |
2 files changed, 18 insertions, 3 deletions
diff --git a/meta/packages/module-init-tools/files/module-init-tools-remove-index.patch b/meta/packages/module-init-tools/files/module-init-tools-remove-index.patch new file mode 100644 index 0000000000..c56532e007 --- /dev/null +++ b/meta/packages/module-init-tools/files/module-init-tools-remove-index.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | http://uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/package/module-init-tools/module-init-tools-remove-index.patch?rev=16782&view=auto | ||
2 | |||
3 | diff -ur module-init-tools-3.2.2/modprobe.c module-init-tools-3.2.2-patched/modprobe.c | ||
4 | --- module-init-tools-3.2.2/modprobe.c 2005-12-01 17:42:09.000000000 -0600 | ||
5 | +++ module-init-tools-3.2.2-patched/modprobe.c 2006-12-04 19:50:50.353237649 -0600 | ||
6 | @@ -270,7 +270,7 @@ | ||
7 | char *modname; | ||
8 | |||
9 | /* Ignore lines without : or which start with a # */ | ||
10 | - ptr = index(line, ':'); | ||
11 | + ptr = strchr(line, ':'); | ||
12 | if (ptr == NULL || line[strspn(line, "\t ")] == '#') | ||
13 | return 0; | ||
14 | |||
diff --git a/meta/packages/module-init-tools/module-init-tools_3.2.2.bb b/meta/packages/module-init-tools/module-init-tools_3.2.2.bb index 727bfaac1b..dcf9063219 100644 --- a/meta/packages/module-init-tools/module-init-tools_3.2.2.bb +++ b/meta/packages/module-init-tools/module-init-tools_3.2.2.bb | |||
@@ -3,7 +3,7 @@ removing kernel modules for Linux (versions 2.5.48 and above). It serves \ | |||
3 | the same function that the modutils package serves for Linux 2.4." | 3 | the same function that the modutils package serves for Linux 2.4." |
4 | LICENSE = "GPL" | 4 | LICENSE = "GPL" |
5 | SECTION = "base" | 5 | SECTION = "base" |
6 | PR = "r2" | 6 | PR = "r3" |
7 | 7 | ||
8 | PACKAGES =+ "module-init-tools-insmod-static module-init-tools-depmod" | 8 | PACKAGES =+ "module-init-tools-insmod-static module-init-tools-depmod" |
9 | RDEPENDS_${PN} += "module-init-tools-depmod" | 9 | RDEPENDS_${PN} += "module-init-tools-depmod" |
@@ -11,11 +11,12 @@ RDEPENDS_${PN} += "module-init-tools-depmod" | |||
11 | FILES_module-init-tools-depmod = "${sbindir}/depmod.26" | 11 | FILES_module-init-tools-depmod = "${sbindir}/depmod.26" |
12 | FILES_module-init-tools-insmod-static = "${sbindir}/insmod.static" | 12 | FILES_module-init-tools-insmod-static = "${sbindir}/insmod.static" |
13 | 13 | ||
14 | SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-${PV}.tar.bz2 \ | 14 | SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/kernel/module-init-tools/module-init-tools-${PV}.tar.bz2 \ |
15 | file://ignore_arch_directory;patch=1 \ | 15 | file://ignore_arch_directory;patch=1 \ |
16 | file://modutils_extension;patch=1 \ | 16 | file://modutils_extension;patch=1 \ |
17 | file://no_man_rebuild;patch=1 \ | 17 | file://no_man_rebuild;patch=1 \ |
18 | file://manpagesopt;patch=1 " | 18 | file://manpagesopt;patch=1 \ |
19 | file://module-init-tools-remove-index.patch;patch=1 " | ||
19 | S = "${WORKDIR}/module-init-tools-${PV}" | 20 | S = "${WORKDIR}/module-init-tools-${PV}" |
20 | 21 | ||
21 | EXTRA_OECONF = "--disable-manpages" | 22 | EXTRA_OECONF = "--disable-manpages" |