diff options
Diffstat (limited to 'meta-oe/recipes-extended')
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 @@ | |||
1 | SUMMARY = "Tool for rapid CMPI providers development" | ||
2 | DESCRIPTION = "\ | ||
3 | KonkretCMPI makes CMPI provider development easier by generating type-safe \ | ||
4 | concrete CIM interfaces from MOF definitions and by providing default \ | ||
5 | implementations for many of the provider operations." | ||
6 | HOMEPAGE = "https://github.com/rnovacek/konkretcmpi" | ||
7 | LICENSE = "MIT" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=f673270bfc350d9ce1efc8724c6c1873" | ||
9 | DEPENDS = "cmake-native cmpi-bindings-native" | ||
10 | |||
11 | SRC_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 | SRCREV = "460e6421c16a8216d29ccd1b7490f814dab8b769" | ||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | inherit native cmake | ||
19 | LDFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | ||
20 | |||
21 | EXTRA_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 | |||
26 | do_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 @@ | |||
1 | From d97ac2bf2ed9c84ffd65ff10989068b202e09fdf Mon Sep 17 00:00:00 2001 | ||
2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
3 | Date: Mon, 3 Aug 2015 00:29:54 +0900 | ||
4 | Subject: [PATCH] CMakeLists.txt: fix lib64 can not be shiped in 64bit target | ||
5 | |||
6 | Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
7 | --- | ||
8 | CMakeLists.txt | 7 ------- | ||
9 | 1 file changed, 7 deletions(-) | ||
10 | |||
11 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
12 | index 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 | -- | ||
30 | 1.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 @@ | |||
1 | From f3c39fd2a4b5f53338b5f821788c63858bf860cf Mon Sep 17 00:00:00 2001 | ||
2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
3 | Date: Sun, 2 Aug 2015 22:08:43 +0900 | ||
4 | Subject: [PATCH] to fix lib64 can not be shiped in 64bit target | ||
5 | |||
6 | To fix the warning as following: | ||
7 | WARNING: 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 | |||
16 | Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> | ||
17 | --- | ||
18 | cmake/modules/FindKonkretCMPI.cmake | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/cmake/modules/FindKonkretCMPI.cmake b/cmake/modules/FindKonkretCMPI.cmake | ||
22 | index 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 | -- | ||
35 | 1.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 @@ | |||
1 | Port 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 | |||
11 | Upstream-Status: Pending | ||
12 | Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com> | ||
13 | |||
14 | diff --git a/src/program/main.cpp b/src/program/main.cpp | ||
15 | index 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 @@ | |||
1 | SUMMARY = "Tool for rapid CMPI providers development" | ||
2 | DESCRIPTION = "\ | ||
3 | KonkretCMPI makes CMPI provider development easier by generating type-safe \ | ||
4 | concrete CIM interfaces from MOF definitions and by providing default \ | ||
5 | implementations for many of the provider operations." | ||
6 | HOMEPAGE = "https://github.com/rnovacek/konkretcmpi" | ||
7 | LICENSE = "MIT" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=f673270bfc350d9ce1efc8724c6c1873" | ||
9 | DEPENDS = "swig sblim-cmpi-devel python cmake-native" | ||
10 | |||
11 | SRC_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 | |||
16 | SRCREV = "460e6421c16a8216d29ccd1b7490f814dab8b769" | ||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | inherit cmake | ||
20 | |||
21 | EXTRA_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 | |||
26 | do_install_append() { | ||
27 | rm -rf ${D}${datadir} | ||
28 | } | ||
29 | |||
30 | PACKAGES =+ "${PN}-python ${PN}-python-dbg" | ||
31 | |||
32 | FILES_${PN}-python = "${libdir}/python2.7/site-packages/konkretmof.py* ${libdir}/python2.7/site-packages/_konkretmof.so" | ||
33 | FILES_${PN}-python-dbg = "${libdir}/python2.7/site-packages/.debug/*" | ||
34 | |||