rootfs_rpm.bbclass: maybe no rpm postinst script
cover rootfs_rpm.bbclass: maybe no rpm postinst script
The following changes since commit b1f37e51e40774418a1b4c6e3df78df6ac6ee938:
package_rpm.bbclass: no initial_solution in the second build (2012-09-26 10:15:20 +0800)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib robert/rpm_head
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/rpm_head
Robert Yang (1):
rootfs_rpm.bbclass: maybe no rpm postinst script
meta/classes/rootfs_rpm.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.11.2
PATCH 1/1 rootfs_rpm.bbclass: maybe no rpm postinst script
There maybe no rpm postinst script (e.g., core-image-minimal), then the "*" is not expanded, and there would be error:
head: cannot open `rpm-postinsts/*' for reading: No such file or directory
Check whether it exists or not will fix the problem.
[YOCTO #3172]
--- meta/classes/rootfs_rpm.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes/rootfs_rpm.bbclass +3 -1
@@ -81,7 +81,9 @@ fakeroot rootfs_rpm_do_rootfs () { # Report delayed package scriptlets for i in ${IMAGE_ROOTFS}/etc/rpm-postinsts/*; do - echo "Delayed package scriptlet: `head -n 3 $i | tail -n 1`" + if [ -f $i ]; then + echo "Delayed package scriptlet: `head -n 3 $i | tail -n 1`" + fi done install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
Signature · 1 line
1.7.11.2
Saul Wold
AppliedQuoted 6 lines · Robert Yang
The following changes since commit
b1f37e51e40774418a1b4c6e3df78df6ac6ee938:package_rpm.bbclass: no initial_solution in the second build (2012-09-26 10:15:20 +0800)are available in the git repository at:
Quoted 9 lines
git://git.pokylinux.org/poky-contribrobert/rpm_head
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/rpm_headRobert Yang (1):
rootfs_rpm.bbclass: maybe no rpm postinst scriptmeta/classes/rootfs_rpm.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Merged into OE-Core
Thanks
Sau!