* [PATCH 0/1] rootfs_rpm.bbclass: maybe no rpm postinst script
@ 2012-09-26 9:22 Robert Yang
2012-09-26 9:22 ` [PATCH 1/1] " Robert Yang
2012-10-24 15:08 ` [PATCH 0/1] " Saul Wold
0 siblings, 2 replies; 3+ messages in thread
From: Robert Yang @ 2012-09-26 9:22 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
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(-)
--
1.7.11.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] rootfs_rpm.bbclass: maybe no rpm postinst script
2012-09-26 9:22 [PATCH 0/1] rootfs_rpm.bbclass: maybe no rpm postinst script Robert Yang
@ 2012-09-26 9:22 ` Robert Yang
2012-10-24 15:08 ` [PATCH 0/1] " Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2012-09-26 9:22 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
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]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/classes/rootfs_rpm.bbclass | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index d95ccfa..c86cd09 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -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
--
1.7.11.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 0/1] rootfs_rpm.bbclass: maybe no rpm postinst script
2012-09-26 9:22 [PATCH 0/1] rootfs_rpm.bbclass: maybe no rpm postinst script Robert Yang
2012-09-26 9:22 ` [PATCH 1/1] " Robert Yang
@ 2012-10-24 15:08 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-10-24 15:08 UTC (permalink / raw)
To: Robert Yang; +Cc: Zhenfeng.Zhao, openembedded-core
On 09/26/2012 02:22 AM, Robert Yang wrote:
> 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(-)
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-24 15:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-26 9:22 [PATCH 0/1] rootfs_rpm.bbclass: maybe no rpm postinst script Robert Yang
2012-09-26 9:22 ` [PATCH 1/1] " Robert Yang
2012-10-24 15:08 ` [PATCH 0/1] " Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox