diff options
author | Qing He <qing.he@intel.com> | 2010-07-14 13:09:18 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-16 16:25:17 +0100 |
commit | dd05d05044017fb46b70f46503c76212aa606a9e (patch) | |
tree | 99520f0e19e1d9580a91c6d3e4b6462866fb4810 /meta | |
parent | e17f8f7e409f22767e620681e023a2c28039357d (diff) | |
download | poky-dd05d05044017fb46b70f46503c76212aa606a9e.tar.gz |
pcmciautils: upgrade to version 017
from 014
changes:
- put LEX=flex into EXTRA_OEMAKE, from openembedded project
- add RDEPENDS only to ${PN}, from openembedded project
- remove modalias_update patch, it's in upstream
- rebase the other two patches
- starting from 017 (or maybe 016), two helper binaries are put
into /usr/lib/udev instead of /sbin, adapt this change by adding
the new path into package
Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/pcmciautils/pcmciautils-017/makefile_fix.patch (renamed from meta/packages/pcmciautils/pcmciautils-014/makefile_fix.patch) | 67 | ||||
-rw-r--r-- | meta/packages/pcmciautils/pcmciautils-017/version_workaround.patch (renamed from meta/packages/pcmciautils/pcmciautils-014/version_workaround.patch) | 2 | ||||
-rw-r--r-- | meta/packages/pcmciautils/pcmciautils.inc | 9 | ||||
-rw-r--r-- | meta/packages/pcmciautils/pcmciautils/modalias_update.patch | 56 | ||||
-rw-r--r-- | meta/packages/pcmciautils/pcmciautils_014.bb | 9 | ||||
-rw-r--r-- | meta/packages/pcmciautils/pcmciautils_017.bb | 9 |
6 files changed, 55 insertions, 97 deletions
diff --git a/meta/packages/pcmciautils/pcmciautils-014/makefile_fix.patch b/meta/packages/pcmciautils/pcmciautils-017/makefile_fix.patch index f5bb64b9bd..82dbfa8699 100644 --- a/meta/packages/pcmciautils/pcmciautils-014/makefile_fix.patch +++ b/meta/packages/pcmciautils/pcmciautils-017/makefile_fix.patch | |||
@@ -1,21 +1,34 @@ | |||
1 | rebase the patch to 017, removing hardcoded path for true | ||
2 | as well. Removing of -D in install invocation is a little | ||
3 | questionable, is it some GNU extention? | ||
4 | |||
5 | 07/14/2010 - qhe, original patch note follows | ||
6 | |||
1 | Hardcoded paths are bad... | 7 | Hardcoded paths are bad... |
2 | 8 | ||
3 | Index: pcmciautils-014/Makefile | 9 | diff --git a/Makefile b/Makefile |
4 | =================================================================== | 10 | index 26f3e4b..31f0cdf 100644 |
5 | --- pcmciautils-014.orig/Makefile 2006-06-01 11:07:52.000000000 +0200 | 11 | --- a/Makefile |
6 | +++ pcmciautils-014/Makefile 2006-10-29 13:50:25.000000000 +0100 | 12 | +++ b/Makefile |
7 | @@ -69,7 +69,7 @@ | 13 | @@ -69,7 +69,7 @@ sbindir = ${exec_prefix}/sbin |
8 | mandir = ${prefix}/usr/share/man | 14 | mandir = ${prefix}/usr/share/man |
9 | srcdir = . | 15 | udevdir = ${prefix}/lib/udev |
10 | 16 | ||
11 | -INSTALL = /usr/bin/install -c | 17 | -INSTALL = /usr/bin/install -c |
12 | +INSTALL = install -c | 18 | +INSTALL = install -c |
13 | INSTALL_PROGRAM = ${INSTALL} | 19 | INSTALL_PROGRAM = ${INSTALL} |
14 | INSTALL_DATA = ${INSTALL} -m 644 | 20 | INSTALL_DATA = ${INSTALL} -m 644 |
15 | INSTALL_SCRIPT = ${INSTALL_PROGRAM} | 21 | INSTALL_SCRIPT = ${INSTALL_PROGRAM} |
16 | --- pcmciautils-014/Makefile~ 2007-05-25 19:40:39.000000000 +0200 | 22 | @@ -171,7 +171,7 @@ endif |
17 | +++ pcmciautils-014/Makefile 2007-05-25 19:40:39.000000000 +0200 | 23 | # if DEBUG is enabled, then we do not strip or optimize |
18 | @@ -258,28 +258,29 @@ | 24 | ifeq ($(strip $(DEBUG)),true) |
25 | CFLAGS += -O1 -g -DDEBUG -D_GNU_SOURCE | ||
26 | - STRIPCMD = /bin/true -Since_we_are_debugging | ||
27 | + STRIPCMD = true -Since_we_are_debugging | ||
28 | else | ||
29 | CFLAGS += $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE | ||
30 | STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment | ||
31 | @@ -264,30 +264,32 @@ clean: | ||
19 | 32 | ||
20 | install-hotplug: | 33 | install-hotplug: |
21 | $(INSTALL) -d $(DESTDIR)$(hotplugdir) | 34 | $(INSTALL) -d $(DESTDIR)$(hotplugdir) |
@@ -31,57 +44,55 @@ Index: pcmciautils-014/Makefile | |||
31 | - $(INSTALL_PROGRAM) -D hotplug/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent | 44 | - $(INSTALL_PROGRAM) -D hotplug/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent |
32 | - $(INSTALL_PROGRAM) -D hotplug/pcmcia_socket.rc $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc | 45 | - $(INSTALL_PROGRAM) -D hotplug/pcmcia_socket.rc $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc |
33 | + $(INSTALL_PROGRAM) hotplug/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent | 46 | + $(INSTALL_PROGRAM) hotplug/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent |
34 | + $(INSTALL_PROGRAM) hotplug/pcmcia_socket.rc $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc | 47 | + $(INSTALL_PROGRAM) hotplug/pcmcia_socket.rc $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc |
35 | 48 | ||
36 | uninstall-socket-hotplug: | 49 | uninstall-socket-hotplug: |
37 | - rm -f $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc | 50 | - rm -f $(DESTDIR)$(hotplugdir)/pcmcia_socket.agent $(DESTDIR)$(hotplugdir)/pcmcia_socket.rc |
51 | |||
38 | install-socket-tools: | 52 | install-socket-tools: |
39 | - $(INSTALL_PROGRAM) -D $(PCMCIA_SOCKET_STARTUP) $(DESTDIR)$(sbindir)/$(PCMCIA_SOCKET_STARTUP) | 53 | - $(INSTALL_PROGRAM) -D $(PCMCIA_SOCKET_STARTUP) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_SOCKET_STARTUP) |
40 | + $(INSTALL) -d $(DESTDIR)$(sbindir) | 54 | + $(INSTALL) -d $(DESTDIR)$(udevhelperdir) |
41 | + $(INSTALL_PROGRAM) $(PCMCIA_SOCKET_STARTUP) $(DESTDIR)$(sbindir)/$(PCMCIA_SOCKET_STARTUP) | 55 | + $(INSTALL_PROGRAM) $(PCMCIA_SOCKET_STARTUP) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_SOCKET_STARTUP) |
42 | 56 | ||
43 | uninstall-socket-tools: | 57 | uninstall-socket-tools: |
44 | - rm -f $(DESTDIR)$(sbindir)/$(PCMCIA_SOCKET_STARTUP) | 58 | - rm -f $(DESTDIR)$(udevhelperdir)/$(PCMCIA_SOCKET_STARTUP) |
45 | 59 | ||
46 | install-tools: | 60 | install-tools: |
47 | $(INSTALL) -d $(DESTDIR)$(sbindir) | 61 | $(INSTALL) -d $(DESTDIR)$(sbindir) |
48 | - $(INSTALL_PROGRAM) -D $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(PCCARDCTL) | 62 | - $(INSTALL_PROGRAM) -D $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(PCCARDCTL) |
49 | - $(INSTALL_PROGRAM) -D $(PCMCIA_CHECK_BROKEN_CIS) $(DESTDIR)$(sbindir)/$(PCMCIA_CHECK_BROKEN_CIS) | 63 | + $(INSTALL) -d $(DESTDIR)$(udevhelperdir) |
50 | + $(INSTALL_PROGRAM) $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(PCCARDCTL) | 64 | + $(INSTALL_PROGRAM) $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(PCCARDCTL) |
51 | + $(INSTALL_PROGRAM) $(PCMCIA_CHECK_BROKEN_CIS) $(DESTDIR)$(sbindir)/$(PCMCIA_CHECK_BROKEN_CIS) | ||
52 | $(SYMLINK) $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(LSPCMCIA) | 65 | $(SYMLINK) $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(LSPCMCIA) |
66 | - $(INSTALL_PROGRAM) -D $(PCMCIA_CHECK_BROKEN_CIS) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_CHECK_BROKEN_CIS) | ||
67 | + $(INSTALL_PROGRAM) $(PCMCIA_CHECK_BROKEN_CIS) $(DESTDIR)$(udevhelperdir)/$(PCMCIA_CHECK_BROKEN_CIS) | ||
53 | 68 | ||
54 | uninstall-tools: | 69 | uninstall-tools: |
55 | @@ -289,18 +290,20 @@ | 70 | - rm -f $(DESTDIR)$(sbindir)/$(PCCARDCTL) |
71 | @@ -296,22 +298,24 @@ uninstall-tools: | ||
56 | 72 | ||
57 | install-config: | 73 | install-config: |
58 | $(INSTALL) -d $(DESTDIR)$(pcmciaconfdir) | 74 | $(INSTALL) -d $(DESTDIR)$(pcmciaconfdir) |
59 | - $(INSTALL_DATA) -D config/config.opts $(DESTDIR)$(pcmciaconfdir)/config.opts | 75 | - $(INSTALL_DATA) -D config/config.opts $(DESTDIR)$(pcmciaconfdir)/config.opts |
60 | + $(INSTALL_DATA) config/config.opts $(DESTDIR)$(pcmciaconfdir)/config.opts | 76 | + $(INSTALL_DATA) config/config.opts $(DESTDIR)$(pcmciaconfdir)/config.opts |
77 | if [ -f config/config.opts.$(ARCH) ]; then \ | ||
78 | - $(INSTALL_DATA) -D config/config.opts.$(ARCH) $(DESTDIR)$(pcmciaconfdir)/config.opts; \ | ||
79 | + $(INSTALL_DATA) config/config.opts.$(ARCH) $(DESTDIR)$(pcmciaconfdir)/config.opts; \ | ||
80 | fi | ||
61 | 81 | ||
62 | uninstall-config: | 82 | uninstall-config: |
63 | # - rm -f $(DESTDIR)$(pcmciaconfdir)/config.opts | 83 | # - rm -f $(DESTDIR)$(pcmciaconfdir)/config.opts |
64 | 84 | ||
65 | install-udev: | 85 | install-udev: |
66 | - $(INSTALL_DATA) -D $(UDEV_RULES_FILE) $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules | 86 | - $(INSTALL_DATA) -D $(UDEV_RULES_FILE) $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules |
67 | + $(INSTALL) -d $(DESTDIR)$(udevrulesdir) | 87 | + $(INSTALL) -d $(DESTDIR)$(udevrulesdir) |
68 | + $(INSTALL_DATA) $(UDEV_RULES_FILE) $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules | 88 | + $(INSTALL_DATA) $(UDEV_RULES_FILE) $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules |
69 | 89 | ||
70 | uninstall-udev: | 90 | uninstall-udev: |
71 | - rm -f $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules | 91 | - rm -f $(DESTDIR)$(udevrulesdir)/60-pcmcia.rules |
72 | 92 | ||
73 | install-man: | 93 | install-man: |
74 | + $(INSTALL) -d $(DESTDIR)$(mandir)/man8 | ||
75 | $(INSTALL_DATA) -D man/man8/pccardctl.8 $(DESTDIR)$(mandir)/man8/pccardctl.8 | ||
76 | $(SYMLINK) pccardctl.8 $(DESTDIR)$(mandir)/man8/lspcmcia.8 | ||
77 | |||
78 | --- pcmciautils-014/Makefile~ 2007-05-25 19:43:01.000000000 +0200 | ||
79 | +++ pcmciautils-014/Makefile 2007-05-25 19:43:01.000000000 +0200 | ||
80 | @@ -304,7 +304,7 @@ | ||
81 | |||
82 | install-man: | ||
83 | $(INSTALL) -d $(DESTDIR)$(mandir)/man8 | ||
84 | - $(INSTALL_DATA) -D man/man8/pccardctl.8 $(DESTDIR)$(mandir)/man8/pccardctl.8 | 94 | - $(INSTALL_DATA) -D man/man8/pccardctl.8 $(DESTDIR)$(mandir)/man8/pccardctl.8 |
95 | + $(INSTALL) -d $(DESTDIR)$(mandir)/man8 | ||
85 | + $(INSTALL_DATA) man/man8/pccardctl.8 $(DESTDIR)$(mandir)/man8/pccardctl.8 | 96 | + $(INSTALL_DATA) man/man8/pccardctl.8 $(DESTDIR)$(mandir)/man8/pccardctl.8 |
86 | $(SYMLINK) pccardctl.8 $(DESTDIR)$(mandir)/man8/lspcmcia.8 | 97 | $(SYMLINK) pccardctl.8 $(DESTDIR)$(mandir)/man8/lspcmcia.8 |
87 | 98 | ||
diff --git a/meta/packages/pcmciautils/pcmciautils-014/version_workaround.patch b/meta/packages/pcmciautils/pcmciautils-017/version_workaround.patch index 962aa4e246..57efa68d31 100644 --- a/meta/packages/pcmciautils/pcmciautils-014/version_workaround.patch +++ b/meta/packages/pcmciautils/pcmciautils-017/version_workaround.patch | |||
@@ -10,7 +10,7 @@ Index: pcmciautils-013/src/pccardctl.c | |||
10 | 10 | ||
11 | static void print_header(void) { | 11 | static void print_header(void) { |
12 | - printf("pcmciautils %s\n", PCMCIAUTILS_VERSION); | 12 | - printf("pcmciautils %s\n", PCMCIAUTILS_VERSION); |
13 | + printf("pcmciautils 014\n"); | 13 | + printf("pcmciautils 017\n"); |
14 | printf("Copyright (C) 2004-2005 Dominik Brodowski, (C) 1999 David A. Hinds\n"); | 14 | printf("Copyright (C) 2004-2005 Dominik Brodowski, (C) 1999 David A. Hinds\n"); |
15 | printf("Report errors and bugs to <linux-pcmcia@lists.infradead.org>, please.\n"); | 15 | printf("Report errors and bugs to <linux-pcmcia@lists.infradead.org>, please.\n"); |
16 | } | 16 | } |
diff --git a/meta/packages/pcmciautils/pcmciautils.inc b/meta/packages/pcmciautils/pcmciautils.inc index 7adef38e02..750a2cf60b 100644 --- a/meta/packages/pcmciautils/pcmciautils.inc +++ b/meta/packages/pcmciautils/pcmciautils.inc | |||
@@ -2,9 +2,13 @@ DESCRIPTION = "Linux Kernel 2.6 Userland Utilities for the PCMCIA Subsystem" | |||
2 | HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html" | 2 | HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html" |
3 | SECTION = "kernel/userland" | 3 | SECTION = "kernel/userland" |
4 | PRIORITY = "optional" | 4 | PRIORITY = "optional" |
5 | |||
5 | LICENSE = "GPLv2" | 6 | LICENSE = "GPLv2" |
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
8 | |||
6 | DEPENDS = "sysfsutils flex-native" | 9 | DEPENDS = "sysfsutils flex-native" |
7 | RDEPENDS = "udev module-init-tools" | 10 | RDEPENDS_${PN} = "udev module-init-tools" |
11 | RCONFLICTS_${PN} += "pcmcia-cs" | ||
8 | 12 | ||
9 | SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2" | 13 | SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2" |
10 | 14 | ||
@@ -20,11 +24,10 @@ LD = "${CC}" | |||
20 | CFLAGS =+ "-I${S}/src" | 24 | CFLAGS =+ "-I${S}/src" |
21 | 25 | ||
22 | PARALLEL_MAKE = "" | 26 | PARALLEL_MAKE = "" |
23 | EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs'" | 27 | EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs' 'LEX=flex'" |
24 | 28 | ||
25 | do_install () { | 29 | do_install () { |
26 | oe_runmake 'DESTDIR=${D}' install | 30 | oe_runmake 'DESTDIR=${D}' install |
27 | } | 31 | } |
28 | 32 | ||
29 | CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts" | 33 | CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts" |
30 | RCONFLICTS_${PN} += "pcmcia-cs" | ||
diff --git a/meta/packages/pcmciautils/pcmciautils/modalias_update.patch b/meta/packages/pcmciautils/pcmciautils/modalias_update.patch deleted file mode 100644 index 5727442b59..0000000000 --- a/meta/packages/pcmciautils/pcmciautils/modalias_update.patch +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
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_014.bb b/meta/packages/pcmciautils/pcmciautils_014.bb deleted file mode 100644 index 139dc54c0b..0000000000 --- a/meta/packages/pcmciautils/pcmciautils_014.bb +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | require pcmciautils.inc | ||
2 | |||
3 | PR = "r2" | ||
4 | |||
5 | export LEX = "flex" | ||
6 | |||
7 | SRC_URI += "file://makefile_fix.patch;patch=1 \ | ||
8 | file://version_workaround.patch;patch=1 \ | ||
9 | file://modalias_update.patch;patch=1" | ||
diff --git a/meta/packages/pcmciautils/pcmciautils_017.bb b/meta/packages/pcmciautils/pcmciautils_017.bb new file mode 100644 index 0000000000..109b17d767 --- /dev/null +++ b/meta/packages/pcmciautils/pcmciautils_017.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require pcmciautils.inc | ||
2 | |||
3 | PR = "r0" | ||
4 | |||
5 | SRC_URI += "file://makefile_fix.patch \ | ||
6 | file://version_workaround.patch" | ||
7 | |||
8 | FILES_${PN}-dbg += "${libdir}/udev/.debug" | ||
9 | FILES_${PN} += "${libdir}/udev" | ||