public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: cvsdist <cvsdist@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: auto-import changelog data from rpm-4.2.2-0.5.src.rpm
Date: Mon, 23 Nov 2026 09:21:59 GMT	[thread overview]
Message-ID: <179542571939.1.10511801418284766643.rpms-rpm-1b9ff93ce85a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : 1b9ff93ce85a49dd78a6a12b8ba7218d6c900bbd
            Author : cvsdist <cvsdist@fedoraproject.org>
            Date   : 2004-09-09T12:30:03+00:00
            Stats  : +27/-18 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/1b9ff93ce85a49dd78a6a12b8ba7218d6c900bbd?branch=pmatilai-v6

            Log:
            auto-import changelog data from rpm-4.2.2-0.5.src.rpm
Wed Dec 17 2003 Jeff Johnson <jbj@jbj.org> 4.2.2-0.5
- detect (and remove) dbenv files while upgrading to db-4.2.52.
- ensure that librpmdb links against just built, not system, librpmio.

---
diff --git a/rpm.spec b/rpm.spec
index fba93c8..4a0dfba 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -20,10 +20,9 @@ Name: rpm
 %define version 4.2.2
 Version: %{version}
 %{expand: %%define rpm_version %{version}}
-Release: 0.4
+Release: 0.5
 Group: System Environment/Base
 Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{rpm_version}.tar.gz
-Patch0: rpm-4.2.2-soflags.patch
 License: GPL
 Conflicts: patch < 2.5
 %ifos linux
@@ -118,13 +117,6 @@ shell-like rules.
 %prep
 %setup -q
 
-# XXX zap rpath for non-ix86
-cd db/dist
-%patch0 -p2
-./s_config
-cd ../..
-
-
 %build
 
 # XXX rpm needs functioning nptl for configure tests
@@ -152,6 +144,7 @@ CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} $WITH_PYTHON \
 %endif
 
 # XXX hack out O_DIRECT support in db4 for now.
+# XXX this hack not necessary with db-4.2.52 (which does not use O_DIRECT).
 perl -pi -e 's/#define HAVE_O_DIRECT 1/#undef HAVE_O_DIRECT/' db3/db_config.h
 
 make
@@ -224,7 +217,18 @@ exit 0
 %post
 %ifos linux
 /sbin/ldconfig
+
+# Establish correct rpmdb ownership.
 /bin/chown rpm.rpm /var/lib/rpm/[A-Z]*
+
+# XXX Detect (and remove) incompatible dbenv files during db-4.2.52 upgrade.
+# XXX Removing dbenv files in %%post opens a lock race window, a tolerable
+# XXX risk compared to the support issues involved with upgrading Berkeley DB.
+[ -w /var/lib/rpm/__db.001 ] &&
+/usr/lib/rpm/rpmdb_stat -CA -h /var/lib/rpm 2>&1 |
+grep "db_stat: Program version 4.2 doesn't match environment version" 2>&1 > /dev/null &&
+	rm -f /var/lib/rpm/__db*
+
 %endif
 exit 0
 
@@ -402,6 +406,15 @@ exit 0
 %rpmattr	%{__prefix}/lib/rpm/vpkg-provides.sh
 %rpmattr	%{__prefix}/lib/rpm/vpkg-provides2.sh
 
+%rpmattr	%{__prefix}/lib/rpm/rpmdb_deadlock
+%rpmattr	%{__prefix}/lib/rpm/rpmdb_dump
+%rpmattr	%{__prefix}/lib/rpm/rpmdb_load
+%rpmattr	%{__prefix}/lib/rpm/rpmdb_loadcvt
+%rpmattr	%{__prefix}/lib/rpm/rpmdb_stat
+%rpmattr	%{__prefix}/lib/rpm/rpmdb_svc
+%rpmattr	%{__prefix}/lib/rpm/rpmdb_verify
+%rpmattr	%{__prefix}/lib/rpm/rpmfile
+
 %{__mandir}/man8/rpmbuild.8*
 %{__mandir}/man8/rpmdeps.8*
 
@@ -433,14 +446,6 @@ exit 0
 %{__mandir}/man8/rpmcache.8*
 %{__mandir}/man8/rpmgraph.8*
 %rpmattr	%{__prefix}/lib/rpm/rpmcache
-%rpmattr	%{__prefix}/lib/rpm/rpmdb_deadlock
-%rpmattr	%{__prefix}/lib/rpm/rpmdb_dump
-%rpmattr	%{__prefix}/lib/rpm/rpmdb_load
-%rpmattr	%{__prefix}/lib/rpm/rpmdb_loadcvt
-%rpmattr	%{__prefix}/lib/rpm/rpmdb_svc
-%rpmattr	%{__prefix}/lib/rpm/rpmdb_stat
-%rpmattr	%{__prefix}/lib/rpm/rpmdb_verify
-%rpmattr	%{__prefix}/lib/rpm/rpmfile
 %rpmattr	%{__bindir}/rpmgraph
 
 %files -n popt
@@ -484,6 +489,10 @@ exit 0
 %{__includedir}/popt.h
 
 %changelog
+* Wed Dec 17 2003 Jeff Johnson <jbj@jbj.org> 4.2.2-0.5
+- detect (and remove) dbenv files while upgrading to db-4.2.52.
+- ensure that librpmdb links against just built, not system, librpmio.
+
 * Mon Dec 15 2003 Jeff Johnson <jbj@jbj.org> 4.2.2-0.3
 - make peace with libtool-1.5, autoconf-2.59, automake-1.8.
 - build with db-4.2.52 internal.

diff --git a/sources b/sources
index 3203408..aa3d327 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-17be75e0ac781a818cf8c316e59d437c  rpm-4.2.2.tar.gz
+71278db104a1fafd61a391aeadd8b4b3  rpm-4.2.2.tar.gz

                 reply	other threads:[~2026-11-23  9:21 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=179542571939.1.10511801418284766643.rpms-rpm-1b9ff93ce85a@fedoraproject.org \
    --to=cvsdist@fedoraproject.org \
    --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