Fixed
Created: Sep 22, 2014
Updated: Dec 3, 2018
Resolved Date: Oct 21, 2014
Found In Version: 6.0.0.3
Fix Version: 6.0.0.13
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace
First reported in WRL5.
jira.wrs.com/browse/LIN5-19487
In looking at a customers issue I used strace and grep revealing two issues:
1. _target in not substituted in the rpmopt open:
open("/usr/lib64/rpm/%{_target}/rpmpopt", O_RDONLY)
open("/etc/rpm/%{_target}/rpmpopt", O_RDONLY)
2. --root is used to boot strap the install, but grep shows the host path, not the chroot path is used.
Using --dbpath can help.
The attached script shows the steps used.
Here is the list of RPM's used:
base-files-3.0.14-r73.2.0.qemux86_64.rpm
update-alternatives-cworth-0.1.8+svnr653-r13.0.0.x86_64.rpm
bash-4.2-r6.0.x86_64.rpm
beecrypt-4.2.1-r3.0.x86_64.rpm
busybox-1.21.1-r0.0.x86_64.rpm
db-5.3.21-r0.0.x86_64.rpm
file-5.14-r1.0.x86_64.rpm
grep-2.14-r0.0.x86_64.rpm
libacl1-2.2.51-r5.0.x86_64.rpm
libattr1-2.4.46-r4.0.x86_64.rpm
libbz2-0-1.0.6-r5.0.x86_64.rpm
libc6-2.18-r2.0.x86_64.rpm
libcap2-2.22-r5.0.x86_64.rpm
libcrypto1.0.0-1.0.1e-r16.4.0.x86_64.rpm
libelf1-0.155-r0.0.x86_64.rpm
libgcc1-4.8.1-r2.0.x86_64.rpm
libgmp10-5.1.1-r0.0.x86_64.rpm
libicudata51-51.2-r1.0.x86_64.rpm
libicui18n51-51.2-r1.0.x86_64.rpm
libicuio51-51.2-r1.0.x86_64.rpm
libicuuc51-51.2-r1.0.x86_64.rpm
libossp-uuid16-1.6.2-r2.0.x86_64.rpm
libpcre1-8.33-r0.0.x86_64.rpm
libpcreposix0-8.33-r0.0.x86_64.rpm
libpopt0-1.16-r3.0.x86_64.rpm
libssl1.0.0-1.0.1e-r16.4.0.x86_64.rpm
libstdc++6-4.8.1-r2.0.x86_64.rpm
libtinfo5-5.9-r15.1.0.x86_64.rpm
libz1-1.2.8-r0.0.x86_64.rpm
rpm-5.4.9-r66.0.x86_64.rpm
rpm-common-5.4.9-r66.0.x86_64.rpm
rpm-libs-5.4.9-r66.0.x86_64.rpm
run-postinsts-1.0-r9.0.x86_64.rpm
strace-4.8-r0.0.x86_64.rpm