Wind River Support Network

HomeDefectsLIN5-19487
Fixed

LIN5-19487 : rpm --root options creates currupt DB.

Created: Sep 22, 2014    Updated: Dec 19, 2017
Resolved Date: Oct 30, 2014
Found In Version: 5.0.1
Fix Version: 5.0.1.21
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Userspace
Architecture: IA64

Description

The customer found the --root option created an environment that is not usable.  They were able to narrow the issue down to this patch:
 rpm-reloc-macros.patch

In my testing I used strace and found two issue:

1) _target macro was not expanded.  Here are two open calls:
open("/usr/lib64/rpm/%{_target}/rpmpopt", O_RDONLY) = -1 ENOENT
open("/etc/rpm/%{_target}/rpmpopt", O_RDONLY) = -1 ENOENT

2) Serval files in the database directory are poluted with the full chroot path. (Customers Complaint)

Steps to Reproduce

The attached script from the customer shows the issue.
Here is the list of RPM's I used:
base-files-3.0.14-r73.1.qemux86_64.rpm

bash-4.2-r4.x86_64.rpm
beecrypt-4.2.1-r3.x86_64.rpm
busybox-1.19.4-r17.x86_64.rpm
coreutils-8.14-r7.x86_64.rpm
db-5.3.15-r7.x86_64.rpm
elfutils-0.148-r7.x86_64.rpm
elfutils-binutils-0.148-r7.x86_64.rpm
file-5.11-r0.x86_64.rpm
grep-2.9-r2.x86_64.rpm
libacl1-2.2.51-r5.x86_64.rpm
libattr1-2.4.46-r5.x86_64.rpm
libbz2-0-1.0.6-r5.x86_64.rpm
libc6-2.15-r13.x86_64.rpm
libcap2-2.22-r5.x86_64.rpm
libcrypto1.0.0-1.0.0i-r0.3.x86_64.rpm
libgcc-s1-4.6.3-r2.x86_64.rpm
libgmp10-5.0.4-r0.x86_64.rpm
libicudata36-3.6-r7.x86_64.rpm
libicui18n36-3.6-r7.x86_64.rpm
libicuio36-3.6-r7.x86_64.rpm
libicuuc36-3.6-r7.x86_64.rpm
libossp-uuid16-1.6.2-r1.x86_64.rpm
libpcre0-8.21-r1.x86_64.rpm
libpcreposix0-8.21-r1.x86_64.rpm
libpopt0-1.16-r1.x86_64.rpm
libssl1.0.0-1.0.0i-r0.3.x86_64.rpm
libstdc++6-4.6.3-r2.x86_64.rpm
libtinfo5-5.9-r13.1.x86_64.rpm
libz1-1.2.7-r1.x86_64.rpm
rpm-5.4.9-r62.x86_64.rpm
rpm-common-5.4.9-r62.x86_64.rpm
rpm-libs-5.4.9-r62.x86_64.rpm
strace-4.7-r2.x86_64.rpm
update-alternatives-cworth-0.1.8+svnr633-r10.0.x86_64.rpm
update-rc.d-0.7-r4.all.rpm

Other Downloads


Live chat
Online