diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-06-26 08:15:10 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-06-26 08:15:10 +0000 |
commit | 80c6eb07610e8eed91afaa5ded84596e12b10fc4 (patch) | |
tree | 12f1cc13ee37ad2668f205989988f65d55a76e57 /meta/packages | |
parent | 38062aa45c935e4d42e342fdf69721937a643d0f (diff) | |
download | poky-80c6eb07610e8eed91afaa5ded84596e12b10fc4.tar.gz |
pcmciautils: added patch (from git) to not use MODALIAS in rules as it is deprecated since udev 080
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1997 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/pcmciautils/pcmciautils-013/modalias_update.patch | 56 | ||||
-rw-r--r-- | meta/packages/pcmciautils/pcmciautils_013.bb | 7 |
2 files changed, 60 insertions, 3 deletions
diff --git a/meta/packages/pcmciautils/pcmciautils-013/modalias_update.patch b/meta/packages/pcmciautils/pcmciautils-013/modalias_update.patch new file mode 100644 index 0000000000..5727442b59 --- /dev/null +++ b/meta/packages/pcmciautils/pcmciautils-013/modalias_update.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From: Miklos Vajna <vmiklos@frugalware.org> | ||
2 | Date: Fri, 3 Nov 2006 16:33:38 +0000 (-0500) | ||
3 | Subject: [PATCH] fix for udev-094 | ||
4 | X-Git-Url: http://git.kernel.org/?p=linux%2Fpcmcia%2Fpcmciautils.git;a=commitdiff_plain;h=3a5217492c1f95711b30f4e27c51563dff6ceb3e | ||
5 | |||
6 | [PATCH] fix for udev-094 | ||
7 | |||
8 | from udev's release notes: | ||
9 | |||
10 | "udev 094 | ||
11 | ======== | ||
12 | The built-in MODALIAS key and substitution is removed. | ||
13 | (...) | ||
14 | udev 080 | ||
15 | ======== | ||
16 | (...) | ||
17 | MODALIAS and $modalias is not needed and will be removed from one of | ||
18 | the next udev versions, replace it in all rules with ENV{MODALIAS} or | ||
19 | the sysfs "modalias" value." | ||
20 | |||
21 | here is a patch to fix this issue | ||
22 | |||
23 | Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> | ||
24 | Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> | ||
25 | --- | ||
26 | |||
27 | diff --git a/udev/rules-base b/udev/rules-base | ||
28 | index c6d14de..6ed3a27 100644 | ||
29 | --- a/udev/rules-base | ||
30 | +++ b/udev/rules-base | ||
31 | @@ -3,12 +3,12 @@ | ||
32 | # are so broken that we need to read out random bytes of it | ||
33 | # instead of the manufactor, card or product ID. Then the | ||
34 | # matching is done in userspace. | ||
35 | -ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \ | ||
36 | +ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \ | ||
37 | RUN+="/sbin/pcmcia-check-broken-cis" | ||
38 | |||
39 | # However, the "weak" matching by func_id is only allowed _after_ modprobe | ||
40 | # returns, so that "strong" matches have a higher priority. | ||
41 | -ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \ | ||
42 | +ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \ | ||
43 | RUN+="/bin/sh -c 'echo 1 > /sys/$devpath/allow_func_id_match'" | ||
44 | |||
45 | # PCMCIA sockets: | ||
46 | diff --git a/udev/rules-modprobe b/udev/rules-modprobe | ||
47 | index ea1f44a..a13b2ad 100644 | ||
48 | --- a/udev/rules-modprobe | ||
49 | +++ b/udev/rules-modprobe | ||
50 | @@ -1,3 +1,3 @@ | ||
51 | -# modprobe $modalias loads all possibly appropriate modules | ||
52 | -ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \ | ||
53 | - RUN+="/sbin/modprobe $modalias" | ||
54 | +# modprobe $env{MODALIAS} loads all possibly appropriate modules | ||
55 | +ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \ | ||
56 | + RUN+="/sbin/modprobe $env{MODALIAS}" | ||
diff --git a/meta/packages/pcmciautils/pcmciautils_013.bb b/meta/packages/pcmciautils/pcmciautils_013.bb index 8f10bb45da..5f4f4641f0 100644 --- a/meta/packages/pcmciautils/pcmciautils_013.bb +++ b/meta/packages/pcmciautils/pcmciautils_013.bb | |||
@@ -4,13 +4,14 @@ RDEPENDS = "udev module-init-tools" | |||
4 | HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html" | 4 | HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html" |
5 | SECTION = "kernel/userland" | 5 | SECTION = "kernel/userland" |
6 | PRIORITY = "optional" | 6 | PRIORITY = "optional" |
7 | PR = "r1" | ||
7 | 8 | ||
8 | SRC_URI = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2 \ | 9 | SRC_URI = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2 \ |
9 | file://makefile_fix.patch;patch=1 \ | 10 | file://makefile_fix.patch;patch=1 \ |
10 | file://version_workaround.patch;patch=1" | 11 | file://version_workaround.patch;patch=1 \ |
11 | S = "${WORKDIR}/pcmciautils-${PV}" | 12 | file://modalias_update.patch;patch=1" |
12 | 13 | ||
13 | PR = "r0" | 14 | S = "${WORKDIR}/pcmciautils-${PV}" |
14 | 15 | ||
15 | export HOSTCC = "${BUILD_CC}" | 16 | export HOSTCC = "${BUILD_CC}" |
16 | export etcdir = "${sysconfdir}" | 17 | export etcdir = "${sysconfdir}" |