All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-cgl-common][PATCH 0/3] pacemaker: some fix
@ 2017-12-29  6:04 mingli.yu
  2017-12-29  6:04 ` [meta-cgl-common][PATCH 1/3] pacemaker: add pacemaker-cli-utils to RDEPENDS mingli.yu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mingli.yu @ 2017-12-29  6:04 UTC (permalink / raw)
  To: yocto

1, Add pacemaker-cli-utils to RDEPENDS as
  many cluster resource agents manager
  commands such as crm_mon are packed into
  pacemaker-cli-utils.

2, Rework the patch as the logic is wrong previously
  as the STAGING_INCDIR is actually applicable in
  cross compiling env.

  Update the patch to locate the right OCF_ROOT_DIR
  in cross compiling env.

3, Set the default OCF_ROOT_DIR to $libdir/ocf
  to make the resource agents components more
  compatible 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [meta-cgl-common][PATCH 1/3] pacemaker: add pacemaker-cli-utils to RDEPENDS
  2017-12-29  6:04 [meta-cgl-common][PATCH 0/3] pacemaker: some fix mingli.yu
@ 2017-12-29  6:04 ` mingli.yu
  2017-12-29  6:04 ` [meta-cgl-common][PATCH 2/3] pacemaker: rework 0002-pacemaker-search-header-from-STAGING_INCDIR-to-walka.patch mingli.yu
  2017-12-29  6:04 ` [meta-cgl-common][PATCH 3/3] pacemaker: set OCF_ROOT_DIR to $libdir/ocf mingli.yu
  2 siblings, 0 replies; 4+ messages in thread
From: mingli.yu @ 2017-12-29  6:04 UTC (permalink / raw)
  To: yocto

From: Mingli Yu <Mingli.Yu@windriver.com>

* Add pacemaker-cli-utils to RDEPENDS as
  many cluster resource agents manager
  commands such as crm_mon are packed into
  pacemaker-cli-utils.

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
---
 meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb
index 37c3b53..6b0f453 100755
--- a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb
+++ b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb
@@ -86,7 +86,7 @@ FILES_${PN} += " ${datadir}/snmp                             \
                  ${libdir}/${PYTHON_DIR}/site-packages \
                "
 FILES_${PN}-dbg += "${libdir}/corosync/lcrso/.debug"
-RDEPENDS_${PN} = "bash python libqb"
+RDEPENDS_${PN} = "bash python libqb ${PN}-cli-utils"
 
 SYSTEMD_AUTO_ENABLE = "disable"
 
-- 
2.13.3



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [meta-cgl-common][PATCH 2/3] pacemaker: rework 0002-pacemaker-search-header-from-STAGING_INCDIR-to-walka.patch
  2017-12-29  6:04 [meta-cgl-common][PATCH 0/3] pacemaker: some fix mingli.yu
  2017-12-29  6:04 ` [meta-cgl-common][PATCH 1/3] pacemaker: add pacemaker-cli-utils to RDEPENDS mingli.yu
@ 2017-12-29  6:04 ` mingli.yu
  2017-12-29  6:04 ` [meta-cgl-common][PATCH 3/3] pacemaker: set OCF_ROOT_DIR to $libdir/ocf mingli.yu
  2 siblings, 0 replies; 4+ messages in thread
From: mingli.yu @ 2017-12-29  6:04 UTC (permalink / raw)
  To: yocto

From: Mingli Yu <Mingli.Yu@windriver.com>

* Rework the patch as the logic is wrong previously
  as the STAGING_INCDIR is actually applicable in
  cross compiling env.

  Update the patch to locate the right OCF_ROOT_DIR
  in cross compiling env.

* Add "rm -rf ${D}${localstatedir}/lib/heartbeat" to
  fix below error:
  Error: Transaction check error:
  file /var/lib/heartbeat/cores conflicts between attempted installs of pacemaker-1.1.16-r0.core2_64 and cluster-glue-1.0.12-r0.core2_64

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
---
 ...search-header-from-STAGING_INCDIR-to-walka.patch | 21 +++++++++++----------
 .../recipes-cgl/pacemaker/pacemaker_1.1.16.bb       |  3 ++-
 2 files changed, 13 insertions(+), 11 deletions(-)
 mode change 100755 => 100644 meta-cgl-common/recipes-cgl/pacemaker/pacemaker/0002-pacemaker-search-header-from-STAGING_INCDIR-to-walka.patch

diff --git a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker/0002-pacemaker-search-header-from-STAGING_INCDIR-to-walka.patch b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker/0002-pacemaker-search-header-from-STAGING_INCDIR-to-walka.patch
old mode 100755
new mode 100644
index 3104512..ee3c722
--- a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker/0002-pacemaker-search-header-from-STAGING_INCDIR-to-walka.patch
+++ b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker/0002-pacemaker-search-header-from-STAGING_INCDIR-to-walka.patch
@@ -1,10 +1,10 @@
-From 6bb056aa8359e33f9b6f8974e2cc8b518ca9fe96 Mon Sep 17 00:00:00 2001
+From f2ab529af7ab31d265dd3e9a53e074317982dffd Mon Sep 17 00:00:00 2001
 From: Li xin <lixin.fnst@cn.fujitsu.com>
-Date: Tue, 18 Aug 2015 12:34:32 +0900
+Date: Wed, 27 Dec 2017 05:20:45 +0000
 Subject: [PATCH] pacemaker: search header from STAGING_INCDIR to walkaround
  error
 
- ** -I/usr/include/ is unsafe for cross-compilation
+** -I/usr/include/ is unsafe for cross-compilation
 
  ... ...
 
@@ -15,24 +15,25 @@ Upstream-Status: pending
 
 Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
 Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
+Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
 ---
- configure.ac | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
+ configure.ac | 3 +++
+ 1 file changed, 3 insertions(+)
 
 diff --git a/configure.ac b/configure.ac
-index 08b4611..6fcd1aa 100644
+index 36ccb01..2eade3c 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -463,7 +463,8 @@ esac
- 
+@@ -483,6 +483,9 @@ esac
  dnl Eventually remove this
  if test "$cross_compiling" != "yes"; then
--   CPPFLAGS="$CPPFLAGS -I${prefix}/include/heartbeat"
+    CPPFLAGS="$CPPFLAGS -I${prefix}/include/heartbeat"
++else
 +   CFLAGS="$CFLAGS -I${STAGING_INCDIR}/heartbeat"
 +   CPPFLAGS="$CPPFLAGS -I${STAGING_INCDIR}/heartbeat"
  fi
  
  AC_SUBST(INIT_EXT)
 -- 
-1.8.4.2
+2.11.0
 
diff --git a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb
index 6b0f453..9ef29b9 100755
--- a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb
+++ b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb
@@ -54,6 +54,7 @@ do_install_append() {
     find ${D} -name "*.pyc" -exec rm {} \;
     rm -rf ${D}/${libdir}/service_crm.so
 
+    rm -rf ${D}${localstatedir}/lib/heartbeat
     rm -rf ${D}${localstatedir}/run
 }
 
@@ -82,7 +83,7 @@ RDEPENDS_${PN}-remote += "libqb bash"
 FILES_${PN} += " ${datadir}/snmp                             \
                  ${libdir}/corosync/lcrso/pacemaker.lcrso    \
                  ${libdir}/${PYTHON_DIR}/dist-packages/cts/  \
-                 ${nonarch_libdir}/ocf/resource.d/ \
+                 ${libdir}/ocf/resource.d/ \
                  ${libdir}/${PYTHON_DIR}/site-packages \
                "
 FILES_${PN}-dbg += "${libdir}/corosync/lcrso/.debug"
-- 
2.13.3



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [meta-cgl-common][PATCH 3/3] pacemaker: set OCF_ROOT_DIR to $libdir/ocf
  2017-12-29  6:04 [meta-cgl-common][PATCH 0/3] pacemaker: some fix mingli.yu
  2017-12-29  6:04 ` [meta-cgl-common][PATCH 1/3] pacemaker: add pacemaker-cli-utils to RDEPENDS mingli.yu
  2017-12-29  6:04 ` [meta-cgl-common][PATCH 2/3] pacemaker: rework 0002-pacemaker-search-header-from-STAGING_INCDIR-to-walka.patch mingli.yu
@ 2017-12-29  6:04 ` mingli.yu
  2 siblings, 0 replies; 4+ messages in thread
From: mingli.yu @ 2017-12-29  6:04 UTC (permalink / raw)
  To: yocto

From: Mingli Yu <Mingli.Yu@windriver.com>

* Set the default OCF_ROOT_DIR to $libdir/ocf
  to make the resource agents components more
  compatible

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
---
 .../pacemaker/set-OCF_ROOT_DIR-to-libdir-ocf.patch | 30 ++++++++++++++++++++++
 .../recipes-cgl/pacemaker/pacemaker_1.1.16.bb      |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 meta-cgl-common/recipes-cgl/pacemaker/pacemaker/set-OCF_ROOT_DIR-to-libdir-ocf.patch

diff --git a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker/set-OCF_ROOT_DIR-to-libdir-ocf.patch b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker/set-OCF_ROOT_DIR-to-libdir-ocf.patch
new file mode 100644
index 0000000..4898389
--- /dev/null
+++ b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker/set-OCF_ROOT_DIR-to-libdir-ocf.patch
@@ -0,0 +1,30 @@
+From 24c1ddc572df59061c1f4fcec6e764dcb3edac80 Mon Sep 17 00:00:00 2001
+From: Mingli Yu <Mingli.Yu@windriver.com>
+Date: Wed, 27 Dec 2017 07:14:21 +0000
+Subject: [PATCH] pacemaker: set OCF_ROOT_DIR to $libdir/ocf
+
+* Set the default OCF_ROOT_DIR to $libdir/ocf
+  to make the resource agents components more
+  compatible
+
+Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 2eade3c..ba290cc 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1152,7 +1152,7 @@ AC_SUBST(HA_VARLIBHBDIR)
+ 
+ AC_DEFINE_UNQUOTED(UUID_FILE,"$localstatedir/lib/heartbeat/hb_uuid", Location of Heartbeat's UUID file)
+ 
+-OCF_ROOT_DIR=`try_extract_header_define $GLUE_HEADER OCF_ROOT_DIR /usr/lib/ocf`
++OCF_ROOT_DIR=`try_extract_header_define $GLUE_HEADER OCF_ROOT_DIR $libdir/ocf`
+ if test "X$OCF_ROOT_DIR" = X; then
+   AC_MSG_ERROR(Could not locate OCF directory)
+ fi
+-- 
+2.11.0
+
diff --git a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb
index 9ef29b9..328bf88 100755
--- a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb
+++ b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.16.bb
@@ -21,6 +21,7 @@ SRC_URI = "https://github.com/ClusterLabs/${BPN}/archive/Pacemaker-${PV}.zip \
            file://0005-pacemaker-do-not-execute-target-program-while-cross-.patch \
            file://0006-pacemaker-do-not-use-libgnutls-config.patch \
            file://fix_missing_qb_array.patch \
+           file://set-OCF_ROOT_DIR-to-libdir-ocf.patch \
            file://volatiles \
            file://tmpfiles \
           "
-- 
2.13.3



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-29  6:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-29  6:04 [meta-cgl-common][PATCH 0/3] pacemaker: some fix mingli.yu
2017-12-29  6:04 ` [meta-cgl-common][PATCH 1/3] pacemaker: add pacemaker-cli-utils to RDEPENDS mingli.yu
2017-12-29  6:04 ` [meta-cgl-common][PATCH 2/3] pacemaker: rework 0002-pacemaker-search-header-from-STAGING_INCDIR-to-walka.patch mingli.yu
2017-12-29  6:04 ` [meta-cgl-common][PATCH 3/3] pacemaker: set OCF_ROOT_DIR to $libdir/ocf mingli.yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.