summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Add-PYTHON_ABI-suffix-to-the-python-library-name.patch9
-rw-r--r--meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.1.bb4
2 files changed, 5 insertions, 8 deletions
diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Add-PYTHON_ABI-suffix-to-the-python-library-name.patch b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Add-PYTHON_ABI-suffix-to-the-python-library-name.patch
index b2a149b0f4..fa029da2b8 100644
--- a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Add-PYTHON_ABI-suffix-to-the-python-library-name.patch
+++ b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings/0001-Add-PYTHON_ABI-suffix-to-the-python-library-name.patch
@@ -9,19 +9,14 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9 swig/python/CMakeLists.txt | 2 +- 9 swig/python/CMakeLists.txt | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-) 10 1 file changed, 1 insertion(+), 1 deletion(-)
11 11
12diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt
13index 128798b..391cef7 100644
14--- a/swig/python/CMakeLists.txt 12--- a/swig/python/CMakeLists.txt
15+++ b/swig/python/CMakeLists.txt 13+++ b/swig/python/CMakeLists.txt
16@@ -49,7 +49,7 @@ ADD_DEFINITIONS(-DCMPI_PLATFORM_LINUX_GENERIC_GNU -DCMPI_VERSION=200) 14@@ -49,7 +49,7 @@ ADD_DEFINITIONS(-DCMPI_PLATFORM_LINUX_GE
17 SET( NAME pyCmpiProvider ) 15 SET( NAME pyCmpiProvider )
18 ADD_LIBRARY( ${NAME} SHARED ${SWIG_OUTPUT}) 16 ADD_LIBRARY( ${NAME} SHARED ${SWIG_OUTPUT})
19 #TARGET_LINK_LIBRARIES( ${NAME} ${PYTHON_LIBRARIES} ) 17 #TARGET_LINK_LIBRARIES( ${NAME} ${PYTHON_LIBRARIES} )
20-TARGET_LINK_LIBRARIES( ${NAME} python${PYTHON_MAJOR_VERSION}.${PYTHON_MINOR_VERSION} ) 18-TARGET_LINK_LIBRARIES( ${NAME} python${PYTHON_MAJOR_VERSION}.${PYTHON_MINOR_VERSION} )
21+TARGET_LINK_LIBRARIES( ${NAME} python${PYTHON_MAJOR_VERSION}.${PYTHON_MINOR_VERSION}m ) 19+TARGET_LINK_LIBRARIES( ${NAME} python${PYTHON_MAJOR_VERSION}.${PYTHON_MINOR_VERSION}${PYTHON_ABI} )
22 TARGET_LINK_LIBRARIES( ${NAME} pthread ) 20 TARGET_LINK_LIBRARIES( ${NAME} pthread )
23 TARGET_LINK_LIBRARIES( ${NAME} dl ) 21 TARGET_LINK_LIBRARIES( ${NAME} dl )
24 TARGET_LINK_LIBRARIES( ${NAME} util ) 22 TARGET_LINK_LIBRARIES( ${NAME} util )
25--
262.8.1
27
diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.1.bb b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.1.bb
index 251c5d0f5a..6c71d534be 100644
--- a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.1.bb
+++ b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.1.bb
@@ -22,7 +22,9 @@ S = "${WORKDIR}/git"
22inherit cmake python3native 22inherit cmake python3native
23 23
24EXTRA_OECMAKE = "-DLIB='${baselib}' \ 24EXTRA_OECMAKE = "-DLIB='${baselib}' \
25 -DPYTHON_INCLUDE_PATH=${STAGING_INCDIR}/python${PYTHON_BASEVERSION}" 25 -DPYTHON_INCLUDE_PATH=${STAGING_INCDIR}/python${PYTHON_BASEVERSION} \
26 -DPYTHON_ABI=${PYTHON_ABI} \
27 "
26 28
27# With Ninja it fails with: 29# With Ninja it fails with:
28# ninja: error: build.ninja:282: bad $-escape (literal $ must be written as $$) 30# ninja: error: build.ninja:282: bad $-escape (literal $ must be written as $$)