diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2017-03-10 13:23:51 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-11 16:09:14 +0000 |
commit | b3d13e058a86cafc33aeab11eddfde77b1fd884f (patch) | |
tree | cbe23166e5d18e97b23540ae419459b3914baae9 /meta | |
parent | a2b6910d14b90a137c6e265cf081c6ee38832e2e (diff) | |
download | poky-b3d13e058a86cafc33aeab11eddfde77b1fd884f.tar.gz |
libcomps: add a recipe
libcomps is required by dnf.
(From OE-Core rev: a47e64d985a610535449730806651f5bfd75d9ec)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
3 files changed, 91 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libcomps/libcomps/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch b/meta/recipes-devtools/libcomps/libcomps/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch new file mode 100644 index 0000000000..26e8b06f37 --- /dev/null +++ b/meta/recipes-devtools/libcomps/libcomps/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From ff4aae4c8beaf17cb8e7a3431f6c541eccfae244 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 30 Dec 2016 18:22:09 +0200 | ||
4 | Subject: [PATCH 1/2] Do not set PYTHON_INSTALL_DIR by running python. | ||
5 | |||
6 | Upstream-Status: Inappropriate [oe-core specific] | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | --- | ||
9 | libcomps/src/python/src/python2/CMakeLists.txt | 2 +- | ||
10 | libcomps/src/python/src/python3/CMakeLists.txt | 2 +- | ||
11 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/libcomps/src/python/src/python2/CMakeLists.txt b/libcomps/src/python/src/python2/CMakeLists.txt | ||
14 | index 3ad9e18..0e7dd4b 100644 | ||
15 | --- a/libcomps/src/python/src/python2/CMakeLists.txt | ||
16 | +++ b/libcomps/src/python/src/python2/CMakeLists.txt | ||
17 | @@ -1,7 +1,7 @@ | ||
18 | find_package (PythonLibs 2.6) | ||
19 | find_package (PythonInterp 2.6 REQUIRED) | ||
20 | |||
21 | -execute_process (COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | ||
22 | +#execute_process (COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | ||
23 | |||
24 | include_directories(${PYTHON_INCLUDE_PATH}) | ||
25 | include_directories(${LIBCOMPS_INCLUDE_PATH}) | ||
26 | diff --git a/libcomps/src/python/src/python3/CMakeLists.txt b/libcomps/src/python/src/python3/CMakeLists.txt | ||
27 | index 7fafa9f..ed82d3d 100644 | ||
28 | --- a/libcomps/src/python/src/python3/CMakeLists.txt | ||
29 | +++ b/libcomps/src/python/src/python3/CMakeLists.txt | ||
30 | @@ -2,7 +2,7 @@ find_package (PythonLibs 3.0) | ||
31 | find_package (PythonInterp 3.0) | ||
32 | #add_custom_target(py3-copy) | ||
33 | |||
34 | -execute_process (COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | ||
35 | +#execute_process (COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | ||
36 | |||
37 | include_directories(${PYTHON_INCLUDE_PATH}) | ||
38 | include_directories(${LIBCOMPS_INCLUDE_PATH}) | ||
39 | -- | ||
40 | 2.11.0 | ||
41 | |||
diff --git a/meta/recipes-devtools/libcomps/libcomps/0002-Set-library-installation-path-correctly.patch b/meta/recipes-devtools/libcomps/libcomps/0002-Set-library-installation-path-correctly.patch new file mode 100644 index 0000000000..ec1fdc409b --- /dev/null +++ b/meta/recipes-devtools/libcomps/libcomps/0002-Set-library-installation-path-correctly.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From b1f61296e2f16c2b9a39c5501e4538628ff01ab4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 30 Dec 2016 18:26:00 +0200 | ||
4 | Subject: [PATCH 2/2] Set library installation path correctly | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | --- | ||
9 | libcomps/src/CMakeLists.txt | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/libcomps/src/CMakeLists.txt b/libcomps/src/CMakeLists.txt | ||
13 | index e553d77..e2eef9c 100644 | ||
14 | --- a/libcomps/src/CMakeLists.txt | ||
15 | +++ b/libcomps/src/CMakeLists.txt | ||
16 | @@ -52,7 +52,7 @@ add_dependencies(libcomps src-copy) | ||
17 | IF (CMAKE_SIZEOF_VOID_P MATCHES "8") | ||
18 | SET (LIB_SUFFIX "64") | ||
19 | ENDIF (CMAKE_SIZEOF_VOID_P MATCHES "8") | ||
20 | -set (LIB_INST_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) | ||
21 | +set (LIB_INST_DIR ${CMAKE_INSTALL_LIBDIR}) | ||
22 | |||
23 | |||
24 | install (FILES ${libcomps_HEADERS} DESTINATION include/libcomps) | ||
25 | -- | ||
26 | 2.11.0 | ||
27 | |||
diff --git a/meta/recipes-devtools/libcomps/libcomps_git.bb b/meta/recipes-devtools/libcomps/libcomps_git.bb new file mode 100644 index 0000000000..448ea62f67 --- /dev/null +++ b/meta/recipes-devtools/libcomps/libcomps_git.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | SUMMARY = "Libcomps is alternative for yum.comps library (which is for managing rpm package groups)." | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
4 | |||
5 | SRC_URI = "git://github.com/rpm-software-management/libcomps.git \ | ||
6 | file://0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \ | ||
7 | file://0002-Set-library-installation-path-correctly.patch \ | ||
8 | " | ||
9 | |||
10 | PV = "0.1.8+git${SRCPV}" | ||
11 | SRCREV = "01a4759894cccff64d2561614a58281adf5ce859" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | inherit cmake distutils-base | ||
16 | |||
17 | DEPENDS = "libxml2 expat libcheck" | ||
18 | |||
19 | EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR}" | ||
20 | OECMAKE_SOURCEPATH = "${S}/libcomps" | ||
21 | |||
22 | BBCLASSEXTEND = "native" | ||
23 | |||