public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jindrich Novy <jnovy@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: build with internal libdb to allow libdb with higher soname
Date: Mon, 23 Nov 2026 09:27:44 GMT	[thread overview]
Message-ID: <179542606455.1.8554661697317147587.rpms-rpm-16864eefd361@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 16864eefd361e8a017b47ed8f1ebfc603c36de44
Author : Jindrich Novy <jnovy@redhat.com>
Date   : 2012-04-03T10:38:44+02:00
Stats  : +84/-10 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/16864eefd361e8a017b47ed8f1ebfc603c36de44?branch=pmatilai-v6

Log:
build with internal libdb to allow libdb with higher soname

---
diff --git a/.gitignore b/.gitignore
index d757575..39783d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1 @@
-rpm-4.8.1.tar.bz2
-/rpm-4.9.0-beta1.tar.bz2
-/rpm-4.9.0-rc1.tar.bz2
-/rpm-4.9.0.tar.bz2
-/rpm-4.9.1.tar.bz2
-/rpm-4.9.1.1.tar.bz2
-/rpm-4.9.1.2.tar.bz2
 /rpm-4.9.90.git11505.tar.bz2

diff --git a/rpm-4.9.90-int-libdb.patch b/rpm-4.9.90-int-libdb.patch
new file mode 100644
index 0000000..41f82bf
--- /dev/null
+++ b/rpm-4.9.90-int-libdb.patch
@@ -0,0 +1,67 @@
+commit dd05fdd35f680dfff606731a664859ae45762bb1
+Author: Panu Matilainen <pmatilai@redhat.com>
+Date:   Mon Mar 26 13:03:03 2012 +0300
+
+    Dont bother building internal versions of db utilities we dont need
+    
+    - rpmdb_dump, load, recover, verify, stat etc are useful at times,
+      but these are not. This also fixes build with internal db for
+      more recent versions of Berkeley DB.
+
+diff --git a/lib/Makefile.am b/lib/Makefile.am
+index 8c3b970..2245c19 100644
+--- a/lib/Makefile.am
++++ b/lib/Makefile.am
+@@ -82,29 +82,6 @@ CLEANFILES += $(libdb_la)
+ 
+ rpmlibexec_PROGRAMS =
+ 
+-rpmlibexec_PROGRAMS += rpmdb_archive
+-rpmdb_archive_SOURCES =
+-rpmdb_archive_LDADD = \
+-	$(top_builddir)/db3/db_archive.o \
+-	$(top_builddir)/db3/util_sig.o \
+-	librpm.la
+-
+-rpmlibexec_PROGRAMS += rpmdb_checkpoint
+-rpmdb_checkpoint_SOURCES =
+-rpmdb_checkpoint_LDADD = \
+-	$(top_builddir)/db3/db_checkpoint.o \
+-	$(top_builddir)/db3/util_log.o \
+-	$(top_builddir)/db3/util_sig.o \
+-	librpm.la
+-
+-rpmlibexec_PROGRAMS += rpmdb_deadlock
+-rpmdb_deadlock_SOURCES =
+-rpmdb_deadlock_LDADD = \
+-	$(top_builddir)/db3/db_deadlock.o \
+-	$(top_builddir)/db3/util_log.o \
+-	$(top_builddir)/db3/util_sig.o \
+-	librpm.la
+-
+ rpmlibexec_PROGRAMS += rpmdb_dump
+ rpmdb_dump_SOURCES =
+ rpmdb_dump_LDADD = \
+@@ -121,22 +98,6 @@ rpmdb_load_LDADD = \
+ 	$(top_builddir)/db3/util_sig.o \
+ 	librpm.la
+ 
+-rpmlibexec_PROGRAMS += rpmdb_printlog
+-rpmdb_printlog_SOURCES =
+-rpmdb_printlog_LDADD = \
+-	$(top_builddir)/db3/db_printlog.o \
+-	$(top_builddir)/db3/btree_autop.o \
+-	$(top_builddir)/db3/crdel_autop.o \
+-	$(top_builddir)/db3/db_autop.o \
+-	$(top_builddir)/db3/dbreg_autop.o \
+-	$(top_builddir)/db3/fileops_autop.o \
+-	$(top_builddir)/db3/hash_autop.o \
+-	$(top_builddir)/db3/qam_autop.o \
+-	$(top_builddir)/db3/rep_autop.o \
+-	$(top_builddir)/db3/txn_autop.o \
+-	$(top_builddir)/db3/util_sig.o \
+-	librpm.la
+-
+ rpmlibexec_PROGRAMS += rpmdb_recover
+ rpmdb_recover_SOURCES =
+ rpmdb_recover_LDADD = \

diff --git a/rpm.spec b/rpm.spec
index e1e1ae4..e1fed90 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -1,7 +1,7 @@
 # build against xz?
 %bcond_without xz
 # just for giggles, option to build with internal Berkeley DB
-%bcond_with int_bdb
+%bcond_without int_bdb
 # run internal testsuite?
 %bcond_without check
 # disable plugins initially
@@ -16,13 +16,13 @@
 %define srcver %{rpmver}%{?snapver:.%{snapver}}
 
 %define bdbname libdb
-%define bdbver 5.2.36
+%define bdbver 5.3.15
 %define dbprefix db
 
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}10%{?dist}
+Release: %{?snapver:0.%{snapver}.}11%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -50,6 +50,7 @@ Patch202: rpm-4.9.90-keyid-size.patch
 Patch203: rpm-4.9.90-header-datalength.patch
 Patch204: rpm-4.9.90-rpmdeps-args.patch
 Patch205: rpm-4.9.90-canonarch.patch
+Patch206: rpm-4.9.90-int-libdb.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -88,6 +89,9 @@ BuildRequires: elfutils-libelf-devel%{_isa}
 BuildRequires: readline-devel%{_isa} zlib-devel%{_isa}
 BuildRequires: nss-devel%{_isa}
 BuildRequires: nss-softokn-freebl-devel%{_isa}
+BuildRequires: libtool%{_isa}
+BuildRequires: autoconf
+BuildRequires: automake
 # The popt version here just documents an older known-good version
 BuildRequires: popt-devel%{_isa} >= 1.10.2
 BuildRequires: file-devel%{_isa}
@@ -225,6 +229,7 @@ packages on a system.
 %patch203 -p1 -b .header-datalength
 %patch204 -p1 -b .rpmdeps-args
 %patch205 -p1 -b .canonarch
+%patch206 -p1 -b .int-libdb
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -251,6 +256,11 @@ CPPFLAGS="$CPPFLAGS `pkg-config --cflags nss`"
 CFLAGS="$RPM_OPT_FLAGS"
 export CPPFLAGS CFLAGS LDFLAGS
 
+libtoolize
+aclocal
+autoconf
+automake
+
 # Using configure macro has some unwanted side-effects on rpm platform
 # setup, use the old-fashioned way for now only defining minimal paths.
 ./configure \
@@ -451,6 +461,9 @@ exit 0
 %doc COPYING doc/librpm/html/*
 
 %changelog
+* Tue Apr 03 2012 Jindrich Novy <jnovy@redhat.com> - 4.9.90-0.git11505.11
+- build with internal libdb to allow libdb build with higher soname
+
 * Fri Mar 30 2012 Panu Matilainen <pmatilai@redhat.com> - 4.9.90-0.git11505.10
 - fix base arch macro generation (#808250)
 

diff --git a/sources b/sources
index 3db9f2d..a2cd87f 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
 9206167147441cda84a56c338de9ebaa  rpm-4.9.90.git11505.tar.bz2
+5493fb5f7cc3915887c836b096f18773  db-5.3.15.tar.gz
\ No newline at end of file

                 reply	other threads:[~2026-11-23  9:27 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=179542606455.1.8554661697317147587.rpms-rpm-16864eefd361@fedoraproject.org \
    --to=jnovy@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