From 8332f4fa64480bfc84cd8e27644776e1e767c026 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Apr 02 2020 09:48:24 +0000 Subject: Fix db lock files not getting packaged Commit a5c45734197a2ea48c9897c471bb51d62a17a059 caused a literal /var/lib/rpm/.*.* file to be packaged as a ghost instead of the db lock files it was supposed to catch. Ensure any hidden db locks get copied too after initializing. Thanks to Thierry Vignaud for spotting. --- diff --git a/rpm.spec b/rpm.spec index 1252867..6830a28 100644 --- a/rpm.spec +++ b/rpm.spec @@ -25,7 +25,7 @@ %global rpmver 4.15.90 %global snapver git14971 -%global rel 2 +%global rel 3 %global srcver %{version}%{?snapver:-%{snapver}} %global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x} @@ -371,7 +371,7 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/rpm # init an empty database for %ghost'ing for all supported backends for be in %{?with_ndb:ndb} %{?with_sqlite:sqlite} %{?with_bdb:bdb}; do ./rpmdb --define "_db_backend ${be}" --dbpath=${PWD}/${be} --initdb - cp -vp ${be}/* $RPM_BUILD_ROOT/var/lib/rpm/ + cp -va ${be}/. $RPM_BUILD_ROOT/var/lib/rpm/ done %find_lang %{name} @@ -523,6 +523,9 @@ make check || (cat tests/rpmtests.log; exit 1) %doc doc/librpm/html/* %changelog +* Thu Apr 02 2020 Panu Matilainen - 4.15.90-0.git14971.3 +- Fix db lock files not getting packaged + * Tue Mar 31 2020 Panu Matilainen - 4.15.90-0.git14971.2 - Move bdb specific systemd-tmpfiles cleanup crutch behind the bdb bcond