lvm2: add patch for build with newer eglibc, drop empty do_stage()
authorMartin Jansa <Martin.Jansa@gmail.com>
Fri, 22 Oct 2010 10:31:16 +0000 (12:31 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Fri, 22 Oct 2010 10:35:05 +0000 (12:35 +0200)
* also rename files to lvm2 for faster FILESPATH lookup

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/lvm2/lvm2.inc
recipes/lvm2/lvm2/crosscompile_fix.patch [moved from recipes/lvm2/files/crosscompile_fix.patch with 100% similarity]
recipes/lvm2/lvm2/eglibc-2.12.patch [new file with mode: 0644]
recipes/lvm2/lvm2/include-limits.patch [moved from recipes/lvm2/files/include-limits.patch with 100% similarity]
recipes/lvm2/lvm2/lvm.conf [moved from recipes/lvm2/files/lvm.conf with 100% similarity]
recipes/lvm2/lvm2/palmpre/lvm.conf [moved from recipes/lvm2/files/palmpre/lvm.conf with 100% similarity]
recipes/lvm2/lvm2_2.01.15.bb

index da7cc9c..dd3f509 100644 (file)
@@ -2,7 +2,7 @@ SECTION = "utils"
 DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux."
 LICENSE = "GPL"
 DEPENDS = "device-mapper"
-INC_PR = "r2"
+INC_PR = "r3"
 
 S = "${WORKDIR}/LVM2.${PV}"
 SRC_URI = "ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \
@@ -15,11 +15,6 @@ EXTRA_OECONF = "--with-user= --with-group= --disable-o_direct"
 
 inherit autotools
 
-# We don't need to stage anything (the executables are no needed at build time by any
-# other recipe)
-do_stage() {
-}
-
 do_install_append() {
     # Install machine specific configuration file
     install -m 0644 ${WORKDIR}/lvm.conf ${D}${sysconfdir}/lvm/lvm.conf
diff --git a/recipes/lvm2/lvm2/eglibc-2.12.patch b/recipes/lvm2/lvm2/eglibc-2.12.patch
new file mode 100644 (file)
index 0000000..0663bd6
--- /dev/null
@@ -0,0 +1,11 @@
+diff -uNr LVM2.2.01.15.orig//lib/filters/filter-sysfs.c LVM2.2.01.15/lib/filters/filter-sysfs.c
+--- LVM2.2.01.15.orig//lib/filters/filter-sysfs.c      2005-03-10 23:34:17.000000000 +0100
++++ LVM2.2.01.15/lib/filters/filter-sysfs.c    2010-10-22 12:28:36.000000000 +0200
+@@ -20,6 +20,7 @@
+ #ifdef linux
+ #include <dirent.h>
++#include <sys/stat.h>
+ static int _locate_sysfs_blocks(const char *proc, char *path, size_t len)
+ {
index 0c4d0ea..5036475 100644 (file)
@@ -1,5 +1,7 @@
 require lvm2.inc
 
+SRC_URI += "file://eglibc-2.12.patch"
+
 PR = "${INC_PR}.0"
 
 SRC_URI[md5sum] = "c71654baff263254fb5a226624ee8ef3"