Skip to contentSkip to conversation

add openlmi and it's depends

PATCH Superseded Lei Maohui 3 participants 12 messages Aug 3, 2015 – Aug 14, 2015

v4 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

Lei Maohui

author
#0 lore raw

v4 cover add openlmi and it's depends

OpenLMI = Open Linux Management Infrastructure.
OpenLMI is open-source project aiming to improve management of Linux systems using WBEM standards.

Lei Maohui (6):
cmpi-bindings: add new recipe
konkretcmpi: add new recipe for openlmi
sblim-sfcCommon: add new recipe
sblim-sfcb: add new recipe for openlmi
cim-schema-exper: add new recipe for openlmi
openlmi: add openlmi and it's depends

 .../cim-schema/cim-schema-exper_2.39.0.bb          |  26 ++
 ...schema_2.40.0.bb => cim-schema-final_2.40.0.bb} |   0
 .../cim-schema/cim-schema/files/LICENSE            |  34 +++
 .../cmpi-bindings/0001-Fix-error.patch             |  26 ++
 .../cmpi-bindings/0001-Modify-cmakelist.patch      |  41 ++++
 .../0001-fix-build-error-when-the-swig-3.0.6.patch | 268 +++++++++++++++++++++
 .../0001-fix-the-build-error-when-python-3.0.patch |  31 +++
 .../cmpi-bindings-0.4.17-no-ruby-perl.patch        |  44 ++++
 .../cmpi-bindings-0.4.17-sblim-sigsegv.patch       |  22 ++
 .../cmpi-bindings-0.9.5-python-lib-dir.patch       |  17 ++
 .../cmpi-bindings/cmpi-bindings_git.bb             |  37 +++
 .../konkretcmpi/konkretcmpi-native_0.9.2.bb        |  27 +++
 ...-0.9.2-fix-returning-instance-from-method.patch |  38 +++
 .../konkretcmpi/konkretcmpi_0.9.2.bb               |  32 +++
 .../openlmi/openlmi-networking_0.3.1.bb            |  29 +++
 .../openlmi/openlmi-providers/0001-fix-error.patch |  26 ++
 .../openlmi/openlmi-providers_0.6.0.bb             |  54 +++++
 .../openlmi/openlmi-storage_0.8.1.bb               |  31 +++
 .../openlmi/openlmi-tools_0.10.5.bb                |  23 ++
 .../sblim-sfcCommon/sblim-sfcCommon_1.0.1.bb       |  25 ++
 .../recipes-extended/sblim-sfcb/files/sfcb.service |  11 +
 .../sblim-sfcb-1.3.15-fix-provider-debugging.patch |  12 +
 .../sblim-sfcb-1.3.16-maxMsgLen.patch              |  14 ++
 .../sblim-sfcb-1.3.16-multilib-man-cfg.patch       |  41 ++++
 ...blim-sfcb-1.3.9-sfcbrepos-schema-location.patch |  42 ++++
 .../sblim-sfcb-1.4.5-service.patch                 |  27 +++
 .../sblim-sfcb-1.4.8-default-ecdh-curve-name.patch |  26 ++
 .../sblim-sfcb/sblim-sfcb_1.4.8.bb                 |  82 +++++++
 28 files changed, 1086 insertions(+)
 create mode 100644 meta-networking/recipes-support/cim-schema/cim-schema-exper_2.39.0.bb
 rename meta-networking/recipes-support/cim-schema/{cim-schema_2.40.0.bb => cim-schema-final_2.40.0.bb} (100%)
 create mode 100644 meta-networking/recipes-support/cim-schema/cim-schema/files/LICENSE
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-error.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify-cmakelist.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-build-error-when-the-swig-3.0.6.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-the-build-error-when-python-3.0.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4.17-no-ruby-perl.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4.17-sblim-sigsegv.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.9.5-python-lib-dir.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb
 create mode 100644 meta-oe/recipes-extended/konkretcmpi/konkretcmpi-native_0.9.2.bb
 create mode 100644 meta-oe/recipes-extended/konkretcmpi/konkretcmpi/konkretcmpi-0.9.2-fix-returning-instance-from-method.patch
 create mode 100644 meta-oe/recipes-extended/konkretcmpi/konkretcmpi_0.9.2.bb
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-error.patch
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb
 create mode 100644 meta-oe/recipes-extended/sblim-sfcCommon/sblim-sfcCommon_1.0.1.bb
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/files/sfcb.service
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.15-fix-provider-debugging.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.16-maxMsgLen.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.16-multilib-man-cfg.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.9-sfcbrepos-schema-location.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.4.5-service.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.4.8-default-ecdh-curve-name.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.8.bb
Signature · 1 line
1.8.4.2
author
#1 lore raw

PATCH v4 1/6 cmpi-bindings: add new recipe

Cmpi-bindings is the dependence of openlmi.

---
 .../cmpi-bindings/0001-Fix-error.patch             |  26 ++
 .../cmpi-bindings/0001-Modify-cmakelist.patch      |  41 ++++
 .../0001-fix-build-error-when-the-swig-3.0.6.patch | 268 +++++++++++++++++++++
 .../0001-fix-the-build-error-when-python-3.0.patch |  31 +++
 .../cmpi-bindings-0.4.17-no-ruby-perl.patch        |  44 ++++
 .../cmpi-bindings-0.4.17-sblim-sigsegv.patch       |  22 ++
 .../cmpi-bindings-0.9.5-python-lib-dir.patch       |  17 ++
 .../cmpi-bindings/cmpi-bindings_git.bb             |  37 +++
 8 files changed, 486 insertions(+)
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-error.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify-cmakelist.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-build-error-when-the-swig-3.0.6.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-the-build-error-when-python-3.0.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4.17-no-ruby-perl.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4.17-sblim-sigsegv.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.9.5-python-lib-dir.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-error.patch new file +26 -0
new file mode 100644
index 0000000..d1a303c
@@ -0,0 +1,26 @@
+From b8e791ce93a467081fb1594b91841e2f57c634a0 Mon Sep 17 00:00:00 2001
+From: Qian Lei <[email protected]>
+Date: Fri, 16 Jan 2015 18:37:26 +0800
+Subject: [PATCH] Fix error
+
+Signed-off-by: Qian Lei <[email protected]>
+---
+ swig/python/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt
+index 3976296..8073fc8 100644
+--- a/swig/python/CMakeLists.txt
++++ b/swig/python/CMakeLists.txt
+@@ -27,7 +27,7 @@ SET( SWIG_INPUT "${CMAKE_CURRENT_SOURCE_DIR}/../cmpi.i" )
+ ADD_CUSTOM_COMMAND (
+    OUTPUT  ${SWIG_OUTPUT}
+    COMMAND ${CMAKE_COMMAND} -E echo_append "Creating wrapper code for Python ..."
+-   COMMAND ${SWIG_EXECUTABLE} -python -Wall -threads -features autodoc -o ${SWIG_OUTPUT} -outdir ${CMAKE_CURRENT_BINARY_DIR} -I/usr/include ${SWIG_INPUT}
++   COMMAND ${SWIG_EXECUTABLE} -python -Wall -threads -features autodoc -o ${SWIG_OUTPUT} -outdir ${CMAKE_CURRENT_BINARY_DIR} -I$ENV{STAGING_INCDIR} ${SWIG_INPUT}
+    COMMAND ${CMAKE_COMMAND} -E echo "Done."
+    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../*.i
+-- 
+1.8.3.1
+
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify-cmakelist.patch new file +41 -0

41 lines not on this page · raw message

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-build-error-when-the-swig-3.0.6.patch new file +268 -0

268 lines not on this page · raw message

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-the-build-error-when-python-3.0.patch new file +31 -0
new file mode 100644
index 0000000..0d6f029
@@ -0,0 +1,31 @@
+From 323ced03a66e6cd963d8277b66cfcc7dce740be7 Mon Sep 17 00:00:00 2001
+From: Lei Maohui <[email protected]>
+Date: Fri, 17 Jul 2015 01:33:43 -0700
+Subject: [PATCH] fix Xthe build error when python>3.0
+
+Signed-off-by: Lei Maohui <[email protected]>
+---
+ src/target_python.c | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/src/target_python.c b/src/target_python.c
+index 90b43a1..2b76c9e 100644
+--- a/src/target_python.c
++++ b/src/target_python.c
+@@ -167,7 +167,12 @@ PyGlobalInitialize(const CMPIBroker* broker, CMPIStatus* st)
+   
+   Py_SetProgramName("cmpi_swig");
+   Py_Initialize();
+-  SWIGEXPORT void SWIG_init(void);
++#if PY_VERSION_HEX >= 0x03000000
++SWIGEXPORT PyObject*
++#else
++  SWIGEXPORT void 
++#endif
++  SWIG_init(void);
+   SWIG_init();
+   cmpiMainPyThreadState = PyGILState_GetThisThreadState();
+   PyEval_ReleaseThread(cmpiMainPyThreadState); 
+-- 
+2.1.0
+
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4.17-no-ruby-perl.patch new file +44 -0

44 lines not on this page · raw message

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4.17-sblim-sigsegv.patch new file +22 -0
new file mode 100644
index 0000000..b993372
@@ -0,0 +1,22 @@
+Port from Fedora20
+
+Upstream-Status: Pending
+Signed-off-by: Qian Lei <[email protected]>
+
+diff -up cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py.orig cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py
+--- cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py.orig	2012-03-01 17:05:31.878367281 +0100
++++ cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py	2012-03-01 17:06:34.718110137 +0100
+@@ -350,10 +350,10 @@ class BrokerCIMOMHandle(object):
+             allow_null_ns = False
+         else:
+             allow_null_ns = True
+-            if self.broker.name() == 'RequestHandler':
++#            if self.broker.name() == 'RequestHandler':
+                 # Check sblim bug #2185410.
+-                if instance.path is not None:
+-                    instance.path.namespace = None
++#                if instance.path is not None:
++#                    instance.path.namespace = None
+         inst = self.proxy.pywbem2cmpi_inst(instance, allow_null_ns)
+         rv = self.broker.deliverIndication(self.ctx, ns, inst)
+         return rv
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.9.5-python-lib-dir.patch new file +17 -0
new file mode 100644
index 0000000..b6a51ec
@@ -0,0 +1,17 @@
+Port from Fedora20
+
+Upstream-Status: Pending
+Signed-off-by: Qian Lei <[email protected]>
+
+diff -up cmpi-bindings-0.9.5/swig/python/CMakeLists.txt.old cmpi-bindings-0.9.5/swig/python/CMakeLists.txt
+--- cmpi-bindings-0.9.5/swig/python/CMakeLists.txt.old	2013-08-06 15:57:03.576285764 +0200
++++ cmpi-bindings-0.9.5/swig/python/CMakeLists.txt	2013-08-06 15:57:14.891345941 +0200
+@@ -9,7 +9,7 @@ SET (BUILD_SHARED_LIBS ON)
+ 
+ FIND_PACKAGE(PythonInterp REQUIRED)
+ 
+-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib())" OUTPUT_VARIABLE PYTHON_LIB_DIR)
++EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(1))" OUTPUT_VARIABLE PYTHON_LIB_DIR)
+ 
+ IF (NOT PYTHON_SITE_DIR)
+   SET (PYTHON_SITE_DIR ${PYTHON_LIB_DIR})
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb new file +37 -0
new file mode 100644
index 0000000..370f35e
@@ -0,0 +1,37 @@
+SUMMARY = "Adapter to write and run CMPI-type CIM providers"
+DESCRIPTION = "CMPI-compliant provider interface for various languages via SWIG"
+HOMEPAGE = "http://github.com/kkaempf/cmpi-bindings"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b19ee058d2d5f69af45da98051d91064"
+SECTION = "Development/Libraries"
+DEPENDS = "swig-native python sblim-cmpi-devel"
+
+SRC_URI = "git://github.com/kkaempf/cmpi-bindings.git;protocol=http \
+           file://cmpi-bindings-0.4.17-no-ruby-perl.patch \
+           file://cmpi-bindings-0.4.17-sblim-sigsegv.patch \
+           file://cmpi-bindings-0.9.5-python-lib-dir.patch \
+           file://0001-Modify-cmakelist.patch \
+           file://0001-Fix-error.patch \
+           file://0001-fix-the-build-error-when-python-3.0.patch \
+           file://0001-fix-build-error-when-the-swig-3.0.6.patch \
+          "
+
+SRCREV = "93b6044f53bcfa79253d7af51a9c23ddd73f8486"
+S = "${WORKDIR}/git"
+
+inherit cmake pythonnative
+
+EXTRA_OECMAKE = "-DLIB='${baselib}'"
+
+do_configure_prepend() {
+    export HOST_SYS=${HOST_SYS}
+    export BUILD_SYS=${BUILD_SYS}
+    export STAGING_LIBDIR=${STAGING_LIBDIR}
+    export STAGING_INCDIR=${STAGING_INCDIR}
+    export ENV_INSTALL_PATH=${PYTHON_SITEPACKAGES_DIR}
+}
+
+FILES_${PN} =+"${libdir}/cmpi/libpyCmpiProvider.so ${PYTHON_SITEPACKAGES_DIR}/*"
+FILES_${PN}-dbg =+ "${libdir}/cmpi/.debug/libpyCmpiProvider.so"
+
+BBCLASSEXTEND = "native"
Signature · 1 line
1.8.4.2
#2 lore raw

Re: [meta-oe][PATCH v4 1/6] cmpi-bindings: add new recipe

Quoted 1 line · Lei Maohui

Cmpi-bindings is the dependence of openlmi.

Still fails to build in jenkins buidls:

| [100%] Building C object swig/python/CMakeFiles/pyCmpiProvider.dir/cmpi_wrap.o
| cd /home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/build/swig/python && /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/bin/i586-oe-linux/i586-oe-linux-gcc  -DCMPI_PLATFORM_LINUX_GENERIC_GNU -DCMPI_VERSION=200 -DpyCmpiProvider_EXPORTS -m32 -march=i586  --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86  -O2 -pipe -g -feliminate-unused-debug-types -g -Wall -fPIC -g -fPIC -I/home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/git/swig/python/.. -I/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/include/python3.4m    -o CMakeFiles/pyCmpiProvider.dir/cmpi_wrap.o   -c /home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/build/swig/python/cmpi_wrap.c
| In file included from /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/include/python3.4m/Python.h:50:0,
|                  from /home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/build/swig/python/cmpi_wrap.c:144:
| /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/include/python3.4m/pyport.h:814:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
|  #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
|   ^
| /home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/build/swig/python/cmpi_wrap.c: In function 'Target_DateTime':
| /home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/build/swig/python/cmpi_wrap.c:3179:17: warning: unused variable 'dtstr' [-Wunused-variable]
|      CMPIString *dtstr = datetime->ft->getStringFormat(datetime, &st);
|                  ^

Whole log in:
http://errors.yoctoproject.org:80/Errors/Build/7773/

Quoted 563 lines
---
 .../cmpi-bindings/0001-Fix-error.patch             |  26 ++
 .../cmpi-bindings/0001-Modify-cmakelist.patch      |  41 ++++
 .../0001-fix-build-error-when-the-swig-3.0.6.patch | 268 +++++++++++++++++++++
 .../0001-fix-the-build-error-when-python-3.0.patch |  31 +++
 .../cmpi-bindings-0.4.17-no-ruby-perl.patch        |  44 ++++
 .../cmpi-bindings-0.4.17-sblim-sigsegv.patch       |  22 ++
 .../cmpi-bindings-0.9.5-python-lib-dir.patch       |  17 ++
 .../cmpi-bindings/cmpi-bindings_git.bb             |  37 +++
 8 files changed, 486 insertions(+)
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-error.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify-cmakelist.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-build-error-when-the-swig-3.0.6.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-the-build-error-when-python-3.0.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4.17-no-ruby-perl.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4.17-sblim-sigsegv.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.9.5-python-lib-dir.patch
 create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-error.patch new file +26 -0
new file mode 100644
index 0000000..d1a303c
@@ -0,0 +1,26 @@
+From b8e791ce93a467081fb1594b91841e2f57c634a0 Mon Sep 17 00:00:00 2001
+From: Qian Lei <[email protected]>
+Date: Fri, 16 Jan 2015 18:37:26 +0800
+Subject: [PATCH] Fix error
+
+Signed-off-by: Qian Lei <[email protected]>
+---
+ swig/python/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt
+index 3976296..8073fc8 100644
+--- a/swig/python/CMakeLists.txt
++++ b/swig/python/CMakeLists.txt
+@@ -27,7 +27,7 @@ SET( SWIG_INPUT "${CMAKE_CURRENT_SOURCE_DIR}/../cmpi.i" )
+ ADD_CUSTOM_COMMAND (
+    OUTPUT  ${SWIG_OUTPUT}
+    COMMAND ${CMAKE_COMMAND} -E echo_append "Creating wrapper code for Python ..."
+-   COMMAND ${SWIG_EXECUTABLE} -python -Wall -threads -features autodoc -o ${SWIG_OUTPUT} -outdir ${CMAKE_CURRENT_BINARY_DIR} -I/usr/include ${SWIG_INPUT}
++   COMMAND ${SWIG_EXECUTABLE} -python -Wall -threads -features autodoc -o ${SWIG_OUTPUT} -outdir ${CMAKE_CURRENT_BINARY_DIR} -I$ENV{STAGING_INCDIR} ${SWIG_INPUT}
+    COMMAND ${CMAKE_COMMAND} -E echo "Done."
+    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../*.i
+-- 
+1.8.3.1
+
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify-cmakelist.patch new file +41 -0
new file mode 100644
index 0000000..92e5e56
@@ -0,0 +1,41 @@
+From 070822507befe7c1b8bb1be2d36cb12141d03b8f Mon Sep 17 00:00:00 2001
+From: Qian Lei <[email protected]>
+Date: Tue, 6 Jan 2015 18:38:32 +0800
+Subject: [PATCH] Change the install path in cmakelist
+
+Upstream-Status: Pending
+Signed-off-by: Qian Lei <[email protected]>
+---
+ swig/python/CMakeLists.txt | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt
+index 3976296..93c87c1 100644
+--- a/swig/python/CMakeLists.txt
++++ b/swig/python/CMakeLists.txt
+@@ -56,18 +56,18 @@ TARGET_LINK_LIBRARIES( ${NAME} util )
+ 
+ INSTALL(TARGETS ${NAME} LIBRARY DESTINATION ${CMPI_LIBRARY_DIR})
+ # .py: swig generated
+-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmpi.py DESTINATION ${PYTHON_SITE_DIR} )
++INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmpi.py DESTINATION $ENV{ENV_INSTALL_PATH} )
+ 
+ 
+ #
+ # cmpi_pywbem_bindings.py: provider implementation
+ #
+-INSTALL(FILES cmpi_pywbem_bindings.py DESTINATION ${PYTHON_SITE_DIR} )
++INSTALL(FILES cmpi_pywbem_bindings.py DESTINATION $ENV{ENV_INSTALL_PATH} )
+ #INSTALL(FILES Py_UnixProcessProvider.py DESTINATION /usr/lib/pycim )
+ 
+-INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c \"from py_compile import compile; compile('\$ENV{DESTDIR}${PYTHON_SITE_DIR}/cmpi.py', dfile='${PYTHON_SITE_DIR}/cmpi.py')\")")
++INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c \"from py_compile import compile; compile('\$ENV{DESTDIR}$ENV{ENV_INSTALL_PATH}/cmpi.py', dfile='\$ENV{ENV_INSTALL_PATH}/cmpi.py')\")")
+ 
+-INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c \"from py_compile import compile; compile('\$ENV{DESTDIR}${PYTHON_SITE_DIR}/cmpi_pywbem_bindings.py', dfile='${PYTHON_SITE_DIR}/cmpi_pywbem_bindings.py')\")")
++INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c \"from py_compile import compile; compile('\$ENV{DESTDIR}$ENV{ENV_INSTALL_PATH}/cmpi_pywbem_bindings.py', dfile='$ENV{ENV_INSTALL_PATH}/cmpi_pywbem_bindings.py')\")")
+ 
+ 
+ 
+-- 
+1.8.3.1
+
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-build-error-when-the-swig-3.0.6.patch new file +268 -0
new file mode 100644
index 0000000..18d27a1
@@ -0,0 +1,268 @@
+From 7479e3e13871a20d87f45ba4373a3a919071557a Mon Sep 17 00:00:00 2001
+From: Lei Maohui <[email protected]>
+Date: Sun, 26 Jul 2015 21:39:50 +0900
+Subject: [PATCH] fix build error when the swig = 3.0.6
+
+Signed-off-by: Lei Maohui <[email protected]>
+---
+ swig/cmpi.i           |  6 +++---
+ swig/cmpi_callbacks.i |  6 +++---
+ swig/cmpi_defs.i      | 10 +++++-----
+ swig/cmpi_types.i     | 44 ++++++++++++++++++++++----------------------
+ 4 files changed, 33 insertions(+), 33 deletions(-)
+
+diff --git a/swig/cmpi.i b/swig/cmpi.i
+index d8f9ac4..59d285b 100644
+--- a/swig/cmpi.i
++++ b/swig/cmpi.i
+@@ -980,11 +980,11 @@ release_select_filter_exp(select_filter_exp *sfe)
+ %apply SWIGTYPE *DISOWN { CMPIInstance *instance_disown };
+ %apply SWIGTYPE *DISOWN { CMPIObjectPath *path_disown };
+ 
+-# Definitions
++%# Definitions
+ %include "cmpi_defs.i"
+ 
+-# Data types
++%# Data types
+ %include "cmpi_types.i"
+ 
+-# Broker callbacks
++%# Broker callbacks
+ %include "cmpi_callbacks.i"
+diff --git a/swig/cmpi_callbacks.i b/swig/cmpi_callbacks.i
+index 4e93a9e..4bba76d 100644
+--- a/swig/cmpi_callbacks.i
++++ b/swig/cmpi_callbacks.i
+@@ -1,6 +1,6 @@
+-# cmpi_callbacks.i
++%# cmpi_callbacks.i
+ #
+-# swig bindings for CMPI broker callbacks
++%# swig bindings for CMPI broker callbacks
+ #
+ 
+ %nodefault _CMPIBroker;
+@@ -445,7 +445,7 @@ typedef struct _CMPIBroker {} CMPIBroker;
+ 
+ #-----------------------------------------------------
+ #
+-# TODO: CMPIMsgFileHandle stuff
++%# TODO: CMPIMsgFileHandle stuff
+ #
+   /*
+    * query: The select expression.
+diff --git a/swig/cmpi_defs.i b/swig/cmpi_defs.i
+index ec3e455..7dfb608 100644
+--- a/swig/cmpi_defs.i
++++ b/swig/cmpi_defs.i
+@@ -1,6 +1,6 @@
+-# cmpi_defs.i
++%# cmpi_defs.i
+ #
+-# swig bindings for CMPI constant definitions
++%# swig bindings for CMPI constant definitions
+ #
+ 
+ %nodefault CMPIData;
+@@ -78,7 +78,7 @@
+ 
+ #if defined(SWIGPYTHON)
+ #
+-# Conversion from list of python strings to null terminated char** array.
++%# Conversion from list of python strings to null terminated char** array.
+ #
+ 
+ %typemap(in) char ** 
+@@ -129,7 +129,7 @@
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIData
++%# CMPIData
+ #
+ 
+ %extend _CMPIData {
+@@ -199,7 +199,7 @@
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIStatus
++%# CMPIStatus
+ #
+ 
+ %extend _CMPIStatus {
+diff --git a/swig/cmpi_types.i b/swig/cmpi_types.i
+index f69ec16..062b948 100644
+--- a/swig/cmpi_types.i
++++ b/swig/cmpi_types.i
+@@ -29,15 +29,15 @@
+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *****************************************************************************/
+ 
+-# cmpift.i
++%# cmpift.i
+ #
+-# swig bindings for CMPI function tables
++%# swig bindings for CMPI function tables
+ #
+ 
+ #
+-# Prevent default con-/destructors for all types
+-# CMPI types are handled through function tables
+-# and the broker.
++%# Prevent default con-/destructors for all types
++%# CMPI types are handled through function tables
++%# and the broker.
+ #
+ 
+ %nodefault _CMPIError;
+@@ -102,7 +102,7 @@ typedef struct _CMPIDateTime {} CMPIDateTime;
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIException
++%# CMPIException
+ #
+ #-----------------------------------------------------
+ 
+@@ -177,7 +177,7 @@ typedef struct _CMPIException {} CMPIException;
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIError
++%# CMPIError
+ #
+ 
+ /*
+@@ -372,7 +372,7 @@ typedef struct _CMPIException {} CMPIException;
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIResult
++%# CMPIResult
+ #
+ 
+ /*
+@@ -409,7 +409,7 @@ typedef struct _CMPIException {} CMPIException;
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIObjectPath
++%# CMPIObjectPath
+ #
+ 
+ /*
+@@ -860,7 +860,7 @@ FIXME: if clone() is exposed, release() must also
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIInstance
++%# CMPIInstance
+ #
+ 
+ /*
+@@ -1166,7 +1166,7 @@ FIXME: if clone() is exposed, release() must also
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIArgs
++%# CMPIArgs
+ 
+ /*
+  * CMPI Arguments
+@@ -1282,7 +1282,7 @@ FIXME: if clone() is exposed, release() must also
+ 
+ #-----------------------------------------------------
+ #
+-# CMPISelectExp
++%# CMPISelectExp
+ 
+ /*
+  * This structure encompasses queries
+@@ -1343,7 +1343,7 @@ FIXME: if clone() is exposed, release() must also
+ 
+ #-----------------------------------------------------
+ #
+-# CMPISelectCond
++%# CMPISelectCond
+ 
+ /*
+  * Select conditions
+@@ -1372,7 +1372,7 @@ FIXME: if clone() is exposed, release() must also
+ 
+ #-----------------------------------------------------
+ #
+-# CMPISubCond
++%# CMPISubCond
+ 
+ /*
+  * Sub Conditions
+@@ -1384,7 +1384,7 @@ FIXME: if clone() is exposed, release() must also
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIPredicate
++%# CMPIPredicate
+ 
+ /*
+  * Predicate
+@@ -1413,7 +1413,7 @@ FIXME: if clone() is exposed, release() must also
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIEnumeration
++%# CMPIEnumeration
+ 
+ /*
+  * Enumeration provide a linked-list type access to multiple elements
+@@ -1474,7 +1474,7 @@ Python for compatibility */
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIArray
++%# CMPIArray
+ 
+ /*
+  * Array of equally-typed elements
+@@ -1546,11 +1546,11 @@ Python for compatibility */
+   }
+ }
+ 
+-#BOOKMARK
++%#BOOKMARK
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIString
++%# CMPIString
+ 
+ /*
+  * A string
+@@ -1573,7 +1573,7 @@ Python for compatibility */
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIContext
++%# CMPIContext
+ 
+ /*
+  * Context of the provider invocation
+@@ -1687,7 +1687,7 @@ Python for compatibility */
+ 
+ #-----------------------------------------------------
+ #
+-# CMPIDateTime
++%# CMPIDateTime
+ 
+ /*
+  * Date and Time
+@@ -1729,4 +1729,4 @@ Python for compatibility */
+   }
+ }
+ 
+-# EOF
++%# EOF
+-- 
+1.8.4.2
+
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-the-build-error-when-python-3.0.patch new file +31 -0
new file mode 100644
index 0000000..0d6f029
@@ -0,0 +1,31 @@
+From 323ced03a66e6cd963d8277b66cfcc7dce740be7 Mon Sep 17 00:00:00 2001
+From: Lei Maohui <[email protected]>
+Date: Fri, 17 Jul 2015 01:33:43 -0700
+Subject: [PATCH] fix Xthe build error when python>3.0
+
+Signed-off-by: Lei Maohui <[email protected]>
+---
+ src/target_python.c | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/src/target_python.c b/src/target_python.c
+index 90b43a1..2b76c9e 100644
+--- a/src/target_python.c
++++ b/src/target_python.c
+@@ -167,7 +167,12 @@ PyGlobalInitialize(const CMPIBroker* broker, CMPIStatus* st)
+   
+   Py_SetProgramName("cmpi_swig");
+   Py_Initialize();
+-  SWIGEXPORT void SWIG_init(void);
++#if PY_VERSION_HEX >= 0x03000000
++SWIGEXPORT PyObject*
++#else
++  SWIGEXPORT void 
++#endif
++  SWIG_init(void);
+   SWIG_init();
+   cmpiMainPyThreadState = PyGILState_GetThisThreadState();
+   PyEval_ReleaseThread(cmpiMainPyThreadState); 
+-- 
+2.1.0
+
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4.17-no-ruby-perl.patch new file +44 -0
new file mode 100644
index 0000000..a586dbd
@@ -0,0 +1,44 @@
+Port from Fedora20
+
+Upstream-Status: Pending
+Signed-off-by: Qian Lei <[email protected]>
+
+diff -up cmpi-bindings-0.5.2/swig/CMakeLists.txt.orig cmpi-bindings-0.5.2/swig/CMakeLists.txt
+--- cmpi-bindings-0.5.2/swig/CMakeLists.txt.orig	2012-05-04 15:47:18.000000000 +0200
++++ cmpi-bindings-0.5.2/swig/CMakeLists.txt	2012-05-07 09:59:33.639648918 +0200
+@@ -4,12 +4,12 @@
+ 
+ enable_testing()
+ 
+-FIND_PACKAGE(Ruby)
+-IF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
+-  MESSAGE(STATUS "Building Ruby...")
+-  ADD_SUBDIRECTORY(ruby)
+-  OPTION( BUILD_RUBY_GEM "Build Ruby GEM" YES )
+-ENDIF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
++#FIND_PACKAGE(Ruby)
++#IF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
++#  MESSAGE(STATUS "Building Ruby...")
++#  ADD_SUBDIRECTORY(ruby)
++#  OPTION( BUILD_RUBY_GEM "Build Ruby GEM" YES )
++#ENDIF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
+ 
+ FIND_PACKAGE(PythonLibs)
+ IF (PYTHON_LIBRARY)
+@@ -22,9 +22,9 @@ IF (PYTHON_LIBRARY)
+   ENDIF (PYTHON_LINK_LIBS)
+ ENDIF (PYTHON_LIBRARY)
+ 
+-FIND_PACKAGE(Perl)
+-IF (PERL_EXECUTABLE)
+-  MESSAGE(STATUS "Building Perl...")
+-  ADD_SUBDIRECTORY(perl)
+-ENDIF (PERL_EXECUTABLE)
+-    
+\ No newline at end of file
++#FIND_PACKAGE(Perl)
++#IF (PERL_EXECUTABLE)
++#  MESSAGE(STATUS "Building Perl...")
++#  ADD_SUBDIRECTORY(perl)
++#ENDIF (PERL_EXECUTABLE)
++    
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4.17-sblim-sigsegv.patch new file +22 -0
new file mode 100644
index 0000000..b993372
@@ -0,0 +1,22 @@
+Port from Fedora20
+
+Upstream-Status: Pending
+Signed-off-by: Qian Lei <[email protected]>
+
+diff -up cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py.orig cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py
+--- cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py.orig	2012-03-01 17:05:31.878367281 +0100
++++ cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py	2012-03-01 17:06:34.718110137 +0100
+@@ -350,10 +350,10 @@ class BrokerCIMOMHandle(object):
+             allow_null_ns = False
+         else:
+             allow_null_ns = True
+-            if self.broker.name() == 'RequestHandler':
++#            if self.broker.name() == 'RequestHandler':
+                 # Check sblim bug #2185410.
+-                if instance.path is not None:
+-                    instance.path.namespace = None
++#                if instance.path is not None:
++#                    instance.path.namespace = None
+         inst = self.proxy.pywbem2cmpi_inst(instance, allow_null_ns)
+         rv = self.broker.deliverIndication(self.ctx, ns, inst)
+         return rv
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.9.5-python-lib-dir.patch new file +17 -0
new file mode 100644
index 0000000..b6a51ec
@@ -0,0 +1,17 @@
+Port from Fedora20
+
+Upstream-Status: Pending
+Signed-off-by: Qian Lei <[email protected]>
+
+diff -up cmpi-bindings-0.9.5/swig/python/CMakeLists.txt.old cmpi-bindings-0.9.5/swig/python/CMakeLists.txt
+--- cmpi-bindings-0.9.5/swig/python/CMakeLists.txt.old	2013-08-06 15:57:03.576285764 +0200
++++ cmpi-bindings-0.9.5/swig/python/CMakeLists.txt	2013-08-06 15:57:14.891345941 +0200
+@@ -9,7 +9,7 @@ SET (BUILD_SHARED_LIBS ON)
+ 
+ FIND_PACKAGE(PythonInterp REQUIRED)
+ 
+-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib())" OUTPUT_VARIABLE PYTHON_LIB_DIR)
++EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(1))" OUTPUT_VARIABLE PYTHON_LIB_DIR)
+ 
+ IF (NOT PYTHON_SITE_DIR)
+   SET (PYTHON_SITE_DIR ${PYTHON_LIB_DIR})
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb new file +37 -0
new file mode 100644
index 0000000..370f35e
@@ -0,0 +1,37 @@
+SUMMARY = "Adapter to write and run CMPI-type CIM providers"
+DESCRIPTION = "CMPI-compliant provider interface for various languages via SWIG"
+HOMEPAGE = "http://github.com/kkaempf/cmpi-bindings"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b19ee058d2d5f69af45da98051d91064"
+SECTION = "Development/Libraries"
+DEPENDS = "swig-native python sblim-cmpi-devel"
+
+SRC_URI = "git://github.com/kkaempf/cmpi-bindings.git;protocol=http \
+           file://cmpi-bindings-0.4.17-no-ruby-perl.patch \
+           file://cmpi-bindings-0.4.17-sblim-sigsegv.patch \
+           file://cmpi-bindings-0.9.5-python-lib-dir.patch \
+           file://0001-Modify-cmakelist.patch \
+           file://0001-Fix-error.patch \
+           file://0001-fix-the-build-error-when-python-3.0.patch \
+           file://0001-fix-build-error-when-the-swig-3.0.6.patch \
+          "
+
+SRCREV = "93b6044f53bcfa79253d7af51a9c23ddd73f8486"
+S = "${WORKDIR}/git"
+
+inherit cmake pythonnative
+
+EXTRA_OECMAKE = "-DLIB='${baselib}'"
+
+do_configure_prepend() {
+    export HOST_SYS=${HOST_SYS}
+    export BUILD_SYS=${BUILD_SYS}
+    export STAGING_LIBDIR=${STAGING_LIBDIR}
+    export STAGING_INCDIR=${STAGING_INCDIR}
+    export ENV_INSTALL_PATH=${PYTHON_SITEPACKAGES_DIR}
+}
+
+FILES_${PN} =+"${libdir}/cmpi/libpyCmpiProvider.so ${PYTHON_SITEPACKAGES_DIR}/*"
+FILES_${PN}-dbg =+ "${libdir}/cmpi/.debug/libpyCmpiProvider.so"
+
+BBCLASSEXTEND = "native"
Signature · 7 lines
1.8.4.2

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw

Re: [meta-oe][PATCH v4 1/6] cmpi-bindings: add new recipe

Quoted 1 line · Martin Jansa

| /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/include/python3.4m/pyport.h:814:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

its accessing native sysroot for python platform detection. That package needs to be tought to build for cross env.

#4 lore raw

Re: [meta-oe][PATCH v4 1/6] cmpi-bindings: add new recipe

In reply to Martin Jansa

Hi Martin

Quoted 1 line

-I/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/include/python3.4

I didn't reproduce the error. I don't know why include the native path in your build environment.

I try to avoid this this error by adding "-DPYTHON_INCLUDE_PATH=${STAGING_INCDIR}/python${PYTHON_BASEVERSION}" Into EXTRA_OECMAKE.

I think it will work. I will resubmit these patches again.

Cheers
Lei

Quoted 710 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, August 06, 2015 12:56 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v4 1/6] cmpi-bindings: add new recipe

Quoted 1 line · Lei Maohui

Cmpi-bindings is the dependence of openlmi.

Still fails to build in jenkins buidls:

| [100%] Building C object swig/python/CMakeFiles/pyCmpiProvider.dir/cmpi_wrap.o | cd /home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/build/ swig/python && /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/bin/i586-oe-linux/i5 86-oe-linux-gcc -DCMPI_PLATFORM_LINUX_GENERIC_GNU -DCMPI_VERSION=200

(quoted diff) +0 -4
-DpyCmpiProvider_EXPORTS -m32 -march=i586
--sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86  -O2 -pipe -g
-feliminate-unused-debug-types -g -Wall -fPIC -g -fPIC
-I/home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/git/s

wig/python/.. -I/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/include/python3.4
m -o CMakeFiles/pyCmpiProvider.dir/cmpi_wrap.o -c
/home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/build/ swig/python/cmpi_wrap.c
| In file included from /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/include/python3.4 m/Python.h:50:0,
| from
/home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/build/ swig/python/cmpi_wrap.c:144:
| /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/include/python3.4 m/pyport.h:814:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

|  #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
|   ^
|

/home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/build/ swig/python/cmpi_wrap.c: In function 'Target_DateTime':
| /home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/cmpi-bindings/git-r0/build/ swig/python/cmpi_wrap.c:3179:17: warning: unused variable 'dtstr' [-Wunused-variable]
| CMPIString *dtstr = datetime->ft->getStringFormat(datetime, &st);
| ^

Whole log in:
http://errors.yoctoproject.org:80/Errors/Build/7773/

Quoted 7 lines
---
 .../cmpi-bindings/0001-Fix-error.patch             |  26 ++
 .../cmpi-bindings/0001-Modify-cmakelist.patch      |  41 ++++
 .../0001-fix-build-error-when-the-swig-3.0.6.patch | 268

+++++++++++++++++++++ .../0001-fix-the-build-error-when-python-3.0.patch | 31

+++

Quoted 42 lines
 .../cmpi-bindings-0.4.17-no-ruby-perl.patch        |  44 ++++
 .../cmpi-bindings-0.4.17-sblim-sigsegv.patch       |  22 ++
 .../cmpi-bindings-0.9.5-python-lib-dir.patch       |  17 ++
 .../cmpi-bindings/cmpi-bindings_git.bb             |  37 +++
 8 files changed, 486 insertions(+)
 create mode 100644

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-error.pa tch create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify-cmake list.patch create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-build-er ror-when-the-swig-3.0.6.patch create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-the-buil d-error-when-python-3.0.patch create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4 .17-no-ruby-perl.patch create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.4 .17-sblim-sigsegv.patch create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0.9 .5-python-lib-dir.patch create mode 100644 meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb

diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-error. patch b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-error. patch
new file mode 100644
index 0000000..d1a303c

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-er new file +10 -0
+++ ror.patch
@@ -0,0 +1,26 @@
+From b8e791ce93a467081fb1594b91841e2f57c634a0 Mon Sep 17 00:00:00
+2001
+From: Qian Lei <[email protected]>
+Date: Fri, 16 Jan 2015 18:37:26 +0800
+Subject: [PATCH] Fix error
+
+Signed-off-by: Qian Lei <[email protected]>
+---
+ swig/python/CMakeLists.txt | 2 +-

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-er line 19

Quoted 10 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-er new file +10 -0
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt
+index 3976296..8073fc8 100644
+--- a/swig/python/CMakeLists.txt
++++ b/swig/python/CMakeLists.txt
+@@ -27,7 +27,7 @@ SET( SWIG_INPUT
+"${CMAKE_CURRENT_SOURCE_DIR}/../cmpi.i" )  ADD_CUSTOM_COMMAND (
+    OUTPUT  ${SWIG_OUTPUT}
+    COMMAND ${CMAKE_COMMAND} -E echo_append "Creating wrapper code for

Python ..."

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-er line 20

Quoted 1 line
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-er new file +1 -0
+-   COMMAND ${SWIG_EXECUTABLE} -python -Wall -threads -features autodoc -o

${SWIG_OUTPUT} -outdir ${CMAKE_CURRENT_BINARY_DIR} -I/usr/include ${SWIG_INPUT}

Quoted 44 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Fix-er new file +9 -0
++   COMMAND ${SWIG_EXECUTABLE} -python -Wall -threads -features
++ autodoc -o ${SWIG_OUTPUT} -outdir ${CMAKE_CURRENT_BINARY_DIR}
++ -I$ENV{STAGING_INCDIR} ${SWIG_INPUT}
+    COMMAND ${CMAKE_COMMAND} -E echo "Done."
+    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../*.i
+--
+1.8.3.1
+

diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify-cma kelist.patch b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify-cma kelist.patch
new file mode 100644
index 0000000..92e5e56

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify new file +25 -0
+++ -cmakelist.patch
@@ -0,0 +1,41 @@
+From 070822507befe7c1b8bb1be2d36cb12141d03b8f Mon Sep 17 00:00:00
+2001
+From: Qian Lei <[email protected]>
+Date: Tue, 6 Jan 2015 18:38:32 +0800
+Subject: [PATCH] Change the install path in cmakelist
+
+Upstream-Status: Pending
+Signed-off-by: Qian Lei <[email protected]>
+---
+ swig/python/CMakeLists.txt | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt
+index 3976296..93c87c1 100644
+--- a/swig/python/CMakeLists.txt
++++ b/swig/python/CMakeLists.txt
+@@ -56,18 +56,18 @@ TARGET_LINK_LIBRARIES( ${NAME} util )
+
+ INSTALL(TARGETS ${NAME} LIBRARY DESTINATION ${CMPI_LIBRARY_DIR})  #
+.py: swig generated -INSTALL(FILES
+${CMAKE_CURRENT_BINARY_DIR}/cmpi.py DESTINATION ${PYTHON_SITE_DIR} )
++INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmpi.py DESTINATION
++$ENV{ENV_INSTALL_PATH} )
+

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify line 34

Quoted 10 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify new file +10 -0
+
+ #
+ # cmpi_pywbem_bindings.py: provider implementation  # -INSTALL(FILES
+cmpi_pywbem_bindings.py DESTINATION ${PYTHON_SITE_DIR} )
++INSTALL(FILES cmpi_pywbem_bindings.py DESTINATION
++$ENV{ENV_INSTALL_PATH} )
+ #INSTALL(FILES Py_UnixProcessProvider.py DESTINATION /usr/lib/pycim
+ )
+
+-INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c

\"from

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify line 38

Quoted 4 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify new file +4 -0
+py_compile import compile;
+compile('\$ENV{DESTDIR}${PYTHON_SITE_DIR}/cmpi.py',
+dfile='${PYTHON_SITE_DIR}/cmpi.py')\")")
++INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c

\"from

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify

Quoted 5 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify new file +5 -0
++py_compile import compile;
++compile('\$ENV{DESTDIR}$ENV{ENV_INSTALL_PATH}/cmpi.py',
++dfile='\$ENV{ENV_INSTALL_PATH}/cmpi.py')\")")
+
+-INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c

\"from

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify

Quoted 4 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify new file +4 -0
+py_compile import compile;
+compile('\$ENV{DESTDIR}${PYTHON_SITE_DIR}/cmpi_pywbem_bindings.py',
+dfile='${PYTHON_SITE_DIR}/cmpi_pywbem_bindings.py')\")")
++INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c

\"from

Quoted 348 lines

++py_compile import compile; ++compile('\$ENV{DESTDIR}$ENV{ENV_INSTALL_PATH}/cmpi_pywbem_bindings.p ++y', dfile='$ENV{ENV_INSTALL_PATH}/cmpi_pywbem_bindings.py')\")")

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Modify new file +6 -0
+
+
+
+--
+1.8.3.1
+

diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-build- error-when-the-swig-3.0.6.patch b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-build- error-when-the-swig-3.0.6.patch
new file mode 100644
index 0000000..18d27a1

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-bu new file +274 -0
+++ ild-error-when-the-swig-3.0.6.patch
@@ -0,0 +1,268 @@
+From 7479e3e13871a20d87f45ba4373a3a919071557a Mon Sep 17 00:00:00
+2001
+From: Lei Maohui <[email protected]>
+Date: Sun, 26 Jul 2015 21:39:50 +0900
+Subject: [PATCH] fix build error when the swig = 3.0.6
+
+Signed-off-by: Lei Maohui <[email protected]>
+---
+ swig/cmpi.i           |  6 +++---
+ swig/cmpi_callbacks.i |  6 +++---
+ swig/cmpi_defs.i      | 10 +++++-----
+ swig/cmpi_types.i     | 44 ++++++++++++++++++++++----------------------
+ 4 files changed, 33 insertions(+), 33 deletions(-)
+
+diff --git a/swig/cmpi.i b/swig/cmpi.i index d8f9ac4..59d285b 100644
+--- a/swig/cmpi.i
++++ b/swig/cmpi.i
+@@ -980,11 +980,11 @@ release_select_filter_exp(select_filter_exp
+*sfe)  %apply SWIGTYPE *DISOWN { CMPIInstance *instance_disown };
+%apply SWIGTYPE *DISOWN { CMPIObjectPath *path_disown };
+
+-# Definitions
++%# Definitions
+ %include "cmpi_defs.i"
+
+-# Data types
++%# Data types
+ %include "cmpi_types.i"
+
+-# Broker callbacks
++%# Broker callbacks
+ %include "cmpi_callbacks.i"
+diff --git a/swig/cmpi_callbacks.i b/swig/cmpi_callbacks.i index
+4e93a9e..4bba76d 100644
+--- a/swig/cmpi_callbacks.i
++++ b/swig/cmpi_callbacks.i
+@@ -1,6 +1,6 @@
+-# cmpi_callbacks.i
++%# cmpi_callbacks.i
+ #
+-# swig bindings for CMPI broker callbacks
++%# swig bindings for CMPI broker callbacks
+ #
+
+ %nodefault _CMPIBroker;
+@@ -445,7 +445,7 @@ typedef struct _CMPIBroker {} CMPIBroker;
+
+ #-----------------------------------------------------
+ #
+-# TODO: CMPIMsgFileHandle stuff
++%# TODO: CMPIMsgFileHandle stuff
+ #
+   /*
+    * query: The select expression.
+diff --git a/swig/cmpi_defs.i b/swig/cmpi_defs.i index
+ec3e455..7dfb608 100644
+--- a/swig/cmpi_defs.i
++++ b/swig/cmpi_defs.i
+@@ -1,6 +1,6 @@
+-# cmpi_defs.i
++%# cmpi_defs.i
+ #
+-# swig bindings for CMPI constant definitions
++%# swig bindings for CMPI constant definitions
+ #
+
+ %nodefault CMPIData;
+@@ -78,7 +78,7 @@
+
+ #if defined(SWIGPYTHON)
+ #
+-# Conversion from list of python strings to null terminated char** array.
++%# Conversion from list of python strings to null terminated char** array.
+ #
+
+ %typemap(in) char **
+@@ -129,7 +129,7 @@
+
+ #-----------------------------------------------------
+ #
+-# CMPIData
++%# CMPIData
+ #
+
+ %extend _CMPIData {
+@@ -199,7 +199,7 @@
+
+ #-----------------------------------------------------
+ #
+-# CMPIStatus
++%# CMPIStatus
+ #
+
+ %extend _CMPIStatus {
+diff --git a/swig/cmpi_types.i b/swig/cmpi_types.i index
+f69ec16..062b948 100644
+--- a/swig/cmpi_types.i
++++ b/swig/cmpi_types.i
+@@ -29,15 +29,15 @@
+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*********************************************************************
+********/
+
+-# cmpift.i
++%# cmpift.i
+ #
+-# swig bindings for CMPI function tables
++%# swig bindings for CMPI function tables
+ #
+
+ #
+-# Prevent default con-/destructors for all types -# CMPI types are
+handled through function tables -# and the broker.
++%# Prevent default con-/destructors for all types %# CMPI types are
++handled through function tables %# and the broker.
+ #
+
+ %nodefault _CMPIError;
+@@ -102,7 +102,7 @@ typedef struct _CMPIDateTime {} CMPIDateTime;
+
+ #-----------------------------------------------------
+ #
+-# CMPIException
++%# CMPIException
+ #
+ #-----------------------------------------------------
+
+@@ -177,7 +177,7 @@ typedef struct _CMPIException {} CMPIException;
+
+ #-----------------------------------------------------
+ #
+-# CMPIError
++%# CMPIError
+ #
+
+ /*
+@@ -372,7 +372,7 @@ typedef struct _CMPIException {} CMPIException;
+
+ #-----------------------------------------------------
+ #
+-# CMPIResult
++%# CMPIResult
+ #
+
+ /*
+@@ -409,7 +409,7 @@ typedef struct _CMPIException {} CMPIException;
+
+ #-----------------------------------------------------
+ #
+-# CMPIObjectPath
++%# CMPIObjectPath
+ #
+
+ /*
+@@ -860,7 +860,7 @@ FIXME: if clone() is exposed, release() must also
+
+ #-----------------------------------------------------
+ #
+-# CMPIInstance
++%# CMPIInstance
+ #
+
+ /*
+@@ -1166,7 +1166,7 @@ FIXME: if clone() is exposed, release() must
+also
+
+ #-----------------------------------------------------
+ #
+-# CMPIArgs
++%# CMPIArgs
+
+ /*
+  * CMPI Arguments
+@@ -1282,7 +1282,7 @@ FIXME: if clone() is exposed, release() must
+also
+
+ #-----------------------------------------------------
+ #
+-# CMPISelectExp
++%# CMPISelectExp
+
+ /*
+  * This structure encompasses queries @@ -1343,7 +1343,7 @@ FIXME:
+if clone() is exposed, release() must also
+
+ #-----------------------------------------------------
+ #
+-# CMPISelectCond
++%# CMPISelectCond
+
+ /*
+  * Select conditions
+@@ -1372,7 +1372,7 @@ FIXME: if clone() is exposed, release() must
+also
+
+ #-----------------------------------------------------
+ #
+-# CMPISubCond
++%# CMPISubCond
+
+ /*
+  * Sub Conditions
+@@ -1384,7 +1384,7 @@ FIXME: if clone() is exposed, release() must
+also
+
+ #-----------------------------------------------------
+ #
+-# CMPIPredicate
++%# CMPIPredicate
+
+ /*
+  * Predicate
+@@ -1413,7 +1413,7 @@ FIXME: if clone() is exposed, release() must
+also
+
+ #-----------------------------------------------------
+ #
+-# CMPIEnumeration
++%# CMPIEnumeration
+
+ /*
+  * Enumeration provide a linked-list type access to multiple
+elements @@ -1474,7 +1474,7 @@ Python for compatibility */
+
+ #-----------------------------------------------------
+ #
+-# CMPIArray
++%# CMPIArray
+
+ /*
+  * Array of equally-typed elements
+@@ -1546,11 +1546,11 @@ Python for compatibility */
+   }
+ }
+
+-#BOOKMARK
++%#BOOKMARK
+
+ #-----------------------------------------------------
+ #
+-# CMPIString
++%# CMPIString
+
+ /*
+  * A string
+@@ -1573,7 +1573,7 @@ Python for compatibility */
+
+ #-----------------------------------------------------
+ #
+-# CMPIContext
++%# CMPIContext
+
+ /*
+  * Context of the provider invocation @@ -1687,7 +1687,7 @@ Python
+for compatibility */
+
+ #-----------------------------------------------------
+ #
+-# CMPIDateTime
++%# CMPIDateTime
+
+ /*
+  * Date and Time
+@@ -1729,4 +1729,4 @@ Python for compatibility */
+   }
+ }
+
+-# EOF
++%# EOF
+--
+1.8.4.2
+

diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-the-bu ild-error-when-python-3.0.patch b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-the-bu ild-error-when-python-3.0.patch
new file mode 100644
index 0000000..0d6f029

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-fix-th new file +34 -0
+++ e-build-error-when-python-3.0.patch
@@ -0,0 +1,31 @@
+From 323ced03a66e6cd963d8277b66cfcc7dce740be7 Mon Sep 17 00:00:00
+2001
+From: Lei Maohui <[email protected]>
+Date: Fri, 17 Jul 2015 01:33:43 -0700
+Subject: [PATCH] fix Xthe build error when python>3.0
+
+Signed-off-by: Lei Maohui <[email protected]>
+---
+ src/target_python.c | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/src/target_python.c b/src/target_python.c index
+90b43a1..2b76c9e 100644
+--- a/src/target_python.c
++++ b/src/target_python.c
+@@ -167,7 +167,12 @@ PyGlobalInitialize(const CMPIBroker* broker,
+CMPIStatus* st)
+
+   Py_SetProgramName("cmpi_swig");
+   Py_Initialize();
+-  SWIGEXPORT void SWIG_init(void);
++#if PY_VERSION_HEX >= 0x03000000
++SWIGEXPORT PyObject*
++#else
++  SWIGEXPORT void
++#endif
++  SWIG_init(void);
+   SWIG_init();
+   cmpiMainPyThreadState = PyGILState_GetThisThreadState();
+   PyEval_ReleaseThread(cmpiMainPyThreadState);
+--
+2.1.0
+

diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0 .4.17-no-ruby-perl.patch b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0 .4.17-no-ruby-perl.patch
new file mode 100644
index 0000000..a586dbd

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +1 -0
+++ gs-0.4.17-no-ruby-perl.patch

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin line 6

Quoted 6 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +6 -0
@@ -0,0 +1,44 @@
+Port from Fedora20
+
+Upstream-Status: Pending
+Signed-off-by: Qian Lei <[email protected]>
+
+diff -up cmpi-bindings-0.5.2/swig/CMakeLists.txt.orig

cmpi-bindings-0.5.2/swig/CMakeLists.txt

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin line 7

Quoted 1 line
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +1 -0
+--- cmpi-bindings-0.5.2/swig/CMakeLists.txt.orig	2012-05-04 15:47:18.000000000

+0200

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin line 8

Quoted 1 line
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +1 -0
++++ cmpi-bindings-0.5.2/swig/CMakeLists.txt	2012-05-07 09:59:33.639648918

+0200

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin line 20

Quoted 12 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +12 -0
+@@ -4,12 +4,12 @@
+
+ enable_testing()
+
+-FIND_PACKAGE(Ruby)
+-IF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
+-  MESSAGE(STATUS "Building Ruby...")
+-  ADD_SUBDIRECTORY(ruby)
+-  OPTION( BUILD_RUBY_GEM "Build Ruby GEM" YES ) -ENDIF (RUBY_LIBRARY
+AND RUBY_INCLUDE_PATH)
++#FIND_PACKAGE(Ruby)
++#IF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH) #  MESSAGE(STATUS

"Building

Quoted 32 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +21 -0
++Ruby...") #  ADD_SUBDIRECTORY(ruby) #  OPTION( BUILD_RUBY_GEM "Build
++Ruby GEM" YES ) #ENDIF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
+
+ FIND_PACKAGE(PythonLibs)
+ IF (PYTHON_LIBRARY)
+@@ -22,9 +22,9 @@ IF (PYTHON_LIBRARY)
+   ENDIF (PYTHON_LINK_LIBS)
+ ENDIF (PYTHON_LIBRARY)
+
+-FIND_PACKAGE(Perl)
+-IF (PERL_EXECUTABLE)
+-  MESSAGE(STATUS "Building Perl...")
+-  ADD_SUBDIRECTORY(perl)
+-ENDIF (PERL_EXECUTABLE)
+-
+\ No newline at end of file
++#FIND_PACKAGE(Perl)
++#IF (PERL_EXECUTABLE)
++#  MESSAGE(STATUS "Building Perl...") #  ADD_SUBDIRECTORY(perl)
++#ENDIF (PERL_EXECUTABLE)
++

diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0 .4.17-sblim-sigsegv.patch b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0 .4.17-sblim-sigsegv.patch
new file mode 100644
index 0000000..b993372

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +1 -0
+++ gs-0.4.17-sblim-sigsegv.patch

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin line 6

Quoted 6 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +6 -0
@@ -0,0 +1,22 @@
+Port from Fedora20
+
+Upstream-Status: Pending
+Signed-off-by: Qian Lei <[email protected]>
+
+diff -up cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py.orig

cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin line 7

Quoted 1 line
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +1 -0
+--- cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py.orig	2012-03-01

17:05:31.878367281 +0100

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin line 8

Quoted 1 line
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +1 -0
++++ cmpi-bindings-0.4.17/swig/python/cmpi_pywbem_bindings.py	2012-03-01

17:06:34.718110137 +0100

Quoted 25 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +14 -0
+@@ -350,10 +350,10 @@ class BrokerCIMOMHandle(object):
+             allow_null_ns = False
+         else:
+             allow_null_ns = True
+-            if self.broker.name() == 'RequestHandler':
++#            if self.broker.name() == 'RequestHandler':
+                 # Check sblim bug #2185410.
+-                if instance.path is not None:
+-                    instance.path.namespace = None
++#                if instance.path is not None:
++#                    instance.path.namespace = None
+         inst = self.proxy.pywbem2cmpi_inst(instance, allow_null_ns)
+         rv = self.broker.deliverIndication(self.ctx, ns, inst)
+         return rv

diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0 .9.5-python-lib-dir.patch b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindings-0 .9.5-python-lib-dir.patch
new file mode 100644
index 0000000..b6a51ec

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +1 -0
+++ gs-0.9.5-python-lib-dir.patch

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin line 6

Quoted 6 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +6 -0
@@ -0,0 +1,17 @@
+Port from Fedora20
+
+Upstream-Status: Pending
+Signed-off-by: Qian Lei <[email protected]>
+
+diff -up cmpi-bindings-0.9.5/swig/python/CMakeLists.txt.old

cmpi-bindings-0.9.5/swig/python/CMakeLists.txt

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin line 7

Quoted 1 line
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +1 -0
+--- cmpi-bindings-0.9.5/swig/python/CMakeLists.txt.old	2013-08-06

15:57:03.576285764 +0200

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin line 8

Quoted 1 line
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +1 -0
++++ cmpi-bindings-0.9.5/swig/python/CMakeLists.txt	2013-08-06 15:57:14.891345941

+0200

Quoted 47 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/cmpi-bindin new file +15 -0
+@@ -9,7 +9,7 @@ SET (BUILD_SHARED_LIBS ON)
+
+ FIND_PACKAGE(PythonInterp REQUIRED)
+
+-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import
+stdout; from distutils import sysconfig;
+stdout.write(sysconfig.get_python_lib())" OUTPUT_VARIABLE
+PYTHON_LIB_DIR)
++EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import
++stdout; from distutils import sysconfig;
++stdout.write(sysconfig.get_python_lib(1))" OUTPUT_VARIABLE
++PYTHON_LIB_DIR)
+
+ IF (NOT PYTHON_SITE_DIR)
+   SET (PYTHON_SITE_DIR ${PYTHON_LIB_DIR})

diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb new file mode 100644
index 0000000..370f35e

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb new file +24 -0
@@ -0,0 +1,37 @@
+SUMMARY = "Adapter to write and run CMPI-type CIM providers"
+DESCRIPTION = "CMPI-compliant provider interface for various languages via SWIG"
+HOMEPAGE = "http://github.com/kkaempf/cmpi-bindings"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b19ee058d2d5f69af45da98051d91064"
+SECTION = "Development/Libraries"
+DEPENDS = "swig-native python sblim-cmpi-devel"
+
+SRC_URI = "git://github.com/kkaempf/cmpi-bindings.git;protocol=http \
+           file://cmpi-bindings-0.4.17-no-ruby-perl.patch \
+           file://cmpi-bindings-0.4.17-sblim-sigsegv.patch \
+           file://cmpi-bindings-0.9.5-python-lib-dir.patch \
+           file://0001-Modify-cmakelist.patch \
+           file://0001-Fix-error.patch \
+           file://0001-fix-the-build-error-when-python-3.0.patch \
+           file://0001-fix-build-error-when-the-swig-3.0.6.patch \
+          "
+
+SRCREV = "93b6044f53bcfa79253d7af51a9c23ddd73f8486"
+S = "${WORKDIR}/git"
+
+inherit cmake pythonnative
+
+EXTRA_OECMAKE = "-DLIB='${baselib}'"

meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb line 34

Quoted 10 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb new file +10 -0
+
+do_configure_prepend() {
+    export HOST_SYS=${HOST_SYS}
+    export BUILD_SYS=${BUILD_SYS}
+    export STAGING_LIBDIR=${STAGING_LIBDIR}
+    export STAGING_INCDIR=${STAGING_INCDIR}
+    export ENV_INSTALL_PATH=${PYTHON_SITEPACKAGES_DIR}
+}
+
+FILES_${PN} =+"${libdir}/cmpi/libpyCmpiProvider.so

${PYTHON_SITEPACKAGES_DIR}/*"

Quoted 11 lines
meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_git.bb new file +3 -1
+FILES_${PN}-dbg =+ "${libdir}/cmpi/.debug/libpyCmpiProvider.so"
+
+BBCLASSEXTEND = "native"
--

1.8.4.2

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

author
#5 lore raw

PATCH v4 2/6 konkretcmpi: add new recipe for openlmi

In reply to Lei Maohui

Konkretcmpi is dependence of openlmi.

---
 .../konkretcmpi/konkretcmpi-native_0.9.2.bb        | 27 +++++++++++++++
 ...-0.9.2-fix-returning-instance-from-method.patch | 38 ++++++++++++++++++++++
 .../konkretcmpi/konkretcmpi_0.9.2.bb               | 32 ++++++++++++++++++
 3 files changed, 97 insertions(+)
 create mode 100644 meta-oe/recipes-extended/konkretcmpi/konkretcmpi-native_0.9.2.bb
 create mode 100644 meta-oe/recipes-extended/konkretcmpi/konkretcmpi/konkretcmpi-0.9.2-fix-returning-instance-from-method.patch
 create mode 100644 meta-oe/recipes-extended/konkretcmpi/konkretcmpi_0.9.2.bb
meta-oe/recipes-extended/konkretcmpi/konkretcmpi-native_0.9.2.bb new file +27 -0
new file mode 100644
index 0000000..b4b8147
@@ -0,0 +1,27 @@
+SUMMARY = "Tool for rapid CMPI providers development"
+DESCRIPTION = "\
+KonkretCMPI makes CMPI provider development easier by generating type-safe \
+concrete CIM interfaces from MOF definitions and by providing default \
+implementations for many of the provider operations."
+HOMEPAGE = "https://github.com/rnovacek/konkretcmpi"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f673270bfc350d9ce1efc8724c6c1873"
+DEPENDS = "cmake-native cmpi-bindings-native"
+
+SRC_URI = "https://github.com/rnovacek/${BPN}/archive/${PV}/${BP}.tar.gz \
+           file://konkretcmpi-0.9.2-fix-returning-instance-from-method.patch"
+SRC_URI[md5sum] = "7e8ed4f47d1a9e5cbed4208920f89d64"
+SRC_URI[sha256sum] = "2ac52fc374e46d68317194bbd6b44e0b2f934df24b201efb395d3eccf0fed634"
+
+inherit native cmake
+LDFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
+
+EXTRA_OECMAKE = "-DWITH_PYTHON=ON"
+
+do_install_append() {
+    if [ -d ${D}${prefix}/lib64 ]; then
+        mv ${D}${prefix}/lib64 ${D}${libdir}
+    fi
+
+    rm -rf ${D}${datadir}
+}
meta-oe/recipes-extended/konkretcmpi/konkretcmpi/konkretcmpi-0.9.2-fix-returning-instance-from-method.patch new file +38 -0
new file mode 100644
index 0000000..b54d091
@@ -0,0 +1,38 @@
+Port from Fedora20
+
+    | commit aca6c7f910ffe9930b5789969f0adfadd668bb46
+    | Author: Michal Minar <[email protected]>
+    | Date:   Fri Jun 20 10:50:45 2014 +0200
+    | 
+    |     Fix returning instance as an output argument from method
+    |     
+    |     Submitted By: Radek Novacek <[email protected]>
+
+Upstream-Status: Pending
+Signed-off-by: Qian Lei <[email protected]>
+
+diff --git a/src/program/main.cpp b/src/program/main.cpp
+index 885dc12..9e7108a 100644
+--- a/src/program/main.cpp
++++ b/src/program/main.cpp
+@@ -506,7 +506,11 @@ static void gen_feature_decls(
+ 
+             // Add sig entry [type][length][name][zero-terminator]
+ 
+-            KTag tag = _ktag(pd->data_type, pd->array_index, key, false, false);
++            KTag tag;
++            if (pd->qualifiers->has_key("EmbeddedInstance"))
++                tag = _ktag(TOK_INSTANCE, pd->array_index, key, false, false);
++            else
++                tag = _ktag(pd->data_type, pd->array_index, key, false, false);
+             pack_tag(sig, tag);
+             pack_name(sig, pd->name);
+             count++;
+@@ -640,6 +644,7 @@ static void gen_param(FILE* os, MOF_Parameter* p, vector<unsigned char>& sig)
+         const char* ktn = _ktype_name(p->data_type);
+ 
+         if (p->qualifiers->has_key("EmbeddedInstance")) {
++            tag = _ktag(TOK_INSTANCE, p->array_index, false, in, out);
+             if (p->array_index)
+                 put(os, "    KInstanceA $0;\n", p->name, NULL);
+             else
meta-oe/recipes-extended/konkretcmpi/konkretcmpi_0.9.2.bb new file +32 -0
new file mode 100644
index 0000000..5924c35
@@ -0,0 +1,32 @@
+SUMMARY = "Tool for rapid CMPI providers development"
+DESCRIPTION = "\
+KonkretCMPI makes CMPI provider development easier by generating type-safe \
+concrete CIM interfaces from MOF definitions and by providing default \
+implementations for many of the provider operations."
+HOMEPAGE = "https://github.com/rnovacek/konkretcmpi"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f673270bfc350d9ce1efc8724c6c1873"
+DEPENDS = "swig sblim-cmpi-devel python cmake-native"
+
+SRC_URI = "https://github.com/rnovacek/${BPN}/archive/${PV}/${BP}.tar.gz \
+           file://konkretcmpi-0.9.2-fix-returning-instance-from-method.patch"
+SRC_URI[md5sum] = "7e8ed4f47d1a9e5cbed4208920f89d64"
+SRC_URI[sha256sum] = "2ac52fc374e46d68317194bbd6b44e0b2f934df24b201efb395d3eccf0fed634"
+
+inherit cmake
+
+EXTRA_OECMAKE = "-DWITH_PYTHON=ON"
+
+do_install_append() {
+    if [ -d ${D}${prefix}/lib64 ]; then
+        mv ${D}${prefix}/lib64 ${D}${libdir}
+    fi
+
+    rm -rf ${D}${datadir}
+}
+
+PACKAGES =+ "${PN}-python ${PN}-python-dbg"
+
+FILES_${PN}-python = "${libdir}/python2.7/site-packages/konkretmof.py* ${libdir}/python2.7/site-packages/_konkretmof.so"
+FILES_${PN}-python-dbg = "${libdir}/python2.7/site-packages/.debug/*"
+
Signature · 1 line
1.8.4.2
author
#6 lore raw

PATCH v4 3/6 sblim-sfcCommon: add new recipe

In reply to Lei Maohui

Sblim-sfcCommon is dependence of sblim-sfcb.

---
 .../sblim-sfcCommon/sblim-sfcCommon_1.0.1.bb       | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-extended/sblim-sfcCommon/sblim-sfcCommon_1.0.1.bb
meta-oe/recipes-extended/sblim-sfcCommon/sblim-sfcCommon_1.0.1.bb new file +25 -0
new file mode 100644
index 0000000..0f5515a
@@ -0,0 +1,25 @@
+SUMMARY = "Common functions for SBLIM Small Footprint CIM Broker and CIM Client Library."
+DESCRIPTION = "\
+This package provides a common library for functions shared between Small Footprint CIM Broker (sblim-sfcb) \
+Small Footprint CIM Client (and sblim-sfcc)."
+HOMEPAGE = "http://sourceforge.net/projects/sblim/"
+LICENSE = "EPL"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f300afd598546add034364cd0a533261"
+SECTION = "Development/Libraries"
+
+DEPENDS = "cmpi-bindings"
+
+SRC_URI = "http://downloads.sourceforge.net/sblim/${PN}-${PV}.tar.bz2 \
+          "
+SRC_URI[md5sum] = "8aa2655d97bdea54c4750f220b40990c"
+SRC_URI[sha256sum] = "b9b1037173d6ae0181c3bd5a316ddab5afd6a342ad0dbdc18e940fc0ad2c3297"
+
+inherit autotools
+
+do_install() {
+    oe_runmake DESTDIR=${D} install
+
+    rm -rf ${D}${libdir}/libsfcUtil.a
+    rm -rf ${D}${libdir}/libsfcUtil.la
+}
+
Signature · 1 line
1.8.4.2
author
#7 lore raw

PATCH v4 4/6 sblim-sfcb: add new recipe for openlmi

In reply to Lei Maohui

Sblim-sfcb is dependence of openlmi.

---
 .../recipes-extended/sblim-sfcb/files/sfcb.service | 11 +++
 .../sblim-sfcb-1.3.15-fix-provider-debugging.patch | 12 ++++
 .../sblim-sfcb-1.3.16-maxMsgLen.patch              | 14 ++++
 .../sblim-sfcb-1.3.16-multilib-man-cfg.patch       | 41 +++++++++++
 ...blim-sfcb-1.3.9-sfcbrepos-schema-location.patch | 42 +++++++++++
 .../sblim-sfcb-1.4.5-service.patch                 | 27 +++++++
 .../sblim-sfcb-1.4.8-default-ecdh-curve-name.patch | 26 +++++++
 .../sblim-sfcb/sblim-sfcb_1.4.8.bb                 | 82 ++++++++++++++++++++++
 8 files changed, 255 insertions(+)
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/files/sfcb.service
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.15-fix-provider-debugging.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.16-maxMsgLen.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.16-multilib-man-cfg.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.9-sfcbrepos-schema-location.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.4.5-service.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.4.8-default-ecdh-curve-name.patch
 create mode 100644 meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.8.bb
meta-oe/recipes-extended/sblim-sfcb/files/sfcb.service new file +11 -0
new file mode 100644
index 0000000..5adf63c
@@ -0,0 +1,11 @@
+[Unit]
+Description=Small Footprint CIM Broker Service
+After=syslog.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/sfcbd -d
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.15-fix-provider-debugging.patch new file +12 -0
new file mode 100644
index 0000000..4fbecaa
@@ -0,0 +1,12 @@
+diff -up sblim-sfcb-1.4.5/providerDrv.c.orig sblim-sfcb-1.4.5/providerDrv.c
+--- sblim-sfcb-1.4.5/providerDrv.c.orig	2013-09-04 12:59:22.140813239 +0200
++++ sblim-sfcb-1.4.5/providerDrv.c	2013-09-04 12:59:40.511870274 +0200
+@@ -3585,7 +3585,7 @@ processProviderInvocationRequests(char *
+     rc = spRecvReq(&providerSockets.receive, &parms->requestor,
+                    (void **) &parms->req, &rl, &mqg);
+     if (mqg.rdone) {
+-      int             debug_break = 0;
++      volatile int debug_break = 0;
+       if (rc != 0) {
+         mlogf(M_ERROR,M_SHOW, "spRecvReq returned error %d. Skipping message.\n", rc);
+         free(parms);
meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.16-maxMsgLen.patch new file +14 -0
new file mode 100644
index 0000000..a0dd816
@@ -0,0 +1,14 @@
+diff -up sblim-sfcb-1.3.16/sfcb.cfg.pre.in.old sblim-sfcb-1.3.16/sfcb.cfg.pre.in
+--- sblim-sfcb-1.3.16/sfcb.cfg.pre.in.old	2012-06-13 23:21:09.000000000 +0200
++++ sblim-sfcb-1.3.16/sfcb.cfg.pre.in	2013-06-24 15:34:38.881992781 +0200
+@@ -113,8 +113,8 @@ provProcs:      32
+ 
+ ## Max message length, in bytes. This is a limit on the size of messages
+ ## written across sockets, for instance, between providers and SFCB.
+-## Default is 10000000
+-maxMsgLen:      10000000
++## Default is 100000000
++maxMsgLen:      100000000
+ 
+ ## Location of the registration directory, where providerRegister can be found
+ ## Default is @localstatedir@/lib/sfcb/registration
meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.16-multilib-man-cfg.patch new file +41 -0

41 lines not on this page · raw message

meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.3.9-sfcbrepos-schema-location.patch new file +42 -0

42 lines not on this page · raw message

meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.4.5-service.patch new file +27 -0
new file mode 100644
index 0000000..eaccfa5
@@ -0,0 +1,27 @@
+diff -up sblim-sfcb-1.4.6/Makefile.in.orig sblim-sfcb-1.4.6/Makefile.in
+--- sblim-sfcb-1.4.6/Makefile.in.orig	2013-10-07 10:43:34.783228137 +0200
++++ sblim-sfcb-1.4.6/Makefile.in	2013-10-07 10:44:30.178533289 +0200
+@@ -627,7 +627,6 @@ initdir = $(sysconfdir)/init.d
+ pamdir = $(sysconfdir)/pam.d
+ sfcblibdir = $(libdir)/sfcb
+ cmpilibdir = $(libdir)/cmpi
+-systemddir = $(DESTDIR)@SYSTEMDDIR@
+ MANFILES = man/genSslCert.1 man/getSchema.1 man/sfcbd.1 man/sfcbmof.1 \
+ 	man/sfcbrepos.1 man/sfcbstage.1 man/sfcbunstage.1 man/sfcbuuid.1 \
+ 	man/wbemcat.1 man/xmltest.1
+@@ -2366,7 +2365,6 @@ unittest:
+ 	cd test && sh check_all.sh
+ 
+ install-data-local:
+-	if test -d $(systemddir); then cp $(srcdir)/sblim-sfcb.service $(systemddir); fi; 
+ 	test -d $(DESTDIR)$(sfcbstatedir)/registration/repository || $(mkdir_p) $(DESTDIR)$(sfcbstatedir)/registration/repository
+ 	test -d $(DESTDIR)$(sfcbstatedir)/stage/mofs/root/interop || $(mkdir_p) $(DESTDIR)$(sfcbstatedir)/stage/mofs/root/interop
+ 	test -d $(DESTDIR)$(sfcbstatedir)/stage/regs || $(mkdir_p) $(DESTDIR)$(sfcbstatedir)/stage/regs
+@@ -2384,7 +2382,6 @@ install-data-local:
+ uninstall-local:
+ 	rm -f $(DESTDIR)$(sfcbstatedir)/stage/default.reg
+ 	rm -f $(DESTDIR)$(sfcbstatedir)/stage/mofs/root/interop/10_interop.mof
+-	rm -f $(systemddir)/sblim-sfcb.service
+ @INDICATIONS_TRUE@	rm -f $(DESTDIR)$(sfcbstatedir)/stage/mofs/root/interop/20_indication.mof
+ @INDICATIONS_TRUE@	rm -f $(DESTDIR)$(sfcbstatedir)/stage/mofs/indication.mof
+ @DOCS_TRUE@	rm -rf $(DESTDIR)$(sfcbdocdir)/html
meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb-1.4.8/sblim-sfcb-1.4.8-default-ecdh-curve-name.patch new file +26 -0
new file mode 100644
index 0000000..3268d49
@@ -0,0 +1,26 @@
+diff -up sblim-sfcb-1.4.8/control.c.orig sblim-sfcb-1.4.8/control.c
+--- sblim-sfcb-1.4.8/control.c.orig	2014-03-27 00:46:28.000000000 +0100
++++ sblim-sfcb-1.4.8/control.c	2014-05-15 12:31:38.304169409 +0200
+@@ -170,7 +170,7 @@ static Control init[] = {
+   {"sslCertList", CTL_STRING, SFCB_CONFDIR "/clist.pem", {0}},
+   {"sslCiphers", CTL_STRING, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH", {0}},
+   {"sslDhParamsFilePath", CTL_STRING, NULL, {0}},
+-  {"sslEcDhCurveName", CTL_STRING, "secp224r1", {0}},
++  {"sslEcDhCurveName", CTL_STRING, "secp384r1", {0}},
+   {"enableSslCipherServerPref", CTL_BOOL, NULL, {.b=0}},
+ 
+   {"registrationDir", CTL_STRING, SFCB_STATEDIR "/registration", {0}},
+diff -up sblim-sfcb-1.4.8/sfcb.cfg.pre.in.orig sblim-sfcb-1.4.8/sfcb.cfg.pre.in
+--- sblim-sfcb-1.4.8/sfcb.cfg.pre.in.orig	2014-05-15 12:31:59.188244865 +0200
++++ sblim-sfcb-1.4.8/sfcb.cfg.pre.in	2014-05-15 12:32:45.554408412 +0200
+@@ -293,8 +293,8 @@ sslCiphers: ALL:!ADH:!LOW:!EXP:!MD5:@STR
+ ## environment. If this value is not set, the indicated default is in effect.
+ ## If the value is set but the curve name is not recognized by the underlying
+ ## openssl implementation, SFCB will abort.
+-## Default is secp224r1
+-#sslEcDhCurveName: secp224r1
++## Default is secp384r1
++#sslEcDhCurveName: secp384r1
+ 
+ ## When set to true, sets the SSL_OP_CIPHER_SERVER_PREFERENCE flag for the ssl
+ ## context, to enforce server's preference instead of the client preference for
meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.8.bb new file +82 -0

82 lines not on this page · raw message

Signature · 1 line
1.8.4.2
author
#8 lore raw

PATCH v4 5/6 cim-schema-exper: add new recipe for openlmi

In reply to Lei Maohui

- Cim-schema(Experimental-MOFs) is dependence of openlmi.
- Cim-schema_2.40.0.bb is renamed to cim-schema-final_2.40.0.bb.

---
 .../cim-schema/cim-schema-exper_2.39.0.bb          | 26 +++++++++++++++++
 ...schema_2.40.0.bb => cim-schema-final_2.40.0.bb} |  0
 .../cim-schema/cim-schema/files/LICENSE            | 34 ++++++++++++++++++++++
 3 files changed, 60 insertions(+)
 create mode 100644 meta-networking/recipes-support/cim-schema/cim-schema-exper_2.39.0.bb
 rename meta-networking/recipes-support/cim-schema/{cim-schema_2.40.0.bb => cim-schema-final_2.40.0.bb} (100%)
 create mode 100644 meta-networking/recipes-support/cim-schema/cim-schema/files/LICENSE
meta-networking/recipes-support/cim-schema/cim-schema-exper_2.39.0.bb new file +26 -0
new file mode 100644
index 0000000..3b973bf
@@ -0,0 +1,26 @@
+require cim-schema.inc
+
+LICENSE = "DMTF"
+
+SRC_URI = "http://dmtf.org/sites/default/files/cim/cim_schema_v2390/cim_schema_${PV}Experimental-MOFs.zip;subdir=${BPN}-${PV} \
+           file://LICENSE \
+          "
+SRC_URI[md5sum] = "b82b31c609c6bcc69521829409f58ccc"
+SRC_URI[sha256sum] = "ed2096ef1ea25d189a02bbc6603fed7a48297f2987f254265763a6eecb7fc870"
+LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=eecc6f71a56ff3caf17f15bf7aeac7b4"
+
+do_install() {
+        install -d -m 0755 ${D}${datadir}/mof/cimv${PV}/
+        install -d -m 0755 ${D}${datadir}/doc/cim-schema-${PV}
+        install -m 644 ${WORKDIR}/LICENSE ${D}${datadir}/doc/cim-schema-${PV}
+
+        cp -a ${S}/* ${D}${datadir}/mof/cimv${PV}/	
+        for i in `find ${D}${datadir}/mof/cimv${PV} -name "*.mof"`; do
+                sed -i -e 's/\r//g' $i
+        done
+        ln -s cimv${PV} ${D}${datadir}/mof/cim-current
+        ln -s cim_schema_${PV}.mof ${D}${datadir}/mof/cim-current/CIM_Schema.mof
+}
+
+FILES_${PN} = "${datadir}/mof/* ${datadir}/doc/*"
+FILES_${PN}-doc = ""
meta-networking/recipes-support/cim-schema/cim-schema-final_2.40.0.bb renamed from meta-networking/recipes-support/cim-schema/cim-schema_2.40.0.bb +0 -0
similarity index 100%
rename from meta-networking/recipes-support/cim-schema/cim-schema_2.40.0.bb
rename to meta-networking/recipes-support/cim-schema/cim-schema-final_2.40.0.bb
meta-networking/recipes-support/cim-schema/cim-schema/files/LICENSE new file +34 -0
new file mode 100644
index 0000000..54a2812
@@ -0,0 +1,34 @@
+// Copyright 1998-2008 Distributed Management Task Force, Inc. (DMTF).
+// All rights reserved.
+// DMTF is a not-for-profit association of industry members dedicated
+// to promoting enterprise and systems management and interoperability.
+// DMTF specifications and documents may be reproduced by
+// members and non-members, provided that correct attribution is given.
+// As DMTF specifications may be revised from time to time,
+// the particular version and release date should always be noted.
+// 
+// Implementation of certain elements of this standard or proposed
+// standard may be subject to third party patent rights, including
+// provisional patent rights (herein "patent rights"). DMTF makes
+// no representations to users of the standard as to the existence
+// of such rights, and is not responsible to recognize, disclose, or
+// identify any or all such third party patent right, owners or
+// claimants, nor for any incomplete or inaccurate identification or
+// disclosure of such rights, owners or claimants. DMTF shall have no
+// liability to any party, in any manner or circumstance, under any
+// legal theory whatsoever, for failure to recognize, disclose, or
+// identify any such third party patent rights, or for such party's
+// reliance on the standard or incorporation thereof in its product,
+// protocols or testing procedures. DMTF shall have no liability to
+// any party implementing such standard, whether such implementation
+// is foreseeable or not, nor to any patent owner or claimant, and shall
+// have no liability or responsibility for costs or losses incurred if
+// a standard is withdrawn or modified after publication, and shall be
+// indemnified and held harmless by any party implementing the
+// standard from any and all claims of infringement by a patent owner
+// for such implementations.
+// 
+// For information about patents held by third-parties which have
+// notified the DMTF that, in their opinion, such patent may relate to
+// or impact implementations of DMTF standards, visit
+// http://www.dmtf.org/about/policies/disclosures.php.
Signature · 1 line
1.8.4.2
author
#9 lore raw

PATCH v4 6/6 openlmi: add openlmi and it's depends

In reply to Lei Maohui

OpenLMI = Open Linux Management Infrastructure.
OpenLMI is open-source project aiming to improve management of Linux systems using WBEM standards.

---
 .../openlmi/openlmi-networking_0.3.1.bb            | 29 ++++++++++++
 .../openlmi/openlmi-providers/0001-fix-error.patch | 26 +++++++++++
 .../openlmi/openlmi-providers_0.6.0.bb             | 54 ++++++++++++++++++++++
 .../openlmi/openlmi-storage_0.8.1.bb               | 31 +++++++++++++
 .../openlmi/openlmi-tools_0.10.5.bb                | 23 +++++++++
 5 files changed, 163 insertions(+)
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-error.patch
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +29 -0
new file mode 100644
index 0000000..0bb4890
@@ -0,0 +1,29 @@
+SUMMARY = "CIM providers for network management"
+DESCRIPTION = "\
+openlmi-networking is set of CMPI providers for network management using \
+Common Information Model (CIM)."
+HOMEPAGE = "http://www.openlmi.org/"
+LICENSE = "LGPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7c13b3376cea0ce68d2d2da0a1b3a72c"
+SECTION = "System/Management"
+DEPENDS = "openlmi-providers konkretcmpi sblim-cmpi-devel cim-schema-exper networkmanager dbus libcheck glib-2.0"
+
+SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz \
+          "
+SRC_URI[md5sum] = "f20de8c76fb6a80001b14c1eb035953e"
+SRC_URI[sha256sum] = "578eaa5c65fe924b5d7aeb635509dd46443166cd6a88b019bc42646e3518a460"
+
+inherit cmake
+
+do_configure_prepend() {
+    export STAGING_DATADIR="${STAGING_DATADIR}"
+}
+
+do_install_append() {
+    if [ -d ${D}${prefix}/lib64 ]; then
+        mv ${D}${prefix}/lib64 ${D}${libdir}
+    fi
+}
+
+FILES_${PN} =+ "${libdir}/cmpi/libcmpiLMI_Networking.so ${prefix}/libexec*"
+FILES_${PN}-dbg =+ "${libdir}/cmpi/.debug*"
meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-error.patch new file +26 -0
new file mode 100644
index 0000000..85dfd55
@@ -0,0 +1,26 @@
+From 764171866b84e0198b67538f63022abde3e628ad Mon Sep 17 00:00:00 2001
+From: Qian Lei <[email protected]>
+Date: Fri, 16 Jan 2015 14:15:25 +0800
+Subject: [PATCH] fix error
+
+Signed-off-by: Qian Lei <[email protected]>
+---
+ cmake/modules/OpenLMIMacros.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cmake/modules/OpenLMIMacros.cmake b/cmake/modules/OpenLMIMacros.cmake
+index d55f983..dbc32ec 100644
+--- a/cmake/modules/OpenLMIMacros.cmake
++++ b/cmake/modules/OpenLMIMacros.cmake
+@@ -89,7 +89,7 @@ macro(konkretcmpi_generate MOFS CIM_PROVIDERS CIM_HEADERS CIM_CLASSES)
+         endforeach(CLASS ${CIM_CLASS_NAMES})
+ 
+         # Generate headers for CIM classes
+-        set(ENV{KONKRET_SCHEMA_DIR} "/usr/share/mof/cim-current")
++        set(ENV{KONKRET_SCHEMA_DIR} "$ENV{STAGING_DATADIR}/mof/cim-current")
+         execute_process(COMMAND ${KONKRETCMPI_KONKRET}
+                                 ${KONKRET_MOF_FILES}
+                                 ${GENERATE_PROVIDERS}
+-- 
+1.8.3.1
+
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +54 -0

54 lines not on this page · raw message

meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb new file +31 -0
new file mode 100644
index 0000000..6d351c6
@@ -0,0 +1,31 @@
+SUMMARY = "CIM providers for storage management"
+DESCRIPTION = "\
+The openlmi-storage package contains CMPI providers for management of storage \
+using Common Information Managemen (CIM) protocol. \
+\
+The providers can be registered in any CMPI-aware CIMOM, both OpenPegasus and \
+SFCB were tested."
+HOMEPAGE = "http://www.openlmi.org/"
+LICENSE = "LGPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+SECTION = "System/Management"
+DEPENDS = "openlmi-providers pywbem cmpi-bindings"
+
+SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz"
+SRC_URI[md5sum] = "898cf0d8c03b8ad6b45d65f335ddee0d"
+SRC_URI[sha256sum] = "4a1ba9957750f94ea58a89cea28985564f38d7cc9aa00fcae20c51e7b32bd0a8"
+
+inherit setuptools
+
+do_install_append() {
+    install -m 755 -d ${D}${datadir}/${BPN}
+    install -m 644 ${S}/mof/* ${D}${datadir}/${BPN}/
+
+    install -m 755 -d ${D}${sysconfdir}/openlmi/storage
+    install -m 644 storage.conf ${D}${sysconfdir}/openlmi/storage/storage.conf
+
+    install -m 755 -d ${D}${libexecdir}/pegasus
+    install -m 755 pycmpiLMI_Storage-cimprovagt ${D}${libexecdir}/pegasus/
+}
+
+FILES_${PN} =+ "${sysconfdir}/openlmi/storage/storage.conf ${datadir}/${BPN}/*"
meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb new file +23 -0
new file mode 100644
index 0000000..b23869d
@@ -0,0 +1,23 @@
+SUMMARY = "Set of CLI tools for Openlmi providers"
+DESCRIPTION = "openlmi-tools is a set of command line tools for Openlmi providers."
+HOMEPAGE = "http://www.openlmi.org/"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=75859989545e37968a99b631ef42722e"
+SECTION = "System/Management"
+
+inherit setuptools
+
+DEPENDS = "python-native pywbem-native python-m2crypto pywbem"
+
+SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz \
+          "
+SRC_URI[md5sum] = "e156246cb7b49753db82f4ddf7f03e50"
+SRC_URI[sha256sum] = "292b8f5f2250655a4add8183c529b73358bc980bd4f23cfa484a940953fce9e4"
+
+do_compile_prepend() {
+    cd cli
+    sed 's/@@VERSION@@/$(VERSION)/g' setup.py.skel >setup.py
+}
+do_install_prepend() {
+    cd cli
+}
Signature · 1 line
1.8.4.2
#10 lore raw

Re: [meta-oe][PATCH v4 6/6] openlmi: add openlmi and it's depends

Quoted 23 lines · Lei Maohui

OpenLMI = Open Linux Management Infrastructure.
OpenLMI is open-source project aiming to improve management of Linux systems using WBEM standards.

---
 .../openlmi/openlmi-networking_0.3.1.bb            | 29 ++++++++++++
 .../openlmi/openlmi-providers/0001-fix-error.patch | 26 +++++++++++
 .../openlmi/openlmi-providers_0.6.0.bb             | 54 ++++++++++++++++++++++
 .../openlmi/openlmi-storage_0.8.1.bb               | 31 +++++++++++++
 .../openlmi/openlmi-tools_0.10.5.bb                | 23 +++++++++
 5 files changed, 163 insertions(+)
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-error.patch
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb
 create mode 100644 meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +0 -0
new file mode 100644
index 0000000..0bb4890

meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb line 6

Quoted 6 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +6 -0
@@ -0,0 +1,29 @@
+SUMMARY = "CIM providers for network management"
+DESCRIPTION = "\
+openlmi-networking is set of CMPI providers for network management using \
+Common Information Model (CIM)."
+HOMEPAGE = "http://www.openlmi.org/"
+LICENSE = "LGPLv2+"

this should be LGPL-2.1+

Quoted 4 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +4 -0
+LIC_FILES_CHKSUM = "file://COPYING;md5=7c13b3376cea0ce68d2d2da0a1b3a72c"
+SECTION = "System/Management"
+DEPENDS = "openlmi-providers konkretcmpi sblim-cmpi-devel cim-schema-exper networkmanager dbus libcheck glib-2.0"
+

meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb line 20

Quoted 10 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +10 -0
+SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz \
+          "
+SRC_URI[md5sum] = "f20de8c76fb6a80001b14c1eb035953e"
+SRC_URI[sha256sum] = "578eaa5c65fe924b5d7aeb635509dd46443166cd6a88b019bc42646e3518a460"
+
+inherit cmake
+
+do_configure_prepend() {
+    export STAGING_DATADIR="${STAGING_DATADIR}"
+}

why is this needed to be manually exported like this. Sounds redundant

meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb line 25

Quoted 5 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +5 -0
+
+do_install_append() {
+    if [ -d ${D}${prefix}/lib64 ]; then
+        mv ${D}${prefix}/lib64 ${D}${libdir}
+    fi

have you tested it on multilib builds ? I think it will fail.

meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb line 28

Quoted 3 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +3 -0
+}
+
+FILES_${PN} =+ "${libdir}/cmpi/libcmpiLMI_Networking.so ${prefix}/libexec*"

this will not work since the default globs will put the .so into a -dev package.

Quoted 17 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +1 -0
+FILES_${PN}-dbg =+ "${libdir}/cmpi/.debug*"
meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-error.patch new file +10 -0
new file mode 100644
index 0000000..85dfd55
@@ -0,0 +1,26 @@
+From 764171866b84e0198b67538f63022abde3e628ad Mon Sep 17 00:00:00 2001
+From: Qian Lei <[email protected]>
+Date: Fri, 16 Jan 2015 14:15:25 +0800
+Subject: [PATCH] fix error
+
+Signed-off-by: Qian Lei <[email protected]>
+---
+ cmake/modules/OpenLMIMacros.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+

meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-error.patch line 20

Quoted 10 lines
meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-error.patch new file +10 -0
+diff --git a/cmake/modules/OpenLMIMacros.cmake b/cmake/modules/OpenLMIMacros.cmake
+index d55f983..dbc32ec 100644
+--- a/cmake/modules/OpenLMIMacros.cmake
++++ b/cmake/modules/OpenLMIMacros.cmake
+@@ -89,7 +89,7 @@ macro(konkretcmpi_generate MOFS CIM_PROVIDERS CIM_HEADERS CIM_CLASSES)
+         endforeach(CLASS ${CIM_CLASS_NAMES})
+
+         # Generate headers for CIM classes
+-        set(ENV{KONKRET_SCHEMA_DIR} "/usr/share/mof/cim-current")
++        set(ENV{KONKRET_SCHEMA_DIR} "$ENV{STAGING_DATADIR}/mof/cim-current")

can you try to use CMAKE_INSTALL_DATDIR or CMAKE_INSTALL_FULL_DATADIR here instead ?

Quoted 12 lines
meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-error.patch new file +6 -0
+         execute_process(COMMAND ${KONKRETCMPI_KONKRET}
+                                 ${KONKRET_MOF_FILES}
+                                 ${GENERATE_PROVIDERS}
+--
+1.8.3.1
+
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +0 -0
new file mode 100644
index 0000000..5ed97b9

meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb line 7

Quoted 7 lines
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +7 -0
@@ -0,0 +1,54 @@
+SUMMARY = "Set of basic CIM providers"
+DESCRIPTION = "\
+openlmi-providers is set of (usually) small CMPI providers (agents) for \
+basic monitoring and management of host system using Common Information \
+Model (CIM)."
+HOMEPAGE = "http://www.openlmi.org/"
+LICENSE = "LGPLv2+"

same as above use LGPL-2.1+

Quoted 26 lines
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +26 -0
+LIC_FILES_CHKSUM = "file://COPYING;md5=7c13b3376cea0ce68d2d2da0a1b3a72c"
+SECTION = "System/Management"
+DEPENDS = "konkretcmpi-native konkretcmpi sblim-sfcb sblim-cmpi-devel cim-schema-exper lmsensors libuser swig swig-native dbus udev systemd-systemctl-native pciutils"
+
+SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz \
+           file://0001-fix-error.patch"
+SRC_URI[md5sum] = "5904f23cf494946237cfbbdbe644a3cd"
+SRC_URI[sha256sum] = "e2b2fbeaec45a83905d0da3b87da83904d9cd94c1b86312f844587b3fff11f56"
+
+inherit cmake
+LDFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
+EXTRA_OECMAKE = " \
+                 -DWITH-DEVASSISTANT=OFF \
+                 -DWITH-JOURNALD=OFF \
+                 -DWITH-SERVICE=OFF \
+                 -DWITH-SERVICE-LEGACY=ON \
+                 -DWITH-ACCOUNT=OFF \
+                 -DWITH-PCP=OFF \
+                 -DWITH-REALMD=OFF \
+                 -DWITH-FAN=OFF \
+                 -DWITH-LOCALE=OFF \
+                 -DWITH-INDSENDER=OFF \
+                 -DWITH-JOBMANAGER=OFF \
+                 -DWITH-SSSD=OFF \
+                 -DWITH-SELINUX=OFF \
+                 -DWITH-SOFTWARE-DBUS=ON \

meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb line 43

Quoted 10 lines
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +10 -0
+               "
+
+do_configure_prepend() {
+    export STAGING_DATADIR="${STAGING_DATADIR}"
+}
+
+do_install_append() {
+    if [ -d ${D}${prefix}/lib64 ]; then
+        mv ${D}${prefix}/lib64 ${D}${libdir}
+    fi

multilib testing is needed

Quoted 85 lines
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +11 -0
+
+    if [ -d ${D}${prefix}${sysconfidr} ]; then
+        mv ${D}${prefix}${sysconfdir} ${D}${sysconfdir}
+    fi
+}
+
+FILES_${PN} =+ "${libdir}/cmpi/libcmpiLMI* ${prefix}/libexec*"
+FILES_${PN}-dev =+ "${datadir}/cmake*"
+FILES_${PN}-dbg =+ "${libdir}/cmpi/.debug*"
+
+RDEPENDS_${PN} = "python"
meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb new file +31 -0
new file mode 100644
index 0000000..6d351c6
@@ -0,0 +1,31 @@
+SUMMARY = "CIM providers for storage management"
+DESCRIPTION = "\
+The openlmi-storage package contains CMPI providers for management of storage \
+using Common Information Managemen (CIM) protocol. \
+\
+The providers can be registered in any CMPI-aware CIMOM, both OpenPegasus and \
+SFCB were tested."
+HOMEPAGE = "http://www.openlmi.org/"
+LICENSE = "LGPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+SECTION = "System/Management"
+DEPENDS = "openlmi-providers pywbem cmpi-bindings"
+
+SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz"
+SRC_URI[md5sum] = "898cf0d8c03b8ad6b45d65f335ddee0d"
+SRC_URI[sha256sum] = "4a1ba9957750f94ea58a89cea28985564f38d7cc9aa00fcae20c51e7b32bd0a8"
+
+inherit setuptools
+
+do_install_append() {
+    install -m 755 -d ${D}${datadir}/${BPN}
+    install -m 644 ${S}/mof/* ${D}${datadir}/${BPN}/
+
+    install -m 755 -d ${D}${sysconfdir}/openlmi/storage
+    install -m 644 storage.conf ${D}${sysconfdir}/openlmi/storage/storage.conf
+
+    install -m 755 -d ${D}${libexecdir}/pegasus
+    install -m 755 pycmpiLMI_Storage-cimprovagt ${D}${libexecdir}/pegasus/
+}
+
+FILES_${PN} =+ "${sysconfdir}/openlmi/storage/storage.conf ${datadir}/${BPN}/*"
meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb new file +23 -1
new file mode 100644
index 0000000..b23869d
@@ -0,0 +1,23 @@
+SUMMARY = "Set of CLI tools for Openlmi providers"
+DESCRIPTION = "openlmi-tools is a set of command line tools for Openlmi providers."
+HOMEPAGE = "http://www.openlmi.org/"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=75859989545e37968a99b631ef42722e"
+SECTION = "System/Management"
+
+inherit setuptools
+
+DEPENDS = "python-native pywbem-native python-m2crypto pywbem"
+
+SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz \
+          "
+SRC_URI[md5sum] = "e156246cb7b49753db82f4ddf7f03e50"
+SRC_URI[sha256sum] = "292b8f5f2250655a4add8183c529b73358bc980bd4f23cfa484a940953fce9e4"
+
+do_compile_prepend() {
+    cd cli
+    sed 's/@@VERSION@@/$(VERSION)/g' setup.py.skel >setup.py
+}
+do_install_prepend() {
+    cd cli
+}
--

1.8.4.2

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#11 lore raw

Re: [meta-oe][PATCH v4 6/6] openlmi: add openlmi and it's depends

Hi Khem

Quoted 2 lines

this should be LGPL-2.1+

Yes, I'll modify.

Quoted 1 line

have you tested it on multilib builds ? I think it will fail.

I didn't test multilib. I'll try.

Cheers
Lei

Quoted 287 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Wednesday, August 05, 2015 7:16 AM
To: openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH v4 6/6] openlmi: add openlmi and it's depends

Quoted 2 lines · Lei Maohui

OpenLMI = Open Linux Management Infrastructure.
OpenLMI is open-source project aiming to improve management of Linux systems

using WBEM standards.

Quoted 6 lines
---
 .../openlmi/openlmi-networking_0.3.1.bb            | 29 ++++++++++++
 .../openlmi/openlmi-providers/0001-fix-error.patch | 26 +++++++++++
 .../openlmi/openlmi-providers_0.6.0.bb             | 54

++++++++++++++++++++++

Quoted 22 lines
 .../openlmi/openlmi-storage_0.8.1.bb               | 31 +++++++++++++
 .../openlmi/openlmi-tools_0.10.5.bb                | 23 +++++++++
 5 files changed, 163 insertions(+)
 create mode 100644
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb
 create mode 100644
meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-error.patc
h  create mode 100644
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb
 create mode 100644
meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb
 create mode 100644

meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb

diff --git a/meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb b/meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file mode 100644
index 0000000..0bb4890

meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb line 6

Quoted 6 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +6 -0
@@ -0,0 +1,29 @@
+SUMMARY = "CIM providers for network management"
+DESCRIPTION = "\
+openlmi-networking is set of CMPI providers for network management
+using \ Common Information Model (CIM)."
+HOMEPAGE = "http://www.openlmi.org/"
+LICENSE = "LGPLv2+"

this should be LGPL-2.1+

meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb line 7

Quoted 1 line
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +1 -0
+LIC_FILES_CHKSUM =

"file://COPYING;md5=7c13b3376cea0ce68d2d2da0a1b3a72c"

meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb line 9

Quoted 2 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +2 -0
+SECTION = "System/Management"
+DEPENDS = "openlmi-providers konkretcmpi sblim-cmpi-devel cim-schema-exper

networkmanager dbus libcheck glib-2.0"

meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb

Quoted 5 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +5 -0
+
+SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz \
+          "
+SRC_URI[md5sum] = "f20de8c76fb6a80001b14c1eb035953e"
+SRC_URI[sha256sum] =

"578eaa5c65fe924b5d7aeb635509dd46443166cd6a88b019bc42646e3518a460"

meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb line 20

Quoted 6 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +6 -0
+
+inherit cmake
+
+do_configure_prepend() {
+    export STAGING_DATADIR="${STAGING_DATADIR}"
+}

why is this needed to be manually exported like this. Sounds redundant

meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb line 25

Quoted 5 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +5 -0
+
+do_install_append() {
+    if [ -d ${D}${prefix}/lib64 ]; then
+        mv ${D}${prefix}/lib64 ${D}${libdir}
+    fi

have you tested it on multilib builds ? I think it will fail.

meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb line 28

Quoted 3 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +3 -0
+}
+
+FILES_${PN} =+ "${libdir}/cmpi/libcmpiLMI_Networking.so ${prefix}/libexec*"

this will not work since the default globs will put the .so into a -dev package.

Quoted 19 lines
meta-oe/recipes-extended/openlmi/openlmi-networking_0.3.1.bb new file +1 -0
+FILES_${PN}-dbg =+ "${libdir}/cmpi/.debug*"

diff --git a/meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-error.pa tch b/meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-error.pa tch
new file mode 100644
index 0000000..85dfd55

meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-erro new file +8 -0
+++ r.patch
@@ -0,0 +1,26 @@
+From 764171866b84e0198b67538f63022abde3e628ad Mon Sep 17 00:00:00
+2001
+From: Qian Lei <[email protected]>
+Date: Fri, 16 Jan 2015 14:15:25 +0800
+Subject: [PATCH] fix error
+
+Signed-off-by: Qian Lei <[email protected]>

meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-erro line 17

Quoted 10 lines
meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-erro new file +10 -0
+---
+ cmake/modules/OpenLMIMacros.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cmake/modules/OpenLMIMacros.cmake
+b/cmake/modules/OpenLMIMacros.cmake
+index d55f983..dbc32ec 100644
+--- a/cmake/modules/OpenLMIMacros.cmake
++++ b/cmake/modules/OpenLMIMacros.cmake
+@@ -89,7 +89,7 @@ macro(konkretcmpi_generate MOFS CIM_PROVIDERS

CIM_HEADERS CIM_CLASSES)

meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-erro line 23

Quoted 6 lines
meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-erro new file +6 -0
+         endforeach(CLASS ${CIM_CLASS_NAMES})
+
+         # Generate headers for CIM classes
+-        set(ENV{KONKRET_SCHEMA_DIR} "/usr/share/mof/cim-current")
++        set(ENV{KONKRET_SCHEMA_DIR}
++ "$ENV{STAGING_DATADIR}/mof/cim-current")

can you try to use CMAKE_INSTALL_DATDIR or CMAKE_INSTALL_FULL_DATADIR here instead ?

Quoted 14 lines
meta-oe/recipes-extended/openlmi/openlmi-providers/0001-fix-erro new file +6 -0
+         execute_process(COMMAND ${KONKRETCMPI_KONKRET}
+                                 ${KONKRET_MOF_FILES}
+                                 ${GENERATE_PROVIDERS}
+--
+1.8.3.1
+

diff --git a/meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb b/meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file mode 100644
index 0000000..5ed97b9

meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb line 7

Quoted 7 lines
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +7 -0
@@ -0,0 +1,54 @@
+SUMMARY = "Set of basic CIM providers"
+DESCRIPTION = "\
+openlmi-providers is set of (usually) small CMPI providers (agents)
+for \ basic monitoring and management of host system using Common
+Information \ Model (CIM)."
+HOMEPAGE = "http://www.openlmi.org/"
+LICENSE = "LGPLv2+"

same as above use LGPL-2.1+

meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb line 8

Quoted 1 line
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +1 -0
+LIC_FILES_CHKSUM =

"file://COPYING;md5=7c13b3376cea0ce68d2d2da0a1b3a72c"

meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb line 10

Quoted 2 lines
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +2 -0
+SECTION = "System/Management"
+DEPENDS = "konkretcmpi-native konkretcmpi sblim-sfcb sblim-cmpi-devel

cim-schema-exper lmsensors libuser swig swig-native dbus udev systemd-systemctl-native pciutils"

meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb

Quoted 5 lines
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +5 -0
+
+SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz \
+           file://0001-fix-error.patch"
+SRC_URI[md5sum] = "5904f23cf494946237cfbbdbe644a3cd"
+SRC_URI[sha256sum] =

"e2b2fbeaec45a83905d0da3b87da83904d9cd94c1b86312f844587b3fff11f56"

meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb line 18

Quoted 3 lines
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +3 -0
+
+inherit cmake
+LDFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '

-fuse-ld=bfd ', '', d)}"

Quoted 15 lines
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +15 -0
+EXTRA_OECMAKE = " \
+                 -DWITH-DEVASSISTANT=OFF \
+                 -DWITH-JOURNALD=OFF \
+                 -DWITH-SERVICE=OFF \
+                 -DWITH-SERVICE-LEGACY=ON \
+                 -DWITH-ACCOUNT=OFF \
+                 -DWITH-PCP=OFF \
+                 -DWITH-REALMD=OFF \
+                 -DWITH-FAN=OFF \
+                 -DWITH-LOCALE=OFF \
+                 -DWITH-INDSENDER=OFF \
+                 -DWITH-JOBMANAGER=OFF \
+                 -DWITH-SSSD=OFF \
+                 -DWITH-SELINUX=OFF \
+                 -DWITH-SOFTWARE-DBUS=ON \

meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb line 43

Quoted 10 lines
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +10 -0
+               "
+
+do_configure_prepend() {
+    export STAGING_DATADIR="${STAGING_DATADIR}"
+}
+
+do_install_append() {
+    if [ -d ${D}${prefix}/lib64 ]; then
+        mv ${D}${prefix}/lib64 ${D}${libdir}
+    fi

multilib testing is needed

Quoted 18 lines
meta-oe/recipes-extended/openlmi/openlmi-providers_0.6.0.bb new file +11 -0
+
+    if [ -d ${D}${prefix}${sysconfidr} ]; then
+        mv ${D}${prefix}${sysconfdir} ${D}${sysconfdir}
+    fi
+}
+
+FILES_${PN} =+ "${libdir}/cmpi/libcmpiLMI* ${prefix}/libexec*"
+FILES_${PN}-dev =+ "${datadir}/cmake*"
+FILES_${PN}-dbg =+ "${libdir}/cmpi/.debug*"
+
+RDEPENDS_${PN} = "python"
meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb new file +0 -0
new file mode 100644
index 0000000..6d351c6

meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb line 9

Quoted 9 lines
meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb new file +9 -0
@@ -0,0 +1,31 @@
+SUMMARY = "CIM providers for storage management"
+DESCRIPTION = "\
+The openlmi-storage package contains CMPI providers for management of
+storage \ using Common Information Managemen (CIM) protocol. \ \ The
+providers can be registered in any CMPI-aware CIMOM, both OpenPegasus
+and \ SFCB were tested."
+HOMEPAGE = "http://www.openlmi.org/"
+LICENSE = "LGPLv2+"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=4fbd65380cdd255951079008b364516c"

meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb

Quoted 6 lines
meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb new file +6 -0
+SECTION = "System/Management"
+DEPENDS = "openlmi-providers pywbem cmpi-bindings"
+
+SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz"
+SRC_URI[md5sum] = "898cf0d8c03b8ad6b45d65f335ddee0d"
+SRC_URI[sha256sum] =

"4a1ba9957750f94ea58a89cea28985564f38d7cc9aa00fcae20c51e7b32bd0a8"

Quoted 23 lines
meta-oe/recipes-extended/openlmi/openlmi-storage_0.8.1.bb new file +16 -0
+
+inherit setuptools
+
+do_install_append() {
+    install -m 755 -d ${D}${datadir}/${BPN}
+    install -m 644 ${S}/mof/* ${D}${datadir}/${BPN}/
+
+    install -m 755 -d ${D}${sysconfdir}/openlmi/storage
+    install -m 644 storage.conf
+ ${D}${sysconfdir}/openlmi/storage/storage.conf
+
+    install -m 755 -d ${D}${libexecdir}/pegasus
+    install -m 755 pycmpiLMI_Storage-cimprovagt
+${D}${libexecdir}/pegasus/ }
+
+FILES_${PN} =+ "${sysconfdir}/openlmi/storage/storage.conf ${datadir}/${BPN}/*"
meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb new file +0 -0
new file mode 100644
index 0000000..b23869d

meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb line 2

Quoted 2 lines
meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb new file +2 -0
@@ -0,0 +1,23 @@
+SUMMARY = "Set of CLI tools for Openlmi providers"
+DESCRIPTION = "openlmi-tools is a set of command line tools for Openlmi

providers."

meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb

Quoted 13 lines
meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb new file +13 -0
+HOMEPAGE = "http://www.openlmi.org/"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=75859989545e37968a99b631ef42722e"
+SECTION = "System/Management"
+
+inherit setuptools
+
+DEPENDS = "python-native pywbem-native python-m2crypto pywbem"
+
+SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz \
+          "
+SRC_URI[md5sum] = "e156246cb7b49753db82f4ddf7f03e50"
+SRC_URI[sha256sum] =

"292b8f5f2250655a4add8183c529b73358bc980bd4f23cfa484a940953fce9e4"

Quoted 10 lines
meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb new file +7 -1
+
+do_compile_prepend() {
+    cd cli
+    sed 's/@@VERSION@@/$(VERSION)/g' setup.py.skel >setup.py }
+do_install_prepend() {
+    cd cli
+}
--

1.8.4.2

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel