[oe-commits] Simon Busch : lvm2.inc: add patch to fix building
git version control
git at git.openembedded.org
Mon Aug 16 13:56:38 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: c17c517bc1777e787adf6df2e11758283db7dbba
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c17c517bc1777e787adf6df2e11758283db7dbba
Author: Simon Busch <morphis at gravedo.de>
Date: Tue Jul 20 08:44:55 2010 +0000
lvm2.inc: add patch to fix building
lvm2 fails to build cause there is a include of limits.h missing. The patch adds the
include to the relevant file of the lvm2 source.
Signed-off-by: Simon Busch <morphis at gravedo.de>
Acked-by: Stefan Schmidt <stefan at datenfreihafen.org>
---
recipes/lvm2/files/include-limits.patch | 13 +++++++++++++
recipes/lvm2/lvm2.inc | 3 ++-
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/recipes/lvm2/files/include-limits.patch b/recipes/lvm2/files/include-limits.patch
new file mode 100644
index 0000000..4987766
--- /dev/null
+++ b/recipes/lvm2/files/include-limits.patch
@@ -0,0 +1,13 @@
+diff -rpN LVM2.2.01.15-orig/lib/locking/cluster_locking.c LVM2.2.01.15/lib/locking/cluster_locking.c
+*** LVM2.2.01.15-orig/lib/locking/cluster_locking.c 2010-03-16 20:16:45.806355964 +0100
+--- LVM2.2.01.15/lib/locking/cluster_locking.c 2010-03-16 20:19:08.946345762 +0100
+***************
+*** 29,34 ****
+--- 29,35 ----
+ #include <sys/socket.h>
+ #include <sys/un.h>
+ #include <unistd.h>
++ #include <limits.h>
+
+ #ifndef CLUSTER_LOCKING_INTERNAL
+ int lock_resource(struct cmd_context *cmd, const char *resource, int flags);
diff --git a/recipes/lvm2/lvm2.inc b/recipes/lvm2/lvm2.inc
index a7e37b5..080f5ea 100644
--- a/recipes/lvm2/lvm2.inc
+++ b/recipes/lvm2/lvm2.inc
@@ -6,7 +6,8 @@ INC_PR = "r2"
S = "${WORKDIR}/LVM2.${PV}"
SRC_URI = "ftp://sources.redhat.com/pub/lvm2/old/LVM2.${PV}.tgz \
- file://crosscompile_fix.patch"
+ file://crosscompile_fix.patch \
+ file://include-limits.patch"
# Unset user/group to unbreak install.
EXTRA_OECONF = "--with-user= --with-group= --disable-o_direct"
More information about the Openembedded-commits
mailing list