public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - change platform sharedstatedir to something more sensible (#185862)
Date: Mon, 23 Nov 2026 09:25:28 GMT [thread overview]
Message-ID: <179542592810.1.14952926888559966758.rpms-rpm-1fe0077c88f2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 1fe0077c88f27d7f35266d675635407d549b2cd0
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date : 2009-01-31T11:36:08+00:00
Stats : +18/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/1fe0077c88f27d7f35266d675635407d549b2cd0?branch=pmatilai-v6
Log:
- change platform sharedstatedir to something more sensible (#185862)
- add rpmdb_foo links to db utils for documentation compatibility
---
diff --git a/rpm.spec b/rpm.spec
index 168d8d6..5a4c172 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -18,7 +18,7 @@
Summary: The RPM package management system
Name: rpm
Version: %{rpmver}
-Release: 0.%{snapver}.1%{?dist}
+Release: 0.%{snapver}.2%{?dist}
Group: System Environment/Base
Url: http://www.rpm.org/
Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -42,7 +42,8 @@ License: GPLv2+
Requires(post): coreutils
%if %{without int_bdb}
-Requires(post): compat-db45
+# normally db4-utils = %{bdbver} for the rpmdb_foo symlinks
+Requires: compat-db45
%endif
Requires: popt >= 1.10.2.1
Requires: crontabs
@@ -190,6 +191,7 @@ export CPPFLAGS CFLAGS LDFLAGS
--prefix=%{_usr} \
--sysconfdir=%{_sysconfdir} \
--localstatedir=%{_var} \
+ --sharedstatedir=%{_var}/lib \
--libdir=%{_libdir} \
%{!?with_int_bdb: --with-external-db} \
%{?with_sqlite: --enable-sqlite3} \
@@ -224,6 +226,16 @@ do
touch $RPM_BUILD_ROOT/var/lib/rpm/$dbi
done
+# plant links to db utils as rpmdb_foo so existing documantion is usable
+%if %{without int_bdb}
+for dbutil in \
+ archive deadlock dump load printlog \
+ recover stat svc upgrade verify
+do
+ ln -s ../../bin/db45_$dbutil $RPM_BUILD_ROOT/%{rpmhome}/rpmdb_$dbutil
+done
+%endif
+
%find_lang %{name}
find $RPM_BUILD_ROOT -name "*.la"|xargs rm -f
@@ -239,11 +251,7 @@ rm -rf $RPM_BUILD_ROOT
%posttrans
# XXX this is klunky and ugly, rpm itself should handle this
-%if %{with int_bdb}
dbstat=/usr/lib/rpm/rpmdb_stat
-%else
-dbstat=%{_bindir}/db45_stat
-%endif
if [ -x "$dbstat" ]; then
if "$dbstat" -e -h /var/lib/rpm 2>&1 | grep -q "doesn't match environment version \| Invalid argument"; then
rm -f /var/lib/rpm/__db.*
@@ -357,6 +365,10 @@ exit 0
%doc doc/librpm/html/*
%changelog
+* Sat Jan 31 2009 Panu Matilainen <pmatilai@redhat.com>
+- change platform sharedstatedir to something more sensible (#185862)
+- add rpmdb_foo links to db utils for documentation compatibility
+
* Fri Jan 30 2009 Panu Matilainen <pmatilai@redhat.com> - 4.6.0-0.rc4.1
- update to 4.6.0-rc4
- fixes #475582, #478907, #476737, #479869, #476201
reply other threads:[~2026-11-23 9:25 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=179542592810.1.14952926888559966758.rpms-rpm-1fe0077c88f2@fedoraproject.org \
--to=pmatilai@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