diff --git a/rpm.spec b/rpm.spec index fa3c3c5..9a38be2 100644 --- a/rpm.spec +++ b/rpm.spec @@ -4,6 +4,9 @@ %define with_internal_db 1 %{nil} %define strip_binaries 1 +# XXX enable at your own risk, CDB access to rpmdb isn't cooked yet. +%define enable_cdb create cdb + # XXX legacy requires './' payload prefix to be omitted from rpm packages. %define _noPayloadPrefix 1 @@ -14,7 +17,7 @@ Summary: The Red Hat package management system. Name: rpm %define version 4.0.3 Version: %{version} -Release: 0.69 +Release: 0.70 Group: System Environment/Base Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{version}.tar.gz Copyright: GPL @@ -148,12 +151,16 @@ mkdir -p $RPM_BUILD_ROOT/etc/rpm cat << E_O_F > $RPM_BUILD_ROOT/etc/rpm/macros.db1 %%_dbapi 1 E_O_F +cat << E_O_F > $RPM_BUILD_ROOT/etc/rpm/macros.cdb +%{?enable_cdb:#%%__dbi_cdb %{enable_cdb}} +E_O_F mkdir -p $RPM_BUILD_ROOT/var/lib/rpm for dbi in \ Basenames Conflictname Dirnames Group Installtid Name Providename \ Provideversion Removetid Requirename Requireversion Triggername \ - Packages __db.001 __db.002 __db.003 __db.004 + Packages __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 @@ -239,14 +246,13 @@ fi %config(noreplace,missingok) /etc/cron.daily/rpm %config(noreplace,missingok) /etc/logrotate.d/rpm %dir /etc/rpm -%config(noreplace,missingok) /etc/rpm/macros.db1 +%config(noreplace,missingok) /etc/rpm/macros.* %attr(0755, rpm, rpm) %dir /var/lib/rpm %define rpmdbattr %attr(0644, rpm, rpm) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %rpmdbattr /var/lib/rpm/Basenames %rpmdbattr /var/lib/rpm/Conflictname -%rpmdbattr /var/lib/rpm/__db.001 -%rpmdbattr /var/lib/rpm/__db.002 +%rpmdbattr /var/lib/rpm/__db.0* %rpmdbattr /var/lib/rpm/Dirnames %rpmdbattr /var/lib/rpm/Group %rpmdbattr /var/lib/rpm/Installtid @@ -430,6 +436,12 @@ fi %{__prefix}/include/popt.h %changelog +* Fri Jul 13 2001 Jeff Johnson +- isolate cdb access configuration (experimental, use at your own risk). +- fix: hard fail on locked dbopen if CDB locking not in use. +- fix: dbconfig with mp_mmapsize=16Mb/mp_size=1Mb for + "everything ENOSPC" failure check. + * Thu Jul 12 2001 Jeff Johnson - fix: scope multi-mode options like --nodeps correctly (#48825). diff --git a/sources b/sources index 6e1e703..24d26cb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -36f6b2335654ea7436813ea2119e4e0c rpm-4.0.3.tar.gz +75d9031d5eeb5e3cbca6acb5abfcdd53 rpm-4.0.3.tar.gz