summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended')
-rw-r--r--meta-oe/recipes-extended/konkretcmpi/konkretcmpi-native_0.9.2.bb28
-rw-r--r--meta-oe/recipes-extended/konkretcmpi/konkretcmpi/0001-CMakeLists.txt-fix-lib64-can-not-be-shiped-in-64bit-.patch31
-rw-r--r--meta-oe/recipes-extended/konkretcmpi/konkretcmpi/0001-to-fix-lib64-can-not-be-shiped-in-64bit-target.patch36
-rw-r--r--meta-oe/recipes-extended/konkretcmpi/konkretcmpi/konkretcmpi-0.9.2-fix-returning-instance-from-method.patch38
-rw-r--r--meta-oe/recipes-extended/konkretcmpi/konkretcmpi_0.9.2.bb34
5 files changed, 167 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/konkretcmpi/konkretcmpi-native_0.9.2.bb b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi-native_0.9.2.bb
new file mode 100644
index 000000000..2582a7743
--- /dev/null
+++ b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi-native_0.9.2.bb
@@ -0,0 +1,28 @@
1SUMMARY = "Tool for rapid CMPI providers development"
2DESCRIPTION = "\
3KonkretCMPI makes CMPI provider development easier by generating type-safe \
4concrete CIM interfaces from MOF definitions and by providing default \
5implementations for many of the provider operations."
6HOMEPAGE = "https://github.com/rnovacek/konkretcmpi"
7LICENSE = "MIT"
8LIC_FILES_CHKSUM = "file://COPYING;md5=f673270bfc350d9ce1efc8724c6c1873"
9DEPENDS = "cmake-native cmpi-bindings-native"
10
11SRC_URI = "git://github.com/rnovacek/konkretcmpi.git \
12 file://konkretcmpi-0.9.2-fix-returning-instance-from-method.patch \
13 file://0001-CMakeLists.txt-fix-lib64-can-not-be-shiped-in-64bit-.patch "
14
15SRCREV = "460e6421c16a8216d29ccd1b7490f814dab8b769"
16S = "${WORKDIR}/git"
17
18inherit native cmake
19LDFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
20
21EXTRA_OECMAKE = "-DWITH_PYTHON=ON \
22 ${@base_conditional("libdir", "/usr/lib64", "-DLIB_SUFFIX=64", "", d)} \
23 ${@base_conditional("libdir", "/usr/lib32", "-DLIB_SUFFIX=32", "", d)} \
24 "
25
26do_install_append() {
27 rm -rf ${D}${datadir}
28}
diff --git a/meta-oe/recipes-extended/konkretcmpi/konkretcmpi/0001-CMakeLists.txt-fix-lib64-can-not-be-shiped-in-64bit-.patch b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi/0001-CMakeLists.txt-fix-lib64-can-not-be-shiped-in-64bit-.patch
new file mode 100644
index 000000000..40a064307
--- /dev/null
+++ b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi/0001-CMakeLists.txt-fix-lib64-can-not-be-shiped-in-64bit-.patch
@@ -0,0 +1,31 @@
1From d97ac2bf2ed9c84ffd65ff10989068b202e09fdf Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Mon, 3 Aug 2015 00:29:54 +0900
4Subject: [PATCH] CMakeLists.txt: fix lib64 can not be shiped in 64bit target
5
6Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
7---
8 CMakeLists.txt | 7 -------
9 1 file changed, 7 deletions(-)
10
11diff --git a/CMakeLists.txt b/CMakeLists.txt
12index be544d1..14696e4 100644
13--- a/CMakeLists.txt
14+++ b/CMakeLists.txt
15@@ -11,13 +11,6 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_P
16
17 find_package(CMPI)
18
19-# Set LIB_SUFFIX to 64 on 64bit architectures
20-if(CMAKE_SIZEOF_VOID_P EQUAL 4)
21- set(LIB_SUFFIX "")
22-else(CMAKE_SIZEOF_VOID_P EQUAL 4)
23- set(LIB_SUFFIX 64)
24-endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
25-
26 option(WITH_PYTHON "Build experimental Python bindings" OFF)
27
28 add_subdirectory(cmake)
29--
301.8.4.2
31
diff --git a/meta-oe/recipes-extended/konkretcmpi/konkretcmpi/0001-to-fix-lib64-can-not-be-shiped-in-64bit-target.patch b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi/0001-to-fix-lib64-can-not-be-shiped-in-64bit-target.patch
new file mode 100644
index 000000000..7da13ee3d
--- /dev/null
+++ b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi/0001-to-fix-lib64-can-not-be-shiped-in-64bit-target.patch
@@ -0,0 +1,36 @@
1From f3c39fd2a4b5f53338b5f821788c63858bf860cf Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Sun, 2 Aug 2015 22:08:43 +0900
4Subject: [PATCH] to fix lib64 can not be shiped in 64bit target
5
6To fix the warning as following:
7WARNING: QA Issue: konkretcmpi: Files/directories were installed but not shipped in any package:
8 /usr/lib64
9 /usr/lib64/libkonkret.so
10 /usr/lib64/libkonkret.so.0.0.1
11 /usr/lib64/libkonkret.so.0
12 /usr/lib64/libkonkretmof.so.0.0.1
13 /usr/lib64/libkonkretmof.so
14 ...
15
16Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
17---
18 cmake/modules/FindKonkretCMPI.cmake | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/cmake/modules/FindKonkretCMPI.cmake b/cmake/modules/FindKonkretCMPI.cmake
22index b888cfd..097caed 100644
23--- a/cmake/modules/FindKonkretCMPI.cmake
24+++ b/cmake/modules/FindKonkretCMPI.cmake
25@@ -9,7 +9,7 @@ find_path(KONKRETCMPI_INCLUDE_DIR
26 find_library(KONKRETCMPI_LIBRARY
27 NAMES konkret
28 HINTS $ENV{KONKRETCMPI_LIB_DIR}
29- PATH_SUFFIXES lib64 lib
30+ PATH_SUFFIXES lib lib64
31 PATHS /usr /usr/local
32 )
33
34--
351.8.4.2
36
diff --git a/meta-oe/recipes-extended/konkretcmpi/konkretcmpi/konkretcmpi-0.9.2-fix-returning-instance-from-method.patch b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi/konkretcmpi-0.9.2-fix-returning-instance-from-method.patch
new file mode 100644
index 000000000..b54d09159
--- /dev/null
+++ b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi/konkretcmpi-0.9.2-fix-returning-instance-from-method.patch
@@ -0,0 +1,38 @@
1Port from Fedora20
2
3 | commit aca6c7f910ffe9930b5789969f0adfadd668bb46
4 | Author: Michal Minar <miminar@redhat.com>
5 | Date: Fri Jun 20 10:50:45 2014 +0200
6 |
7 | Fix returning instance as an output argument from method
8 |
9 | Submitted By: Radek Novacek <rnovacek@redhat.com>
10
11Upstream-Status: Pending
12Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
13
14diff --git a/src/program/main.cpp b/src/program/main.cpp
15index 885dc12..9e7108a 100644
16--- a/src/program/main.cpp
17+++ b/src/program/main.cpp
18@@ -506,7 +506,11 @@ static void gen_feature_decls(
19
20 // Add sig entry [type][length][name][zero-terminator]
21
22- KTag tag = _ktag(pd->data_type, pd->array_index, key, false, false);
23+ KTag tag;
24+ if (pd->qualifiers->has_key("EmbeddedInstance"))
25+ tag = _ktag(TOK_INSTANCE, pd->array_index, key, false, false);
26+ else
27+ tag = _ktag(pd->data_type, pd->array_index, key, false, false);
28 pack_tag(sig, tag);
29 pack_name(sig, pd->name);
30 count++;
31@@ -640,6 +644,7 @@ static void gen_param(FILE* os, MOF_Parameter* p, vector<unsigned char>& sig)
32 const char* ktn = _ktype_name(p->data_type);
33
34 if (p->qualifiers->has_key("EmbeddedInstance")) {
35+ tag = _ktag(TOK_INSTANCE, p->array_index, false, in, out);
36 if (p->array_index)
37 put(os, " KInstanceA $0;\n", p->name, NULL);
38 else
diff --git a/meta-oe/recipes-extended/konkretcmpi/konkretcmpi_0.9.2.bb b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi_0.9.2.bb
new file mode 100644
index 000000000..5d016e7b4
--- /dev/null
+++ b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi_0.9.2.bb
@@ -0,0 +1,34 @@
1SUMMARY = "Tool for rapid CMPI providers development"
2DESCRIPTION = "\
3KonkretCMPI makes CMPI provider development easier by generating type-safe \
4concrete CIM interfaces from MOF definitions and by providing default \
5implementations for many of the provider operations."
6HOMEPAGE = "https://github.com/rnovacek/konkretcmpi"
7LICENSE = "MIT"
8LIC_FILES_CHKSUM = "file://COPYING;md5=f673270bfc350d9ce1efc8724c6c1873"
9DEPENDS = "swig sblim-cmpi-devel python cmake-native"
10
11SRC_URI = "git://github.com/rnovacek/konkretcmpi.git \
12 file://konkretcmpi-0.9.2-fix-returning-instance-from-method.patch \
13 file://0001-CMakeLists.txt-fix-lib64-can-not-be-shiped-in-64bit-.patch \
14 "
15
16SRCREV = "460e6421c16a8216d29ccd1b7490f814dab8b769"
17S = "${WORKDIR}/git"
18
19inherit cmake
20
21EXTRA_OECMAKE = "-DWITH_PYTHON=ON \
22 ${@base_conditional("libdir", "/usr/lib64", "-DLIB_SUFFIX=64", "", d)} \
23 ${@base_conditional("libdir", "/usr/lib32", "-DLIB_SUFFIX=32", "", d)} \
24 "
25
26do_install_append() {
27 rm -rf ${D}${datadir}
28}
29
30PACKAGES =+ "${PN}-python ${PN}-python-dbg"
31
32FILES_${PN}-python = "${libdir}/python2.7/site-packages/konkretmof.py* ${libdir}/python2.7/site-packages/_konkretmof.so"
33FILES_${PN}-python-dbg = "${libdir}/python2.7/site-packages/.debug/*"
34