summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libdnf/libdnf
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-09-08 20:01:05 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-11 18:41:37 +0100
commit7aa703bf88a065d23ac6aaca63f1559e2d294f0b (patch)
tree407b2c188a65ca2f894c4b4b6918405fd1db783e /meta/recipes-devtools/libdnf/libdnf
parentc3189b9efeace692965b409d8588cb3833e53f5b (diff)
downloadpoky-7aa703bf88a065d23ac6aaca63f1559e2d294f0b.tar.gz
libdnf: fix the rpm sqlite-only target setup
(From OE-Core rev: 8bbbcf9f8db1112a08c89ed8ee76c8c65f1ea179) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/libdnf/libdnf')
-rw-r--r--meta/recipes-devtools/libdnf/libdnf/0001-libdnf-dnf-context.cpp-do-not-try-to-access-BDB-data.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libdnf/libdnf/0001-libdnf-dnf-context.cpp-do-not-try-to-access-BDB-data.patch b/meta/recipes-devtools/libdnf/libdnf/0001-libdnf-dnf-context.cpp-do-not-try-to-access-BDB-data.patch
new file mode 100644
index 0000000000..6f8a3dcb50
--- /dev/null
+++ b/meta/recipes-devtools/libdnf/libdnf/0001-libdnf-dnf-context.cpp-do-not-try-to-access-BDB-data.patch
@@ -0,0 +1,37 @@
1From 2f7382b35d59fe08034603497e82ffb943fedef1 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 30 Jun 2021 15:31:16 +0200
4Subject: [PATCH] libdnf/dnf-context.cpp: do not try to access BDB database
5
6Upstream-Status: Inappropriate [upstream needs to rework this to support
7sqlite]
8Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9---
10 libdnf/dnf-context.cpp | 14 --------------
11 1 file changed, 14 deletions(-)
12
13diff --git a/libdnf/dnf-context.cpp b/libdnf/dnf-context.cpp
14index 86f71a79..9cdcf769 100644
15--- a/libdnf/dnf-context.cpp
16+++ b/libdnf/dnf-context.cpp
17@@ -2264,20 +2264,6 @@ dnf_context_setup(DnfContext *context,
18 !dnf_context_set_os_release(context, error))
19 return FALSE;
20
21- /* setup a file monitor on the rpmdb, if we're operating on the native / */
22- if (g_strcmp0(priv->install_root, "/") == 0) {
23- rpmdb_path = g_build_filename(priv->install_root, "var/lib/rpm/Packages", NULL);
24- file_rpmdb = g_file_new_for_path(rpmdb_path);
25- priv->monitor_rpmdb = g_file_monitor_file(file_rpmdb,
26- G_FILE_MONITOR_NONE,
27- NULL,
28- error);
29- if (priv->monitor_rpmdb == NULL)
30- return FALSE;
31- g_signal_connect(priv->monitor_rpmdb, "changed",
32- G_CALLBACK(dnf_context_rpmdb_changed_cb), context);
33- }
34-
35 /* copy any vendor distributed cached metadata */
36 if (!dnf_context_copy_vendor_cache(context, error))
37 return FALSE;