Package: rpm
Version: 4.4.1-11
Severity: normal
Hi,
I understand that you don't create a /var/lib/rpm directory to block
people from installing *.rpm packages directly. However,
%_rpmlock_path defaults to %{_dbpath}/__db.000, and while RPM seems to
fallback on not using locks when it can't write to the directory of
%_rpmlock_path, it will fail if the directory doesn't exist.
I suggest you change the default of the rpmlock macro to:
%_rpmlock_path /var/lib/rpm-lock/__db.000
and ship an empty /var/lib/rpm-lock directory.
This is particularly important since tools such as "yum" will use RPM
transactions which seem to require this locking mechanism to work
properly.
In summary, to be able to use yum (for example to bootstrap RPM based
distribution for Xen guests or for simple chroots), it is enough to
either:
- create /var/lib/rpm
- or create a /var/lib/rpm-lock and set %_rpmlock_path
to /var/lib/rpm-lock/__db.000
Bye,
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages rpm depends on:
ii libbeecr 4.1.2-6 open source C library of cryptogra
ii libbz2-1 1.0.3-6 high-quality block-sorting file co
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libcomer 1.39+1.40-WIP-2006.10.02+dfsg-2 common error description library
ii libkrb53 1.4.4-4 MIT Kerberos runtime libraries
ii libpopt0 1.10-3 lib for parsing cmdline parameters
ii librpm4 4.4.2-1 RPM shared library
ii libselin 1.32-3 SELinux shared libraries
ii libssl0. 0.9.8c-3 SSL shared libraries
ii perl 5.8.8-6.1 Larry Wall's Practical Extraction
ii zlib1g 1:1.2.3-13 compression library - runtime
rpm recommends no packages.
-- no debconf information
--
Loïc Minier <[EMAIL PROTECTED]>