diff --git a/SOURCES/35.patch b/SOURCES/35.patch new file mode 100644 index 0000000..eedd938 --- /dev/null +++ b/SOURCES/35.patch @@ -0,0 +1,23 @@ +From 71ef959bb3bb8340ef142e2a10552dd4f38862ae Mon Sep 17 00:00:00 2001 +From: Jaroslav Mracek +Date: Tue, 12 Jun 2018 09:12:45 +0200 +Subject: [PATCH] Remove call of dnf_context_set_yumdb_enabled + +The function was removed from libdnf-0.14.0 without replacement. There is no +yumdb support anymore. Information is stored in sqlight database. +--- + dnf/dnf-main.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/dnf/dnf-main.c b/dnf/dnf-main.c +index 09454e0..ef5a04e 100644 +--- a/dnf/dnf-main.c ++++ b/dnf/dnf-main.c +@@ -100,7 +100,6 @@ context_new (void) + dnf_context_set_check_transaction (ctx, TRUE); + dnf_context_set_keep_cache (ctx, FALSE); + dnf_context_set_cache_age (ctx, 0); +- dnf_context_set_yumdb_enabled (ctx, FALSE); + + return ctx; + } diff --git a/SPECS/microdnf.spec b/SPECS/microdnf.spec index f8bd9ae..d3cb5b8 100644 --- a/SPECS/microdnf.spec +++ b/SPECS/microdnf.spec @@ -8,7 +8,7 @@ Name: microdnf Version: 2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: The microdnf package contains a limited functionality package manager written in C License: GPLv3+ @@ -16,13 +16,14 @@ URL: https://github.com/rpm-software-management/microdnf Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Patch0001: 0001-print-downloading-packages-only-once.patch Patch0002: 0002-do-not-fail-on-empty-transactions.patch +Patch0003: 35.patch BuildRequires: gcc BuildRequires: %{buildsys_req} BuildRequires: pkgconfig(glib-2.0) >= 2.44.0 BuildRequires: pkgconfig(gobject-2.0) >= 2.44.0 BuildRequires: pkgconfig(libpeas-1.0) >= 1.20.0 -BuildRequires: pkgconfig(libdnf) >= 0.7.0 +BuildRequires: pkgconfig(libdnf) >= 0.22.0 %description %{summary}. Supports basic commands like install, update and remove. @@ -57,6 +58,10 @@ popd %{_bindir}/%{name} %changelog +* Thu Feb 28 2019 Daniel Mach - 2-6 +- Rebuild against libdnf >= 0.22.0 with bumped soname +- Stop calling dnf_context_set_yumdb_enabled() - it was dropped from libdnf + * Fri May 18 2018 Daniel Mach - 2-5 - Rebuild on additional architectures