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: - Own all rpmdb files and ensure the list remains up to date
Date: Mon, 23 Nov 2026 09:32:06 GMT [thread overview]
Message-ID: <179542632630.1.2250215185590339102.rpms-rpm-d58b662497ff@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : d58b662497ff7adc3be1682143ecb7f101ff1f71
Author : Panu Matilainen <pmatilai@redhat.com>
Date : 2018-10-11T14:29:55+03:00
Stats : +9/-11 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/d58b662497ff7adc3be1682143ecb7f101ff1f71?branch=pmatilai-v6
Log:
- Own all rpmdb files and ensure the list remains up to date
- Drop redundant verify exclusions on rpmdb ghosts
---
diff --git a/rpm.spec b/rpm.spec
index 81a2675..301fd1c 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -23,7 +23,7 @@
%global rpmver 4.14.2
#global snapver rc2
-%global rel 4
+%global rel 5
%global srcver %{version}%{?snapver:-%{snapver}}
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
@@ -416,15 +416,8 @@ echo "r /var/lib/rpm/__db.*" > ${RPM_BUILD_ROOT}%{_tmpfilesdir}/rpm.conf
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
mkdir -p $RPM_BUILD_ROOT%{rpmhome}/macros.d
-mkdir -p $RPM_BUILD_ROOT/var/lib/rpm
-for dbi in \
- Basenames Conflictname Dirnames Group Installtid Name Obsoletename \
- Packages Providename Requirename Triggername Sha1header Sigmd5 \
- __db.001 __db.002 __db.003 __db.004 __db.005 __db.006 __db.007 \
- __db.008 __db.009
-do
- touch $RPM_BUILD_ROOT/var/lib/rpm/$dbi
-done
+# init an empty database for %ghost'ing
+./rpmdb --dbpath=$RPM_BUILD_ROOT/var/lib/rpm --initdb
# plant links to relevant db utils as rpmdb_foo for documention compatibility
%if %{without int_bdb}
@@ -464,7 +457,8 @@ make check || cat tests/rpmtests.log
%dir %{_sysconfdir}/rpm
%attr(0755, root, root) %dir /var/lib/rpm
-%attr(0644, root, root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/lib/rpm/*
+%attr(0644, root, root) %ghost %config(missingok,noreplace) /var/lib/rpm/*
+%attr(0644, root, root) %ghost /var/lib/rpm/.*.lock
%{_bindir}/rpm
%{_bindir}/rpm2archive
@@ -589,6 +583,10 @@ make check || cat tests/rpmtests.log
%doc doc/librpm/html/*
%changelog
+* Thu Oct 11 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-5
+- Own all rpmdb files and ensure the list remains up to date
+- Drop redundant verify exclusions on rpmdb ghosts
+
* Thu Oct 11 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-4
- Erm, really use the macro for tmpfiles.d path
- Erm, don't nuke buildroot at beginning of %%install
reply other threads:[~2026-11-23 9:32 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=179542632630.1.2250215185590339102.rpms-rpm-d58b662497ff@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