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.
Cc Mark Hatle
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.
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.
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%]
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.
ok, I'll file another bug.
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=fad896d4ea82b1cabcabbdf446a0c237f0005502
Installation now works well