public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Issue deprecation warning when creating BDB databases (#1787311)
Date: Mon, 23 Nov 2026 09:33:34 GMT	[thread overview]
Message-ID: <179542641440.1.12010055608369237968.rpms-rpm-b47d15685e9c@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : b47d15685e9ca07b3968660d07384a64742aa7e2
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2020-10-28T08:20:30+02:00
Stats  : +33/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/b47d15685e9ca07b3968660d07384a64742aa7e2?branch=pmatilai-v6

Log:
Issue deprecation warning when creating BDB databases (#1787311)

---
diff --git a/0001-Issue-deprecation-warning-when-creating-BDB-database.patch b/0001-Issue-deprecation-warning-when-creating-BDB-database.patch
new file mode 100644
index 0000000..94484d6
--- /dev/null
+++ b/0001-Issue-deprecation-warning-when-creating-BDB-database.patch
@@ -0,0 +1,28 @@
+From 5a80033676f331de2b0979fe7be9557279b6bff3 Mon Sep 17 00:00:00 2001
+Message-Id: <5a80033676f331de2b0979fe7be9557279b6bff3.1603865959.git.pmatilai@redhat.com>
+From: Panu Matilainen <pmatilai@redhat.com>
+Date: Wed, 28 Oct 2020 08:14:55 +0200
+Subject: [PATCH] Issue deprecation warning when creating BDB databases
+
+---
+ lib/backend/db3.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/lib/backend/db3.c b/lib/backend/db3.c
+index 68cfa6fb2..cb31676e7 100644
+--- a/lib/backend/db3.c
++++ b/lib/backend/db3.c
+@@ -874,6 +874,10 @@ static int db3_dbiOpen(rpmdb rdb, rpmDbiTagVal rpmtag, dbiIndex * dbip, int flag
+ 		oflags &= ~DB_RDONLY;
+ 		dbtype = (rpmtag == RPMDBI_PACKAGES) ?  DB_HASH : DB_BTREE;
+ 		retry_open--;
++		if (rpmtag == RPMDBI_PACKAGES) {
++		    rpmlog(RPMLOG_WARNING,
++			    "using deprecated bdb database backend");
++		}
+ 	    } else {
+ 		retry_open = 0;
+ 	    }
+-- 
+2.28.0
+

diff --git a/rpm.spec b/rpm.spec
index 2195bcd..df4ab66 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -25,7 +25,7 @@
 
 %global rpmver 4.16.0
 #global snapver rc1
-%global rel 2
+%global rel 3
 
 %global srcver %{rpmver}%{?snapver:-%{snapver}}
 %global srcdir %{?snapver:testing}%{!?snapver:rpm-%(echo %{rpmver} | cut -d'.' -f1-2).x}
@@ -57,6 +57,7 @@ Patch3: rpm-4.9.90-no-man-dirs.patch
 Patch5: rpm-4.12.0-rpm2cpio-hack.patch
 # https://github.com/rpm-software-management/rpm/pull/473
 Patch6: 0001-find-debuginfo.sh-decompress-DWARF-compressed-ELF-se.patch
+Patch7: 0001-Issue-deprecation-warning-when-creating-BDB-database.patch
 
 # Patches already upstream:
 
@@ -552,6 +553,9 @@ fi
 %doc doc/librpm/html/*
 
 %changelog
+* Wed Oct 28 2020 Panu Matilainen <pmatilai@redhat.com> - 4.16.0-3
+- Issue deprecation warning when creating BDB databases (#1787311)
+
 * Mon Oct 05 2020 Panu Matilainen <pmatilai@redhat.com> - 4.16.0-2
 - Clean up after test-suite which leaves a read-only tree behind
 

                 reply	other threads:[~2026-11-23  9:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542641440.1.12010055608369237968.rpms-rpm-b47d15685e9c@fedoraproject.org \
    --to=pmatilai@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox