[yocto] [meta-cgl][PATCH 2/2] pacemaker: add missing header file

Armin Kuster akuster808 at gmail.com
Mon May 29 14:22:29 PDT 2017


From: Armin Kuster <akuster at mvista.com>

 mainloop.c:406:8: error: unknown type name 'qb_array_t'
|  static qb_array_t *gio_map = NULL;

Signed-off-by: Armin Kuster <akuster at mvista.com>
---
 .../pacemaker/pacemaker/fix_missing_qb_array.patch  | 21 +++++++++++++++++++++
 .../recipes-cgl/pacemaker/pacemaker_1.1.15.bb       |  1 +
 2 files changed, 22 insertions(+)
 create mode 100644 meta-cgl-common/recipes-cgl/pacemaker/pacemaker/fix_missing_qb_array.patch

diff --git a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker/fix_missing_qb_array.patch b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker/fix_missing_qb_array.patch
new file mode 100644
index 0000000..9f29ffa
--- /dev/null
+++ b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker/fix_missing_qb_array.patch
@@ -0,0 +1,21 @@
+fix missing header file
+
+ mainloop.c:406:8: error: unknown type name 'qb_array_t'
+|  static qb_array_t *gio_map = NULL;
+
+Upstream-status: Pending
+
+Signed-off-by: Armin Kuster <akuster at mvista.com>
+
+Index: pacemaker-Pacemaker-1.1.15/lib/common/mainloop.c
+===================================================================
+--- pacemaker-Pacemaker-1.1.15.orig/lib/common/mainloop.c
++++ pacemaker-Pacemaker-1.1.15/lib/common/mainloop.c
+@@ -32,6 +32,7 @@
+ #include <crm/common/xml.h>
+ #include <crm/common/mainloop.h>
+ #include <crm/common/ipcs.h>
++#include <qb/qbarray.h>
+ 
+ struct mainloop_child_s {
+     pid_t pid;
diff --git a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.15.bb b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.15.bb
index 17c9fe4..3e610ec 100755
--- a/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.15.bb
+++ b/meta-cgl-common/recipes-cgl/pacemaker/pacemaker_1.1.15.bb
@@ -20,6 +20,7 @@ SRC_URI = "https://github.com/ClusterLabs/${PN}/archive/Pacemaker-${PV}.zip \
            file://0003-pacemaker-fix-header-defs-lookup.patch \
            file://0004-pacemaker-do-not-build-help.patch \
            file://0005-pacemaker-do-not-execute-target-program-while-cross-.patch \
+           file://fix_missing_qb_array.patch \
            file://volatiles \
            file://tmpfiles \
           "
-- 
2.7.4




More information about the yocto mailing list