Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] iputils: Fix postinst to run on cross rootfs generation
@ 2012-08-23  1:31 Khem Raj
  2012-08-23  3:42 ` Saul Wold
  2012-08-23  9:53 ` Koen Kooi
  0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2012-08-23  1:31 UTC (permalink / raw)
  To: openembedded-core

rpm shows error messages like /bin/traceroute6 not found
when building cross rootfs

Yocto # 2894

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-extended/iputils/iputils_s20101006.bb |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-extended/iputils/iputils_s20101006.bb b/meta/recipes-extended/iputils/iputils_s20101006.bb
index 62e2b5e..856bde4 100644
--- a/meta/recipes-extended/iputils/iputils_s20101006.bb
+++ b/meta/recipes-extended/iputils/iputils_s20101006.bb
@@ -59,15 +59,15 @@ ALTERNATIVE_${PN}-ping6 = "ping6"
 ALTERNATIVE_LINK_NAME[ping6] = "${base_bindir}/ping6"
 
 pkg_postinst_${PN}-ping () {
-       chmod 4555 ${base_bindir}/ping
+       chmod 4555 $D${base_bindir}/ping
 }
 
 pkg_postinst_${PN}-ping6 () {
-       chmod 4555 ${base_bindir}/ping6
+       chmod 4555 $D${base_bindir}/ping6
 }
 
 pkg_postinst_${PN}-traceroute6 () {
-	chmod 4555 ${base_bindir}/traceroute6
+	chmod 4555 $D${base_bindir}/traceroute6
 }
 
 PACKAGES += "${PN}-ping ${PN}-ping6 ${PN}-arping ${PN}-tracepath ${PN}-tracepath6 ${PN}-traceroute6"
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] iputils: Fix postinst to run on cross rootfs generation
  2012-08-23  1:31 [PATCH] iputils: Fix postinst to run on cross rootfs generation Khem Raj
@ 2012-08-23  3:42 ` Saul Wold
  2012-08-23  5:24   ` Khem Raj
  2012-08-23  9:53 ` Koen Kooi
  1 sibling, 1 reply; 4+ messages in thread
From: Saul Wold @ 2012-08-23  3:42 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

On 08/22/2012 06:31 PM, Khem Raj wrote:
> rpm shows error messages like /bin/traceroute6 not found
> when building cross rootfs
>
> Yocto # 2894
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>   meta/recipes-extended/iputils/iputils_s20101006.bb |    6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-extended/iputils/iputils_s20101006.bb b/meta/recipes-extended/iputils/iputils_s20101006.bb
> index 62e2b5e..856bde4 100644
> --- a/meta/recipes-extended/iputils/iputils_s20101006.bb
> +++ b/meta/recipes-extended/iputils/iputils_s20101006.bb
> @@ -59,15 +59,15 @@ ALTERNATIVE_${PN}-ping6 = "ping6"
>   ALTERNATIVE_LINK_NAME[ping6] = "${base_bindir}/ping6"
>
>   pkg_postinst_${PN}-ping () {
> -       chmod 4555 ${base_bindir}/ping
> +       chmod 4555 $D${base_bindir}/ping
So that's the magic!  I was trying to figure out what the right prefix 
was in there.  I think we need to do an audit of all pkg_postinst, 
because I saw other places where ${xxx} was used or even worse "/etc/..."

Sau!

>   }
>
>   pkg_postinst_${PN}-ping6 () {
> -       chmod 4555 ${base_bindir}/ping6
> +       chmod 4555 $D${base_bindir}/ping6
>   }
>
>   pkg_postinst_${PN}-traceroute6 () {
> -	chmod 4555 ${base_bindir}/traceroute6
> +	chmod 4555 $D${base_bindir}/traceroute6
>   }
>
>   PACKAGES += "${PN}-ping ${PN}-ping6 ${PN}-arping ${PN}-tracepath ${PN}-tracepath6 ${PN}-traceroute6"
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] iputils: Fix postinst to run on cross rootfs generation
  2012-08-23  3:42 ` Saul Wold
@ 2012-08-23  5:24   ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2012-08-23  5:24 UTC (permalink / raw)
  To: Saul Wold; +Cc: openembedded-core

On Wed, Aug 22, 2012 at 8:42 PM, Saul Wold <sgw@linux.intel.com> wrote:
> On 08/22/2012 06:31 PM, Khem Raj wrote:
>>
>> rpm shows error messages like /bin/traceroute6 not found
>> when building cross rootfs
>>
>> Yocto # 2894
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> ---
>>   meta/recipes-extended/iputils/iputils_s20101006.bb |    6 +++---
>>   1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/meta/recipes-extended/iputils/iputils_s20101006.bb
>> b/meta/recipes-extended/iputils/iputils_s20101006.bb
>> index 62e2b5e..856bde4 100644
>> --- a/meta/recipes-extended/iputils/iputils_s20101006.bb
>> +++ b/meta/recipes-extended/iputils/iputils_s20101006.bb
>> @@ -59,15 +59,15 @@ ALTERNATIVE_${PN}-ping6 = "ping6"
>>   ALTERNATIVE_LINK_NAME[ping6] = "${base_bindir}/ping6"
>>
>>   pkg_postinst_${PN}-ping () {
>> -       chmod 4555 ${base_bindir}/ping
>> +       chmod 4555 $D${base_bindir}/ping
>
> So that's the magic!  I was trying to figure out what the right prefix was
> in there.  I think we need to do an audit of all pkg_postinst, because I saw
> other places where ${xxx} was used or even worse "/etc/..."
>

yes a complete audit will fix many of these kind of issues.

> Sau!
>
>
>>   }
>>
>>   pkg_postinst_${PN}-ping6 () {
>> -       chmod 4555 ${base_bindir}/ping6
>> +       chmod 4555 $D${base_bindir}/ping6
>>   }
>>
>>   pkg_postinst_${PN}-traceroute6 () {
>> -       chmod 4555 ${base_bindir}/traceroute6
>> +       chmod 4555 $D${base_bindir}/traceroute6
>>   }
>>
>>   PACKAGES += "${PN}-ping ${PN}-ping6 ${PN}-arping ${PN}-tracepath
>> ${PN}-tracepath6 ${PN}-traceroute6"
>>
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] iputils: Fix postinst to run on cross rootfs generation
  2012-08-23  1:31 [PATCH] iputils: Fix postinst to run on cross rootfs generation Khem Raj
  2012-08-23  3:42 ` Saul Wold
@ 2012-08-23  9:53 ` Koen Kooi
  1 sibling, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2012-08-23  9:53 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core


Op 23 aug. 2012, om 03:31 heeft Khem Raj <raj.khem@gmail.com> het volgende geschreven:

> rpm shows error messages like /bin/traceroute6 not found
> when building cross rootfs
> 
> Yocto # 2894
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> meta/recipes-extended/iputils/iputils_s20101006.bb |    6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/meta/recipes-extended/iputils/iputils_s20101006.bb b/meta/recipes-extended/iputils/iputils_s20101006.bb
> index 62e2b5e..856bde4 100644
> --- a/meta/recipes-extended/iputils/iputils_s20101006.bb
> +++ b/meta/recipes-extended/iputils/iputils_s20101006.bb
> @@ -59,15 +59,15 @@ ALTERNATIVE_${PN}-ping6 = "ping6"
> ALTERNATIVE_LINK_NAME[ping6] = "${base_bindir}/ping6"
> 
> pkg_postinst_${PN}-ping () {
> -       chmod 4555 ${base_bindir}/ping
> +       chmod 4555 $D${base_bindir}/ping
> }
> 
> pkg_postinst_${PN}-ping6 () {
> -       chmod 4555 ${base_bindir}/ping6
> +       chmod 4555 $D${base_bindir}/ping6
> }
> 
> pkg_postinst_${PN}-traceroute6 () {
> -	chmod 4555 ${base_bindir}/traceroute6
> +	chmod 4555 $D${base_bindir}/traceroute6
> }
> 
> PACKAGES += "${PN}-ping ${PN}-ping6 ${PN}-arping ${PN}-tracepath ${PN}-tracepath6 ${PN}-traceroute6"

MIssing PR bump


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-23 10:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-23  1:31 [PATCH] iputils: Fix postinst to run on cross rootfs generation Khem Raj
2012-08-23  3:42 ` Saul Wold
2012-08-23  5:24   ` Khem Raj
2012-08-23  9:53 ` Koen Kooi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox