From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH v5 2/6] konkretcmpi: add new recipe for openlmi
Date: Thu, 20 Aug 2015 17:02:16 +0200 [thread overview]
Message-ID: <20150820150216.GE2446@jama> (raw)
In-Reply-To: <1439527440-33965-3-git-send-email-leimaohui@cn.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 10313 bytes --]
On Fri, Aug 14, 2015 at 12:43:56PM +0800, Lei Maohui wrote:
> Konkretcmpi is dependence of openlmi.
>
> Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
> ---
> .../konkretcmpi/konkretcmpi-native_0.9.2.bb | 28 ++++++++++++++++
> ...txt-fix-lib64-can-not-be-shiped-in-64bit-.patch | 31 ++++++++++++++++++
> ...x-lib64-can-not-be-shiped-in-64bit-target.patch | 36 ++++++++++++++++++++
> ...-0.9.2-fix-returning-instance-from-method.patch | 38 ++++++++++++++++++++++
> .../konkretcmpi/konkretcmpi_0.9.2.bb | 34 +++++++++++++++++++
> 5 files changed, 167 insertions(+)
> create mode 100644 meta-oe/recipes-extended/konkretcmpi/konkretcmpi-native_0.9.2.bb
> create mode 100644 meta-oe/recipes-extended/konkretcmpi/konkretcmpi/0001-CMakeLists.txt-fix-lib64-can-not-be-shiped-in-64bit-.patch
> create mode 100644 meta-oe/recipes-extended/konkretcmpi/konkretcmpi/0001-to-fix-lib64-can-not-be-shiped-in-64bit-target.patch
> 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
>
> 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 0000000..d04c103
> --- /dev/null
> +++ b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi-native_0.9.2.bb
> @@ -0,0 +1,28 @@
> +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 \
Don't use github archives, they are regenerated from time to time with
different checksums.
> + file://konkretcmpi-0.9.2-fix-returning-instance-from-method.patch \
> + file://0001-CMakeLists.txt-fix-lib64-can-not-be-shiped-in-64bit-.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 \
> + ${@base_conditional("libdir", "/usr/lib64", "-DLIB_SUFFIX=64", "", d)} \
> + ${@base_conditional("libdir", "/usr/lib32", "-DLIB_SUFFIX=32", "", d)} \
> + "
> +
> +do_install_append() {
> + rm -rf ${D}${datadir}
> +}
> 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 0000000..40a0643
> --- /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 @@
> +From d97ac2bf2ed9c84ffd65ff10989068b202e09fdf Mon Sep 17 00:00:00 2001
> +From: Lei Maohui <leimaohui@cn.fujitsu.com>
> +Date: Mon, 3 Aug 2015 00:29:54 +0900
> +Subject: [PATCH] CMakeLists.txt: fix lib64 can not be shiped in 64bit target
> +
> +Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
> +---
> + CMakeLists.txt | 7 -------
> + 1 file changed, 7 deletions(-)
> +
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index be544d1..14696e4 100644
> +--- a/CMakeLists.txt
> ++++ b/CMakeLists.txt
> +@@ -11,13 +11,6 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_P
> +
> + find_package(CMPI)
> +
> +-# Set LIB_SUFFIX to 64 on 64bit architectures
> +-if(CMAKE_SIZEOF_VOID_P EQUAL 4)
> +- set(LIB_SUFFIX "")
> +-else(CMAKE_SIZEOF_VOID_P EQUAL 4)
> +- set(LIB_SUFFIX 64)
> +-endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
> +-
> + option(WITH_PYTHON "Build experimental Python bindings" OFF)
> +
> + add_subdirectory(cmake)
> +--
> +1.8.4.2
> +
> 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 0000000..7da13ee
> --- /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 @@
> +From f3c39fd2a4b5f53338b5f821788c63858bf860cf Mon Sep 17 00:00:00 2001
> +From: Lei Maohui <leimaohui@cn.fujitsu.com>
> +Date: Sun, 2 Aug 2015 22:08:43 +0900
> +Subject: [PATCH] to fix lib64 can not be shiped in 64bit target
> +
> +To fix the warning as following:
> +WARNING: QA Issue: konkretcmpi: Files/directories were installed but not shipped in any package:
> + /usr/lib64
> + /usr/lib64/libkonkret.so
> + /usr/lib64/libkonkret.so.0.0.1
> + /usr/lib64/libkonkret.so.0
> + /usr/lib64/libkonkretmof.so.0.0.1
> + /usr/lib64/libkonkretmof.so
> + ...
> +
> +Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
> +---
> + cmake/modules/FindKonkretCMPI.cmake | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/cmake/modules/FindKonkretCMPI.cmake b/cmake/modules/FindKonkretCMPI.cmake
> +index b888cfd..097caed 100644
> +--- a/cmake/modules/FindKonkretCMPI.cmake
> ++++ b/cmake/modules/FindKonkretCMPI.cmake
> +@@ -9,7 +9,7 @@ find_path(KONKRETCMPI_INCLUDE_DIR
> + find_library(KONKRETCMPI_LIBRARY
> + NAMES konkret
> + HINTS $ENV{KONKRETCMPI_LIB_DIR}
> +- PATH_SUFFIXES lib64 lib
> ++ PATH_SUFFIXES lib lib64
> + PATHS /usr /usr/local
> + )
> +
> +--
> +1.8.4.2
> +
> 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 0000000..b54d091
> --- /dev/null
> +++ b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi/konkretcmpi-0.9.2-fix-returning-instance-from-method.patch
> @@ -0,0 +1,38 @@
> +Port from Fedora20
> +
> + | commit aca6c7f910ffe9930b5789969f0adfadd668bb46
> + | Author: Michal Minar <miminar@redhat.com>
> + | Date: Fri Jun 20 10:50:45 2014 +0200
> + |
> + | Fix returning instance as an output argument from method
> + |
> + | Submitted By: Radek Novacek <rnovacek@redhat.com>
> +
> +Upstream-Status: Pending
> +Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
> +
> +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
> 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 0000000..fc15fae
> --- /dev/null
> +++ b/meta-oe/recipes-extended/konkretcmpi/konkretcmpi_0.9.2.bb
> @@ -0,0 +1,34 @@
> +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 \
> + file://0001-CMakeLists.txt-fix-lib64-can-not-be-shiped-in-64bit-.patch \
> + "
> +
> +SRC_URI[md5sum] = "7e8ed4f47d1a9e5cbed4208920f89d64"
> +SRC_URI[sha256sum] = "2ac52fc374e46d68317194bbd6b44e0b2f934df24b201efb395d3eccf0fed634"
> +
> +inherit cmake
> +
> +EXTRA_OECMAKE = "-DWITH_PYTHON=ON \
> + ${@base_conditional("libdir", "/usr/lib64", "-DLIB_SUFFIX=64", "", d)} \
> + ${@base_conditional("libdir", "/usr/lib32", "-DLIB_SUFFIX=32", "", d)} \
> + "
> +
> +do_install_append() {
> + 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/*"
> +
> --
> 1.8.4.2
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2015-08-20 15:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-14 4:43 [meta-oe][PATCH v5 0/6] add openlmi and it's depends Lei Maohui
2015-08-14 4:43 ` [meta-oe][PATCH v5 1/6] cmpi-bindings: add new recipe Lei Maohui
2015-08-14 4:43 ` [meta-oe][PATCH v5 2/6] konkretcmpi: add new recipe for openlmi Lei Maohui
2015-08-20 15:02 ` Martin Jansa [this message]
2015-08-14 4:43 ` [meta-oe][PATCH v5 3/6] sblim-sfcCommon: add new recipe Lei Maohui
2015-08-14 4:43 ` [meta-oe][PATCH v5 4/6] sblim-sfcb: add new recipe for openlmi Lei Maohui
2015-08-14 4:43 ` [meta-oe][PATCH v5 5/6] cim-schema-exper: " Lei Maohui
2015-08-14 4:44 ` [meta-oe][PATCH v5 6/6] openlmi: add openlmi Lei Maohui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150820150216.GE2446@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.