All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] point prelink.conf to ${IMAGE_ROOTFS}
@ 2012-07-17 22:16 Nathan West
  2012-07-18  0:48 ` Saul Wold
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan West @ 2012-07-17 22:16 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]

Hopefully I do this right. First time patching (ever! this is exciting :-) )

The --root option doesn't work and isn't documented anywhere I could find,
and without the ${IMAGE_ROOTFS} before the config file it was point to my
native /etc/prelink.conf (which doesn't exist and probably would be useful
if it did)

Be gentle if I screwed up!
-Nathan



---
 meta/classes/image-prelink.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/image-prelink.bbclass
b/meta/classes/image-prelink.bbclass
index 53ef47e..2d62f03 100644
--- a/meta/classes/image-prelink.bbclass
+++ b/meta/classes/image-prelink.bbclass
@@ -21,7 +21,7 @@ prelink_image () {
  fi

  # prelink!
- ${STAGING_DIR_NATIVE}${sbindir_native}/prelink --root ${IMAGE_ROOTFS}
-amR -N -c ${sysconfdir}/prelink.conf
+ ${STAGING_DIR_NATIVE}${sbindir_native}/prelink ${IMAGE_ROOTFS} -amR -N -c
${IMAGE_ROOTFS}${sysconfdir}/prelink.conf

  # Remove the prelink.conf if we had to add it.
  if [ "$dummy_prelink_conf" = "true" ]; then
-- 
1.7.9.5

[-- Attachment #2: Type: text/html, Size: 4108 bytes --]

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

* Re: [PATCH] point prelink.conf to ${IMAGE_ROOTFS}
  2012-07-17 22:16 [PATCH] point prelink.conf to ${IMAGE_ROOTFS} Nathan West
@ 2012-07-18  0:48 ` Saul Wold
       [not found]   ` <CACFtY+KW+VfCKmaWTkO5vjw3k7fmR2Awfb31YUZc2cAhXCEi0A@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Saul Wold @ 2012-07-18  0:48 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Nathan West

On 07/17/2012 03:16 PM, Nathan West wrote:
> Hopefully I do this right. First time patching (ever! this is exciting :-) )
>
Welcome to the wonderful world of patching!

> The --root option doesn't work and isn't documented anywhere I could
> find, and without the ${IMAGE_ROOTFS} before the config file it was
> point to my native /etc/prelink.conf (which doesn't exist and probably
> would be useful if it did)
>
Which prelink are you using, it's possible you did not look at the 
correct one.

There should be a tmp/sysroot/x86_64-linux/usr/sbin/prelink (if you are 
building on a 64bit machine, otherwise i586-linux), that's the prelink 
binary and a --help to that will show the --root option.

It should not be using your host's /etc/prelink.conf, but the sysroot 
version.

The --root option should take care of it as it's described as follows:

      --root=ROOT_PATH       Prefix all paths with ROOT_PATH

So, the next question is what's going on to cause it to use your host's 
prelinker instead of the native version that should be build as part of 
the native tools?


> Be gentle if I screwed up!
No worries.
> -Nathan
>

Hope that was not too painful, let see how we can help you accomplish 
what you are trying to do.

Sau!


>
>
> ---
>   meta/classes/image-prelink.bbclass |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/image-prelink.bbclass
> b/meta/classes/image-prelink.bbclass
> index 53ef47e..2d62f03 100644
> --- a/meta/classes/image-prelink.bbclass
> +++ b/meta/classes/image-prelink.bbclass
> @@ -21,7 +21,7 @@ prelink_image () {
> fi
> # prelink!
> -${STAGING_DIR_NATIVE}${sbindir_native}/prelink --root ${IMAGE_ROOTFS}
> -amR -N -c ${sysconfdir}/prelink.conf
> +${STAGING_DIR_NATIVE}${sbindir_native}/prelink ${IMAGE_ROOTFS} -amR -N
> -c ${IMAGE_ROOTFS}${sysconfdir}/prelink.conf
> # Remove the prelink.conf if we had to add it.
> if [ "$dummy_prelink_conf" = "true" ]; then
> --
> 1.7.9.5
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>




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

* Re: [PATCH] point prelink.conf to ${IMAGE_ROOTFS}
       [not found]   ` <CACFtY+KW+VfCKmaWTkO5vjw3k7fmR2Awfb31YUZc2cAhXCEi0A@mail.gmail.com>
@ 2012-07-18 13:26     ` Nathan West
  0 siblings, 0 replies; 3+ messages in thread
From: Nathan West @ 2012-07-18 13:26 UTC (permalink / raw)
  To: Saul Wold, Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 3848 bytes --]

Wow I'm bad at this. Sorry again about that reply only to you!

On Wed, Jul 18, 2012 at 9:24 AM, Nathan West <nate.ewest@gmail.com> wrote:

> Thanks Saul. Sorry about the duplicate there...
>
> I think we are both right somehow... I didn't have this problem using
> vanilla oe-core,
> it only appeared after setting up another oe-core through the angstrom
> setup scripts.
>
> Based on that it appears angstrom setup scripts somehow gave me a
> different version
> of prelink. After looking in the vanilla oe-core sysroots I do in fact see
> the --root option,
> but the angstrom setup scripts sysroots does not have it (I promise I
> checked before
> the patch! :-) )
>
> Anyway it looks like the --root is a problem with angstrom and I will take
> it over there,
> barring some insight from someone on this list.
>
> I do think the config change is still valid though. Starting on line 14 @
>
> http://cgit.openembedded.org/openembedded-core/tree/meta/classes/image-prelink.bbclass#n14
>
> If there isn't one already a config is copied to
> ${IMAGE_ROOTFS}${sysconfdir}, then
> the prelink command leaves out the ${IMAGE_ROOTFS}.
>
> -Nathan
>
>
>
>
> On Tue, Jul 17, 2012 at 8:48 PM, Saul Wold <sgw@linux.intel.com> wrote:
>
>> On 07/17/2012 03:16 PM, Nathan West wrote:
>>
>>> Hopefully I do this right. First time patching (ever! this is exciting
>>> :-) )
>>>
>>>  Welcome to the wonderful world of patching!
>>
>>
>>  The --root option doesn't work and isn't documented anywhere I could
>>> find, and without the ${IMAGE_ROOTFS} before the config file it was
>>> point to my native /etc/prelink.conf (which doesn't exist and probably
>>> would be useful if it did)
>>>
>>>  Which prelink are you using, it's possible you did not look at the
>> correct one.
>>
>> There should be a tmp/sysroot/x86_64-linux/usr/**sbin/prelink (if you
>> are building on a 64bit machine, otherwise i586-linux), that's the prelink
>> binary and a --help to that will show the --root option.
>>
>> It should not be using your host's /etc/prelink.conf, but the sysroot
>> version.
>>
>> The --root option should take care of it as it's described as follows:
>>
>>      --root=ROOT_PATH       Prefix all paths with ROOT_PATH
>>
>> So, the next question is what's going on to cause it to use your host's
>> prelinker instead of the native version that should be build as part of the
>> native tools?
>>
>>
>>
>>  Be gentle if I screwed up!
>>>
>> No worries.
>>
>>> -Nathan
>>>
>>>
>> Hope that was not too painful, let see how we can help you accomplish
>> what you are trying to do.
>>
>> Sau!
>>
>>
>>
>>>
>>> ---
>>>   meta/classes/image-prelink.**bbclass |    2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/meta/classes/image-prelink.**bbclass
>>> b/meta/classes/image-prelink.**bbclass
>>> index 53ef47e..2d62f03 100644
>>> --- a/meta/classes/image-prelink.**bbclass
>>> +++ b/meta/classes/image-prelink.**bbclass
>>> @@ -21,7 +21,7 @@ prelink_image () {
>>> fi
>>> # prelink!
>>> -${STAGING_DIR_NATIVE}${**sbindir_native}/prelink --root ${IMAGE_ROOTFS}
>>>
>>> -amR -N -c ${sysconfdir}/prelink.conf
>>> +${STAGING_DIR_NATIVE}${**sbindir_native}/prelink ${IMAGE_ROOTFS} -amR
>>> -N
>>>
>>> -c ${IMAGE_ROOTFS}${sysconfdir}/**prelink.conf
>>> # Remove the prelink.conf if we had to add it.
>>> if [ "$dummy_prelink_conf" = "true" ]; then
>>> --
>>> 1.7.9.5
>>>
>>>
>>> ______________________________**_________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.**openembedded.org<Openembedded-core@lists.openembedded.org>
>>> http://lists.linuxtogo.org/**cgi-bin/mailman/listinfo/**
>>> openembedded-core<http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core>
>>>
>>>
>>
>

[-- Attachment #2: Type: text/html, Size: 5556 bytes --]

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

end of thread, other threads:[~2012-07-18 13:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-17 22:16 [PATCH] point prelink.conf to ${IMAGE_ROOTFS} Nathan West
2012-07-18  0:48 ` Saul Wold
     [not found]   ` <CACFtY+KW+VfCKmaWTkO5vjw3k7fmR2Awfb31YUZc2cAhXCEi0A@mail.gmail.com>
2012-07-18 13:26     ` Nathan West

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.