[oe-commits] Martin Jansa : lvm2: add patch for build with newer eglibc, drop empty do_stage()
git version control
git at git.openembedded.org
Fri Oct 22 10:39:32 UTC 2010
Module: openembedded.git
Branch: master
Commit: 3f307f24f6e74aa903e0f6479f06392f5460abf3
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3f307f24f6e74aa903e0f6479f06392f5460abf3
Author: Martin Jansa <Martin.Jansa at gmail.com>
Date: Fri Oct 22 12:31:16 2010 +0200
lvm2: add patch for build with newer eglibc, drop empty do_stage()
* also rename files to lvm2 for faster FILESPATH lookup
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
recipes/lvm2/lvm2.inc | 7 +------
.../lvm2/{files => lvm2}/crosscompile_fix.patch | 0
recipes/lvm2/lvm2/eglibc-2.12.patch | 11 +++++++++++
recipes/lvm2/{files => lvm2}/include-limits.patch | 0
recipes/lvm2/{files => lvm2}/lvm.conf | 0
recipes/lvm2/{files => lvm2}/palmpre/lvm.conf | 0
recipes/lvm2/lvm2_2.01.15.bb | 2 ++
7 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/recipes/lvm2/lvm2.inc b/recipes/lvm2/lvm2.inc
index da7cc9c..dd3f509 100644
--- a/recipes/lvm2/lvm2.inc
+++ b/recipes/lvm2/lvm2.inc
@@ -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/files/crosscompile_fix.patch b/recipes/lvm2/lvm2/crosscompile_fix.patch
similarity index 100%
rename from recipes/lvm2/files/crosscompile_fix.patch
rename to recipes/lvm2/lvm2/crosscompile_fix.patch
diff --git a/recipes/lvm2/lvm2/eglibc-2.12.patch b/recipes/lvm2/lvm2/eglibc-2.12.patch
new file mode 100644
index 0000000..0663bd6
--- /dev/null
+++ b/recipes/lvm2/lvm2/eglibc-2.12.patch
@@ -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)
+ {
diff --git a/recipes/lvm2/files/include-limits.patch b/recipes/lvm2/lvm2/include-limits.patch
similarity index 100%
rename from recipes/lvm2/files/include-limits.patch
rename to recipes/lvm2/lvm2/include-limits.patch
diff --git a/recipes/lvm2/files/lvm.conf b/recipes/lvm2/lvm2/lvm.conf
similarity index 100%
rename from recipes/lvm2/files/lvm.conf
rename to recipes/lvm2/lvm2/lvm.conf
diff --git a/recipes/lvm2/files/palmpre/lvm.conf b/recipes/lvm2/lvm2/palmpre/lvm.conf
similarity index 100%
rename from recipes/lvm2/files/palmpre/lvm.conf
rename to recipes/lvm2/lvm2/palmpre/lvm.conf
diff --git a/recipes/lvm2/lvm2_2.01.15.bb b/recipes/lvm2/lvm2_2.01.15.bb
index 0c4d0ea..5036475 100644
--- a/recipes/lvm2/lvm2_2.01.15.bb
+++ b/recipes/lvm2/lvm2_2.01.15.bb
@@ -1,5 +1,7 @@
require lvm2.inc
+SRC_URI += "file://eglibc-2.12.patch"
+
PR = "${INC_PR}.0"
SRC_URI[md5sum] = "c71654baff263254fb5a226624ee8ef3"
More information about the Openembedded-commits
mailing list