Bug 327

Summary: rpm package installation failure in target
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Qing He <qing.he>
Component: meta-yoctoAssignee: Mark Hatle <mark.hatle>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, kevin.tian, mark.hatle, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: Other   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Qing He 2010-09-14 19:33:53 UTC
installing new rpm packages in target fails, while other functionalities like rpm -qa and rpm -qi work fine.

environment: poky-image-sato, qemux86 (commit c01e8760ba5552e91f3af764c1233c2462494213)


reproduce step:
  1. start a qemux86 poky-image-sato image
  2. scp an rpm package to the current directory, e.g.:
        scp 192.168.7.1:..../tmp/deploy/rpm/i586/ldd-2.10.1-r4.i586.rpm .
  3. try to install the package, use:
        rpm -ivh ldd-2.10.1-r4.i586.rpm

  4. the current failure result is:
        error: Failed dependencies:
                / is needed by ldd-2.10.1-r4.i586
        error: LOOP:
        error: removing ldd-2.10.1-r4.i586 "Requires: /usr" from tsort relations.
Comment 1 Qing He 2010-09-14 19:34:30 UTC
Cc Mark Hatle
Comment 2 Mark Hatle 2010-09-15 08:44:35 UTC
The filesystem package or some other package in the system needs to provide the '/' directory.  I'll see what I can do to facilitate this.
Comment 3 Mark Hatle 2010-09-15 09:40:42 UTC
I've got a workaround that can unblock testing, can you try the following (on the target):


mkdir -p /etc/rpm/sysinfo/
echo "/" >> /etc/rpm/sysinfo/Dirnames


then run your test.  If this works, I'll add this to the rpm rootfs implementation.
Comment 4 Qing He 2010-09-15 18:03:42 UTC
Yes, this fix works. The package can be installed successfully. Although the following error message still exists:

error: LOOP:
error: removing ldd-2.10.1-r4.i586 "Requires: /usr" from tsort relations.
Preparing...      ########### [100%]
   1:ldd          ########### [100%]
Comment 5 Mark Hatle 2010-09-15 18:07:05 UTC
The "error: LOOP" message is not an error.  Could you please open a second defect on this item?  It should be addressed via another change.
Comment 6 Qing He 2010-09-15 18:08:09 UTC
ok, I'll file another bug.
Comment 8 Qing He 2010-10-21 00:58:58 UTC
Installation now works well