summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-06-26 09:18:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-28 08:35:59 +0100
commitf235636647c8290b644a12d1199dd00c6bb5f582 (patch)
treebc797076233c0aacd27df5119c0e7eb6e76346d0
parent32fd4520360712f7e7b56fefb73ad26e60811788 (diff)
downloadpoky-f235636647c8290b644a12d1199dd00c6bb5f582.tar.gz
libdnf: update 0.47.0 -> 0.48.0
(From OE-Core rev: 6f8020c5d50da705fbb077f647a5bb304f2cf710) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch10
-rw-r--r--meta/recipes-devtools/libdnf/libdnf/0001-Use-single-quotes-around-string-literals-used-in-SQL.patch36
-rw-r--r--meta/recipes-devtools/libdnf/libdnf_0.48.0.bb (renamed from meta/recipes-devtools/libdnf/libdnf_0.47.0.bb)3
3 files changed, 6 insertions, 43 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
index ac9400c48d..384add5e12 100644
--- a/meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch
+++ b/meta/recipes-devtools/libdnf/libdnf/0001-Add-WITH_TESTS-option.patch
@@ -1,4 +1,4 @@
1From 56fa2bbdbd29377a6ef0d0b7aadbac8b5ea8c95b Mon Sep 17 00:00:00 2001 1From 7d60d62b5c5374156703ca7262fb2f85ec5db119 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 6 Nov 2018 13:54:43 +0100 3Date: Tue, 6 Nov 2018 13:54:43 +0100
4Subject: [PATCH] Add WITH_TESTS option 4Subject: [PATCH] Add WITH_TESTS option
@@ -14,7 +14,7 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
14 2 files changed, 5 insertions(+) 14 2 files changed, 5 insertions(+)
15 15
16diff --git a/CMakeLists.txt b/CMakeLists.txt 16diff --git a/CMakeLists.txt b/CMakeLists.txt
17index 881152a..965c992 100644 17index 9c6e1b2f..8599c540 100644
18--- a/CMakeLists.txt 18--- a/CMakeLists.txt
19+++ b/CMakeLists.txt 19+++ b/CMakeLists.txt
20@@ -33,6 +33,7 @@ option(WITH_MAN "Enables hawkey man page generation" ON) 20@@ -33,6 +33,7 @@ option(WITH_MAN "Enables hawkey man page generation" ON)
@@ -24,8 +24,8 @@ index 881152a..965c992 100644
24+option(WITH_TESTS "Enables unit tests" ON) 24+option(WITH_TESTS "Enables unit tests" ON)
25 25
26 26
27 # load pkg-config first; it's required by other modules 27 # build options - debugging
28@@ -165,8 +166,10 @@ endif() 28@@ -179,8 +180,10 @@ endif()
29 29
30 30
31 # build tests 31 # build tests
@@ -37,7 +37,7 @@ index 881152a..965c992 100644
37 add_subdirectory(python/hawkey) 37 add_subdirectory(python/hawkey)
38 endif() 38 endif()
39diff --git a/python/hawkey/CMakeLists.txt b/python/hawkey/CMakeLists.txt 39diff --git a/python/hawkey/CMakeLists.txt b/python/hawkey/CMakeLists.txt
40index d964534..84d1720 100644 40index d9645346..84d17204 100644
41--- a/python/hawkey/CMakeLists.txt 41--- a/python/hawkey/CMakeLists.txt
42+++ b/python/hawkey/CMakeLists.txt 42+++ b/python/hawkey/CMakeLists.txt
43@@ -50,4 +50,6 @@ target_link_libraries(_hawkeymodule ${PYTHON_LIBRARY}) 43@@ -50,4 +50,6 @@ target_link_libraries(_hawkeymodule ${PYTHON_LIBRARY})
diff --git a/meta/recipes-devtools/libdnf/libdnf/0001-Use-single-quotes-around-string-literals-used-in-SQL.patch b/meta/recipes-devtools/libdnf/libdnf/0001-Use-single-quotes-around-string-literals-used-in-SQL.patch
deleted file mode 100644
index 6be484fea3..0000000000
--- a/meta/recipes-devtools/libdnf/libdnf/0001-Use-single-quotes-around-string-literals-used-in-SQL.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1From 96ca7d0049461df2293dd0000edcbc69b64255e0 Mon Sep 17 00:00:00 2001
2From: Peter Kjellerstedt <pkj@axis.com>
3Date: Sun, 3 May 2020 22:40:39 +0200
4Subject: [PATCH] Use single-quotes around string literals used in SQL
5 statements
6
7If sqlite is built with -DSQLITE_DQS=0 in accordance with
8https://sqlite.org/quirks.html#dblquote, migration to version 1.2 of the
9history database would fail with:
10
11 History database cannot be created: /var/lib/dnf/history.sqlite.
12 Error: SQLite error on ":memory:": Executing an SQL statement failed:
13 no such column: 1.2
14
15Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/951]
16Signed-off-by: Peter Kjellerstedt <pkj@axis.com>
17---
18 libdnf/transaction/sql/migrate_tables_1_2.sql | 4 ++--
19 1 file changed, 2 insertions(+), 2 deletions(-)
20
21diff --git a/libdnf/transaction/sql/migrate_tables_1_2.sql b/libdnf/transaction/sql/migrate_tables_1_2.sql
22index 49b75315..f80ad1c4 100644
23--- a/libdnf/transaction/sql/migrate_tables_1_2.sql
24+++ b/libdnf/transaction/sql/migrate_tables_1_2.sql
25@@ -1,9 +1,9 @@
26 R"**(
27 BEGIN TRANSACTION;
28 ALTER TABLE trans
29- ADD comment TEXT DEFAULT "";
30+ ADD comment TEXT DEFAULT '';
31 UPDATE config
32- SET value = "1.2"
33+ SET value = '1.2'
34 WHERE key = 'version';
35 COMMIT;
36 )**"
diff --git a/meta/recipes-devtools/libdnf/libdnf_0.47.0.bb b/meta/recipes-devtools/libdnf/libdnf_0.48.0.bb
index 1b06d66b19..947b2f2348 100644
--- a/meta/recipes-devtools/libdnf/libdnf_0.47.0.bb
+++ b/meta/recipes-devtools/libdnf/libdnf_0.48.0.bb
@@ -8,10 +8,9 @@ SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master \
8 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 \ 9 file://0001-Add-WITH_TESTS-option.patch \
10 file://0001-Look-fo-sphinx-only-if-documentation-is-actually-ena.patch \ 10 file://0001-Look-fo-sphinx-only-if-documentation-is-actually-ena.patch \
11 file://0001-Use-single-quotes-around-string-literals-used-in-SQL.patch \
12 " 11 "
13 12
14SRCREV = "8330eea6985c4e4b53796f858de5b6b38b1ddf5c" 13SRCREV = "46a28d0cf09277fffc11392e5e362a2eda0d53a8"
15UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" 14UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
16 15
17S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"