diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2018-11-21 14:57:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-22 12:02:57 +0000 |
commit | a57d688e46a9c674c41cead0f39a56a54f40713b (patch) | |
tree | dcfb36bb302e870194368b611e0ee69d01bd755a /meta | |
parent | 0c5e19c96d77db139206b58a8aaa960b38009452 (diff) | |
download | poky-a57d688e46a9c674c41cead0f39a56a54f40713b.tar.gz |
libdnf: update to 0.22.0
(From OE-Core rev: 35c163f6ebdc41eb6b65fca05706854b1aac20b5)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch | 49 | ||||
-rw-r--r-- | meta/recipes-devtools/libdnf/libdnf/0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch | 15 | ||||
-rw-r--r-- | meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch | 36 | ||||
-rw-r--r-- | meta/recipes-devtools/libdnf/libdnf/0003-Set-the-library-installation-directory-correctly.patch | 29 | ||||
-rw-r--r-- | meta/recipes-devtools/libdnf/libdnf/0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch | 17 | ||||
-rw-r--r-- | meta/recipes-devtools/libdnf/libdnf_0.22.0.bb (renamed from meta/recipes-devtools/libdnf/libdnf_0.11.1.bb) | 8 |
6 files changed, 66 insertions, 88 deletions
diff --git a/meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch b/meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch new file mode 100644 index 0000000000..7c8131b4be --- /dev/null +++ b/meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | From 0d0155c4dd6c0b3305ea2ab0e10b0f84d024a6e1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 6 Nov 2018 13:54:43 +0100 | ||
4 | Subject: [PATCH] Add WITH_TESTS option | ||
5 | |||
6 | This makes a dependency on cppunit optional. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
10 | |||
11 | --- | ||
12 | CMakeLists.txt | 3 +++ | ||
13 | python/hawkey/CMakeLists.txt | 2 ++ | ||
14 | 2 files changed, 5 insertions(+) | ||
15 | |||
16 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
17 | index b73a03d7..a9e0200f 100644 | ||
18 | --- a/CMakeLists.txt | ||
19 | +++ b/CMakeLists.txt | ||
20 | @@ -36,6 +36,7 @@ OPTION(WITH_MAN "Enables hawkey man page generation" ON) | ||
21 | OPTION(WITH_HTML "Enables hawkey HTML generation" ON) | ||
22 | |||
23 | OPTION(WITH_BINDINGS "Enables python/SWIG bindings" ON) | ||
24 | +OPTION(WITH_TESTS "Enables unit tests" ON) | ||
25 | |||
26 | OPTION (ENABLE_SOLV_URPMREORDER "Build with support for URPM-like solution reordering?" OFF) | ||
27 | option (ENABLE_RHSM_SUPPORT "Build with Red Hat Subscription Manager support?" OFF) | ||
28 | @@ -122,8 +123,10 @@ IF (WITH_BINDINGS) | ||
29 | # ADD_SUBDIRECTORY (bindings/perl) | ||
30 | ADD_SUBDIRECTORY (bindings/python) | ||
31 | ENDIF() | ||
32 | +IF (WITH_TESTS) | ||
33 | ENABLE_TESTING() | ||
34 | ADD_SUBDIRECTORY (tests) | ||
35 | +ENDIF() | ||
36 | IF (WITH_BINDINGS) | ||
37 | ADD_SUBDIRECTORY (python/hawkey) | ||
38 | ADD_SUBDIRECTORY (docs/hawkey) | ||
39 | diff --git a/python/hawkey/CMakeLists.txt b/python/hawkey/CMakeLists.txt | ||
40 | index 3c0b3c0c..31466ed9 100644 | ||
41 | --- a/python/hawkey/CMakeLists.txt | ||
42 | +++ b/python/hawkey/CMakeLists.txt | ||
43 | @@ -49,4 +49,6 @@ TARGET_LINK_LIBRARIES(_hawkeymodule ${PYTHON_LIBRARY}) | ||
44 | INSTALL(FILES __init__.py DESTINATION ${PYTHON_INSTALL_DIR}/hawkey) | ||
45 | INSTALL(TARGETS _hawkeymodule LIBRARY DESTINATION ${PYTHON_INSTALL_DIR}/hawkey) | ||
46 | |||
47 | +IF (WITH_TESTS) | ||
48 | ADD_SUBDIRECTORY(tests) | ||
49 | +ENDIF() | ||
diff --git a/meta/recipes-devtools/libdnf/libdnf/0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch b/meta/recipes-devtools/libdnf/libdnf/0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch index cbd0362c8b..246db34154 100644 --- a/meta/recipes-devtools/libdnf/libdnf/0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch +++ b/meta/recipes-devtools/libdnf/libdnf/0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 2bf0666544293dcfac2f67b678e24353acdcd4e7 Mon Sep 17 00:00:00 2001 | 1 | From c139a6c929cff93dbb9b8279e97263fc9e055727 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Tue, 7 Feb 2017 12:16:03 +0200 | 3 | Date: Tue, 7 Feb 2017 12:16:03 +0200 |
4 | Subject: [PATCH 2/2] Get parameters for both libsolv and libsolvext (libdnf is | 4 | Subject: [PATCH] Get parameters for both libsolv and libsolvext (libdnf is |
5 | 5 | ||
6 | using both) | 6 | using both) |
7 | 7 | ||
@@ -13,18 +13,15 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
14 | 14 | ||
15 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 15 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
16 | index ca280f3..6ab9827 100644 | 16 | index cd91f08..6422534 100644 |
17 | --- a/CMakeLists.txt | 17 | --- a/CMakeLists.txt |
18 | +++ b/CMakeLists.txt | 18 | +++ b/CMakeLists.txt |
19 | @@ -29,7 +29,7 @@ find_package (PkgConfig REQUIRED) | 19 | @@ -46,7 +46,7 @@ endif(APPLE) |
20 | SET (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) | ||
21 | PKG_CHECK_MODULES(GLIB gio-unix-2.0>=2.46.0 REQUIRED) | 20 | PKG_CHECK_MODULES(GLIB gio-unix-2.0>=2.46.0 REQUIRED) |
21 | pkg_check_modules(SMARTCOLS REQUIRED smartcols) | ||
22 | FIND_LIBRARY (RPMDB_LIBRARY NAMES rpmdb) | 22 | FIND_LIBRARY (RPMDB_LIBRARY NAMES rpmdb) |
23 | -PKG_CHECK_MODULES (LIBSOLV REQUIRED libsolv) | 23 | -PKG_CHECK_MODULES (LIBSOLV REQUIRED libsolv) |
24 | +PKG_CHECK_MODULES (LIBSOLV REQUIRED libsolv libsolvext) | 24 | +PKG_CHECK_MODULES (LIBSOLV REQUIRED libsolv libsolvext) |
25 | set(LIBSOLV_LIBRARY ${LIBSOLV_LIBRARIES}) | 25 | set(LIBSOLV_LIBRARY ${LIBSOLV_LIBRARIES}) |
26 | if (ENABLE_RHSM_SUPPORT) | 26 | if (ENABLE_RHSM_SUPPORT) |
27 | pkg_check_modules (RHSM REQUIRED librhsm) | 27 | pkg_check_modules (RHSM REQUIRED librhsm>=0.0.3) |
28 | -- | ||
29 | 2.14.2 | ||
30 | |||
diff --git a/meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch b/meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch deleted file mode 100644 index 7eecc3d051..0000000000 --- a/meta/recipes-devtools/libdnf/libdnf/0002-Prefix-sysroot-path-to-introspection-tools-path.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From c8211ad99ccaa4af4a75e0ba639527267fcfd69e Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 30 Dec 2016 18:17:19 +0200 | ||
4 | Subject: [PATCH 2/4] Prefix sysroot path to introspection tools path. | ||
5 | |||
6 | Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/312] | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | --- | ||
9 | libdnf/CMakeLists.txt | 4 ++-- | ||
10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
11 | |||
12 | diff --git a/libdnf/CMakeLists.txt b/libdnf/CMakeLists.txt | ||
13 | index 63f07bf..837792b 100644 | ||
14 | --- a/libdnf/CMakeLists.txt | ||
15 | +++ b/libdnf/CMakeLists.txt | ||
16 | @@ -133,7 +133,7 @@ if (GOBJECT_INTROSPECTION_FOUND) | ||
17 | set(GIR_TYPELIB "${GIR_PREFIX}.typelib") | ||
18 | |||
19 | add_custom_command(OUTPUT ${GIR_XML} | ||
20 | - COMMAND env CFLAGS=${CMAKE_C_FLAGS} ${GOBJECT_INTROSPECTION_1.0_G_IR_SCANNER} | ||
21 | + COMMAND env CFLAGS=${CMAKE_C_FLAGS} $ENV{PKG_CONFIG_SYSROOT_DIR}${GOBJECT_INTROSPECTION_1.0_G_IR_SCANNER} | ||
22 | --namespace=Dnf | ||
23 | --nsversion=${DNF_SO_VERSION}.0 | ||
24 | --library-path=${CMAKE_CURRENT_BINARY_DIR} | ||
25 | @@ -153,7 +153,7 @@ if (GOBJECT_INTROSPECTION_FOUND) | ||
26 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
27 | |||
28 | add_custom_command(OUTPUT ${GIR_TYPELIB} | ||
29 | - COMMAND ${GOBJECT_INTROSPECTION_1.0_G_IR_COMPILER} | ||
30 | + COMMAND $ENV{PKG_CONFIG_SYSROOT_DIR}${GOBJECT_INTROSPECTION_1.0_G_IR_COMPILER} | ||
31 | -o ${GIR_TYPELIB} | ||
32 | ${GIR_XML} | ||
33 | DEPENDS ${GIR_XML} | ||
34 | -- | ||
35 | 2.11.0 | ||
36 | |||
diff --git a/meta/recipes-devtools/libdnf/libdnf/0003-Set-the-library-installation-directory-correctly.patch b/meta/recipes-devtools/libdnf/libdnf/0003-Set-the-library-installation-directory-correctly.patch deleted file mode 100644 index 81264094eb..0000000000 --- a/meta/recipes-devtools/libdnf/libdnf/0003-Set-the-library-installation-directory-correctly.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From 8d29879fe3606c78769c1bcdddf0bcfc7191c710 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 30 Dec 2016 18:20:01 +0200 | ||
4 | Subject: [PATCH 3/4] Set the library installation directory correctly. | ||
5 | |||
6 | Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/312] | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | --- | ||
9 | CMakeLists.txt | 4 +++- | ||
10 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
13 | index d35f0d7..8edb627 100644 | ||
14 | --- a/CMakeLists.txt | ||
15 | +++ b/CMakeLists.txt | ||
16 | @@ -62,7 +62,9 @@ ADD_DEFINITIONS(-DPACKAGE_VERSION=\\"${LIBDNF_VERSION}\\") | ||
17 | IF (CMAKE_SIZEOF_VOID_P MATCHES "8") | ||
18 | SET (LIB_SUFFIX "64") | ||
19 | ENDIF (CMAKE_SIZEOF_VOID_P MATCHES "8") | ||
20 | -SET (LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}") | ||
21 | +#SET (LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}") | ||
22 | +SET (LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}") | ||
23 | + | ||
24 | |||
25 | ADD_SUBDIRECTORY (libdnf) | ||
26 | ENABLE_TESTING() | ||
27 | -- | ||
28 | 2.11.0 | ||
29 | |||
diff --git a/meta/recipes-devtools/libdnf/libdnf/0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch b/meta/recipes-devtools/libdnf/libdnf/0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch index 6cf48a49f3..80b1ed7bf1 100644 --- a/meta/recipes-devtools/libdnf/libdnf/0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch +++ b/meta/recipes-devtools/libdnf/libdnf/0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From bcea5c5063a2d5f07dbe6f40aee30370fc4ba656 Mon Sep 17 00:00:00 2001 | 1 | From 2bcd0b9f6310bacdc554e077e85319a5e90e5ce0 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Fri, 30 Dec 2016 18:24:50 +0200 | 3 | Date: Fri, 30 Dec 2016 18:24:50 +0200 |
4 | Subject: [PATCH 1/2] Set libsolv variables with pkg-config (cmake's own module | 4 | Subject: [PATCH] Set libsolv variables with pkg-config (cmake's own module |
5 | 5 | ||
6 | doesn't work properly). | 6 | doesn't work properly). |
7 | 7 | ||
@@ -13,19 +13,16 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
13 | 1 file changed, 2 insertions(+), 1 deletion(-) | 13 | 1 file changed, 2 insertions(+), 1 deletion(-) |
14 | 14 | ||
15 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 15 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
16 | index 8875bbf..ca280f3 100644 | 16 | index 0b405cb..cd91f08 100644 |
17 | --- a/CMakeLists.txt | 17 | --- a/CMakeLists.txt |
18 | +++ b/CMakeLists.txt | 18 | +++ b/CMakeLists.txt |
19 | @@ -29,7 +29,8 @@ find_package (PkgConfig REQUIRED) | 19 | @@ -46,7 +46,8 @@ endif(APPLE) |
20 | SET (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) | ||
21 | PKG_CHECK_MODULES(GLIB gio-unix-2.0>=2.46.0 REQUIRED) | 20 | PKG_CHECK_MODULES(GLIB gio-unix-2.0>=2.46.0 REQUIRED) |
21 | pkg_check_modules(SMARTCOLS REQUIRED smartcols) | ||
22 | FIND_LIBRARY (RPMDB_LIBRARY NAMES rpmdb) | 22 | FIND_LIBRARY (RPMDB_LIBRARY NAMES rpmdb) |
23 | -find_package (LibSolv 0.6.21 REQUIRED COMPONENTS ext) | 23 | -find_package (LibSolv 0.6.30 REQUIRED COMPONENTS ext) |
24 | +PKG_CHECK_MODULES (LIBSOLV REQUIRED libsolv) | 24 | +PKG_CHECK_MODULES (LIBSOLV REQUIRED libsolv) |
25 | +set(LIBSOLV_LIBRARY ${LIBSOLV_LIBRARIES}) | 25 | +set(LIBSOLV_LIBRARY ${LIBSOLV_LIBRARIES}) |
26 | if (ENABLE_RHSM_SUPPORT) | 26 | if (ENABLE_RHSM_SUPPORT) |
27 | pkg_check_modules (RHSM REQUIRED librhsm) | 27 | pkg_check_modules (RHSM REQUIRED librhsm>=0.0.3) |
28 | include_directories (${RHSM_INCLUDE_DIRS}) | 28 | include_directories (${RHSM_INCLUDE_DIRS}) |
29 | -- | ||
30 | 2.14.2 | ||
31 | |||
diff --git a/meta/recipes-devtools/libdnf/libdnf_0.11.1.bb b/meta/recipes-devtools/libdnf/libdnf_0.22.0.bb index 4fc1d6defe..61ebcd821c 100644 --- a/meta/recipes-devtools/libdnf/libdnf_0.11.1.bb +++ b/meta/recipes-devtools/libdnf/libdnf_0.22.0.bb | |||
@@ -4,22 +4,22 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | |||
4 | 4 | ||
5 | SRC_URI = "git://github.com/rpm-software-management/libdnf \ | 5 | SRC_URI = "git://github.com/rpm-software-management/libdnf \ |
6 | file://0001-FindGtkDoc.cmake-drop-the-requirement-for-GTKDOC_SCA.patch \ | 6 | file://0001-FindGtkDoc.cmake-drop-the-requirement-for-GTKDOC_SCA.patch \ |
7 | file://0002-Prefix-sysroot-path-to-introspection-tools-path.patch \ | ||
8 | file://0003-Set-the-library-installation-directory-correctly.patch \ | ||
9 | file://0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch \ | 7 | file://0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch \ |
10 | file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \ | 8 | file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \ |
9 | file://0001-Add-WITH_TESTS-option.patch \ | ||
11 | " | 10 | " |
12 | 11 | ||
13 | SRCREV = "60f979bd8db651229c559c1412f1eb880257127d" | 12 | SRCREV = "fe14ad928f60890fa28b412639c88cd47889635e" |
14 | 13 | ||
15 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
16 | 15 | ||
17 | DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc" | 16 | DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc libmodulemd json-c swig-native" |
18 | 17 | ||
19 | inherit gtk-doc gobject-introspection cmake pkgconfig distutils3-base | 18 | inherit gtk-doc gobject-introspection cmake pkgconfig distutils3-base |
20 | 19 | ||
21 | EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DWITH_MAN=OFF -DPYTHON_DESIRED=3 \ | 20 | EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DWITH_MAN=OFF -DPYTHON_DESIRED=3 \ |
22 | ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DWITH_GIR=ON', '-DWITH_GIR=OFF', d)} \ | 21 | ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DWITH_GIR=ON', '-DWITH_GIR=OFF', d)} \ |
22 | -DWITH_TESTS=OFF \ | ||
23 | " | 23 | " |
24 | EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF" | 24 | EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF" |
25 | EXTRA_OECMAKE_append_class-nativesdk = " -DWITH_GIR=OFF" | 25 | EXTRA_OECMAKE_append_class-nativesdk = " -DWITH_GIR=OFF" |