[oe] [PATCH] pciutils: fix generation of pci.ids.gz
Michael Smith
msmith at cbnco.com
Mon Aug 10 17:01:56 UTC 2009
Set ZLIB=yes to prevent auto-detection by the lib/configure script,
which only looks in /usr/include.
Also fix perms for pci.ids.gz.
Signed-off-by: Michael Smith <msmith at cbnco.com>
---
recipes/pciutils/pciutils_3.1.2.bb | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/recipes/pciutils/pciutils_3.1.2.bb b/recipes/pciutils/pciutils_3.1.2.bb
index f23e6dd..914fdf7 100644
--- a/recipes/pciutils/pciutils_3.1.2.bb
+++ b/recipes/pciutils/pciutils_3.1.2.bb
@@ -12,12 +12,13 @@ SRC_URI_append_nylon = "file://gcc-3-compatibility.patch;patch=1 "
PARALLEL_MAKE = ""
-PR ="r4"
+PR ="r5"
EXTRA_OEMAKE += "'STRIP = '"
export SHARED=yes
do_configure () {
+ export ZLIB=yes
(cd lib && ./configure ${datadir} ${PV} ${TARGET_OS} 2.4.21 ${TARGET_ARCH})
}
@@ -34,7 +35,7 @@ do_install () {
do_install_append () {
install -d ${D}/${datadir}
- install -m 6440 ${WORKDIR}/${PN}-${PV}/pci.ids ${D}/${datadir}
+ install -m 0644 ${WORKDIR}/${PN}-${PV}/pci.ids.gz ${D}/${datadir}
# The makefile does not install the development files:
# libpci.so pci.h header.h config.h types.h
@@ -59,4 +60,4 @@ do_stage () {
PACKAGES =+ "pciutils-ids"
-FILES_pciutils-ids="${datadir}/pci.ids"
+FILES_pciutils-ids="${datadir}/pci.ids.gz"
--
1.6.3
More information about the Openembedded-devel
mailing list