All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] patchelf: Add patchelf recipe
@ 2014-08-27 14:50 Richard Purdie
  2014-08-27 15:08 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2014-08-27 14:50 UTC (permalink / raw)
  To: openembedded-core

This is useful since it allows us to edit the RPATH and interpreter fields 
in ELF binaries. This is potentially particularly useful in improving the way
we can use the SDK and also potentially making native binaries more relocatable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/recipes-devtools/patchelf/patchelf_0.8.bb b/meta/recipes-devtools/patchelf/patchelf_0.8.bb
new file mode 100644
index 0000000..446e013
--- /dev/null
+++ b/meta/recipes-devtools/patchelf/patchelf_0.8.bb
@@ -0,0 +1,12 @@
+SRC_URI = "http://nixos.org/releases/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.bz2"
+LICENSE = "GPLv3"
+SUMMARY = "Tool to allow editing of RPATH and interpreter fields in ELF binaries"
+
+SRC_URI[md5sum] = "5b151e3c83b31f5931b4a9fc01635bfd"
+SRC_URI[sha256sum] = "c99f84d124347340c36707089ec8f70530abd56e7827c54d506eb4cc097a17e7"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
+
+inherit autotools
+
+BBCLASSEXTEND = "native"




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

* Re: [PATCH] patchelf: Add patchelf recipe
  2014-08-27 14:50 [PATCH] patchelf: Add patchelf recipe Richard Purdie
@ 2014-08-27 15:08 ` Khem Raj
  2014-08-27 15:50   ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2014-08-27 15:08 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

On Wed, Aug 27, 2014 at 7:50 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> This is useful since it allows us to edit the RPATH and interpreter fields
> in ELF binaries. This is potentially particularly useful in improving the way
> we can use the SDK and also potentially making native binaries more relocatable.
>

Long ago I had a patch series to replace chrpath with patchelf see
http://git.openembedded.org/openembedded-core-contrib/log/?h=kraj/patchelf

can that be considered now ?

> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
> diff --git a/meta/recipes-devtools/patchelf/patchelf_0.8.bb b/meta/recipes-devtools/patchelf/patchelf_0.8.bb
> new file mode 100644
> index 0000000..446e013
> --- /dev/null
> +++ b/meta/recipes-devtools/patchelf/patchelf_0.8.bb
> @@ -0,0 +1,12 @@
> +SRC_URI = "http://nixos.org/releases/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.bz2"
> +LICENSE = "GPLv3"
> +SUMMARY = "Tool to allow editing of RPATH and interpreter fields in ELF binaries"
> +
> +SRC_URI[md5sum] = "5b151e3c83b31f5931b4a9fc01635bfd"
> +SRC_URI[sha256sum] = "c99f84d124347340c36707089ec8f70530abd56e7827c54d506eb4cc097a17e7"
> +
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
> +
> +inherit autotools
> +
> +BBCLASSEXTEND = "native"
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [PATCH] patchelf: Add patchelf recipe
  2014-08-27 15:08 ` Khem Raj
@ 2014-08-27 15:50   ` Richard Purdie
  2014-08-27 21:12     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2014-08-27 15:50 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

On Wed, 2014-08-27 at 08:08 -0700, Khem Raj wrote:
> On Wed, Aug 27, 2014 at 7:50 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > This is useful since it allows us to edit the RPATH and interpreter fields
> > in ELF binaries. This is potentially particularly useful in improving the way
> > we can use the SDK and also potentially making native binaries more relocatable.
> >
> 
> Long ago I had a patch series to replace chrpath with patchelf see
> http://git.openembedded.org/openembedded-core-contrib/log/?h=kraj/patchelf
> 
> can that be considered now ?

The issue is one of dependencies. We need chrpath/patchelf to relocate
things like {autoconf|automake|pkgconfig}-native. Native
patchelf/chrpath depend on those things to build so if we don't have it
in ASSUME_PROVIDED, we get circular dependencies.

chrpath is widely available in most distros. Unfortunately patchelf is
not. We therefore can't easily put patchelf-native into
ASSUME_PROVIDED :(

So the reason the above didn't merge hasn't really changed, much as I'd
also wish it had.

This does not stop us using patchelf for other things though (and I
believe we should).

Cheers,

Richard



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

* Re: [PATCH] patchelf: Add patchelf recipe
  2014-08-27 15:50   ` Richard Purdie
@ 2014-08-27 21:12     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2014-08-27 21:12 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

On Wed, Aug 27, 2014 at 8:50 AM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> The issue is one of dependencies. We need chrpath/patchelf to relocate
> things like {autoconf|automake|pkgconfig}-native. Native
> patchelf/chrpath depend on those things to build so if we don't have it
> in ASSUME_PROVIDED, we get circular dependencies.
>
> chrpath is widely available in most distros. Unfortunately patchelf is
> not. We therefore can't easily put patchelf-native into
> ASSUME_PROVIDED :(
>
> So the reason the above didn't merge hasn't really changed, much as I'd
> also wish it had.

compared to last time now debian testing/ ubuntu utopic have added it
as well. fedora,suse, gentoo and archlinux were never an issue.
we can generate a dpkg for older debian-like distros may be ? is it
worth the effort

>
> This does not stop us using patchelf for other things though (and I
> believe we should).
>


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

end of thread, other threads:[~2014-08-27 21:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-27 14:50 [PATCH] patchelf: Add patchelf recipe Richard Purdie
2014-08-27 15:08 ` Khem Raj
2014-08-27 15:50   ` Richard Purdie
2014-08-27 21:12     ` Khem Raj

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.