Package: rpm
Version: 4.4.1-8
Severity: normal

When trying to install a rpm-database in some dir using rpm --root, the
wrong dbpath is used for locking the transaction, which of course makes
the whole transaction fail.
This is shown when trying the following as a non-root user:

[EMAIL PROTECTED]:~/bla$ pwd
/home/taco/bla
[EMAIL PROTECTED]:~/bla$ mkdir -p root-dir/var/lib/rpm
[EMAIL PROTECTED]:~/bla$ rpm --root `pwd`/root-dir --initdb
error: can't create transaction lock on /var/lib/rpm/__db.000
[EMAIL PROTECTED]:~/bla$ find root-dir 
root-dir
root-dir/var
root-dir/var/lib
root-dir/var/lib/rpm
[EMAIL PROTECTED]:~/bla$ 

Note that trying the same as root succeeds (and that the database
is created in the right location....), so it's only the locking that's
not correct (IMHO).

Cheers,
Taco.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages rpm depends on:
ii  libbeecrypt6                  4.1.2-4    open source C library of cryptogra
ii  libbz2-1.0                    1.0.3-2    high-quality block-sorting file co
ii  libc6                         2.3.6-4    GNU C Library: Shared libraries an
ii  libpopt0                      1.7-5      lib for parsing cmdline parameters
ii  librpm4                       4.4.1-8    RPM shared library
ii  libselinux1                   1.30-1     SELinux shared libraries
ii  libssl0.9.8                   0.9.8a-8   SSL shared libraries
ii  perl                          5.8.8-3    Larry Wall's Practical Extraction 
ii  zlib1g                        1:1.2.3-11 compression library - runtime

rpm recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to