[yocto] [PATCH][meta-cgl] ocfs2-tools: uprev to 1.8.4

rongqing.li at windriver.com rongqing.li at windriver.com
Thu Mar 17 23:16:00 PDT 2016


From: Roy Li <rongqing.li at windriver.com>

1. 1.8.4 asks libaio
2. remove 0002-ocfs2_fs.h-mount.ocfs2.c-fix-compile-error.patch
which has been merged into 1.8.4
3. remove the host contamination by replacing the host related path
in do_configure_prepend
4. add bash into RDEPENDS, since /etc/init.d/ocfs2 and /etc/init.d/o2cb
are the bash scripts

Signed-off-by: Roy Li <rongqing.li at windriver.com>
---
 ...cfs2_fs.h-mount.ocfs2.c-fix-compile-error.patch | 29 ----------------------
 .../{ocfs2-tools_1.6.4.bb => ocfs2-tools_1.8.4.bb} | 28 ++++++++++++++++-----
 2 files changed, 22 insertions(+), 35 deletions(-)
 delete mode 100644 meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools/0002-ocfs2_fs.h-mount.ocfs2.c-fix-compile-error.patch
 rename meta-cgl-common/recipes-cgl/ocfs2-tools/{ocfs2-tools_1.6.4.bb => ocfs2-tools_1.8.4.bb} (77%)

diff --git a/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools/0002-ocfs2_fs.h-mount.ocfs2.c-fix-compile-error.patch b/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools/0002-ocfs2_fs.h-mount.ocfs2.c-fix-compile-error.patch
deleted file mode 100644
index f07cdab..0000000
--- a/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools/0002-ocfs2_fs.h-mount.ocfs2.c-fix-compile-error.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 507f5cf55e25fd12d138cc28eb061c7e0b8615b8 Mon Sep 17 00:00:00 2001
-From: Li xin <lixin.fnst at cn.fujitsu.com>
-Date: Fri, 12 Dec 2014 16:14:10 +0900
-Subject: [PATCH 2/3] ocfs2_fs.h mount.ocfs2.c: fix compile error
-
-Upstream-Status: pending
-
-Signed-off-by: Li Xin <lixin.fnst at cn.fujitsu.com>
----
- include/ocfs2-kernel/ocfs2_fs.h | 2 +-
- mount.ocfs2/mount.ocfs2.c       | 4 +++-
- 2 files changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/include/ocfs2-kernel/ocfs2_fs.h b/include/ocfs2-kernel/ocfs2_fs.h
-index 2140bb3..00add7b 100644
---- a/include/ocfs2-kernel/ocfs2_fs.h
-+++ b/include/ocfs2-kernel/ocfs2_fs.h
-@@ -1311,7 +1311,7 @@ static inline int ocfs2_sprintf_system_inode_name(char *buf, int len,
- }
- 
- static inline void ocfs2_set_de_type(struct ocfs2_dir_entry *de,
--				    umode_t mode)
-+				     unsigned short mode)
- {
- 	de->file_type = ocfs2_type_by_mode[(mode & S_IFMT)>>S_SHIFT];
- }
--- 
-1.8.4.2
-
diff --git a/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.6.4.bb b/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.4.bb
similarity index 77%
rename from meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.6.4.bb
rename to meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.4.bb
index acc8379..18ef563 100644
--- a/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.6.4.bb
+++ b/meta-cgl-common/recipes-cgl/ocfs2-tools/ocfs2-tools_1.8.4.bb
@@ -12,20 +12,18 @@ SECTION = "System Environment/Base"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 
-SRC_URI = " \
-    https://oss.oracle.com/projects/${BPN}/dist/files/source/v1.6/${BP}.tar.gz \
-    file://0002-ocfs2_fs.h-mount.ocfs2.c-fix-compile-error.patch \
+SRC_URI = "git://oss.oracle.com/git/ocfs2-tools.git \
     file://0003-vendor-common-o2cb.ocf-add-new-conf-file.patch \
     file://cluster.conf.sample \
     file://o2cb.service \
     file://ocfs2.service \
 "
-SRC_URI[md5sum] = "2e94423507b63fcc08f93c094e789be8"
-SRC_URI[sha256sum] = "dda9db208312e3e5f4f55ee77e66e7b35b9cc10421bc02065a6c168e42b24755"
+SRCREV = "0b8be47d61dbdcd08d21c83f0b3993735b884ef9"
+S = "${WORKDIR}/git"
 
 inherit autotools-brokensep pkgconfig systemd
 
-DEPENDS = "corosync openais cluster-glue pacemaker libxml2 linux-libc-headers e2fsprogs"
+DEPENDS = "corosync openais cluster-glue pacemaker libxml2 linux-libc-headers e2fsprogs libaio"
 RDEPENDS_${PN} = "bash coreutils net-tools module-init-tools e2fsprogs chkconfig glib-2.0"
 ASNEEDED_pn-${PN} = ""
 PARALLEL_MAKE = ""
@@ -38,6 +36,22 @@ EXTRA_OECONF = " \
     --enable-dynamic-fsck=yes \
     --enable-dynamic-ctl=yes \
 "
+
+do_configure_prepend () {
+        # fix here or EXTRA_OECONF
+        sed -i -e '/^PYTHON_INCLUDES="-I/c\
+PYTHON_INCLUDES="-I=/usr/include/python${PYTHON_BASEVERSION}"' \
+                ${S}/pythondev.m4
+        sed -i  -e 's:PYTHON_PREFIX/lib/python:PYTHON_PREFIX/${baselib}/python:' \
+            -e 's:PYTHON_EXEC_PREFIX}/lib/python:PYTHON_EXEC_PREFIX}/${baselib}/python:' \
+                ${S}/python.m4
+
+        # fix the AIS_TRY_PATH which will search corosync|openais
+        # AIS_TRY_PATH=":/usr/lib64/:/usr/lib:/usr/local/lib64:/usr/local/lib"
+        sed -i -e '/^AIS_TRY_PATH=":\/usr\/lib64:/s;:;:=;g' ${S}/configure.in
+}
+
+
 do_compile_prepend() {
     for m in `find . -name "Makefile"` ; do
         sed -i -e "s at -I/usr/include at -I${STAGING_DIR_TARGET}/usr/include at g" $m
@@ -73,3 +87,5 @@ do_install() {
         install -m 755 vendor/common/o2cb.init ${D}/${libexecdir}/o2cb-helper
     fi
 }
+
+RDEPENDS_${PN} = "bash"
-- 
1.9.1




More information about the yocto mailing list