All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] shadow: fix rpath issues
@ 2011-02-18 12:30 Eric Bénard
  2011-02-18 14:30 ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Bénard @ 2011-02-18 12:30 UTC (permalink / raw)
  To: openembedded-devel

* add --disable-rpath (not enough with angstrom 2008.1)
* fix build problems with rpath on older libtool
* bump INC_PR

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes/shadow/shadow.inc |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/recipes/shadow/shadow.inc b/recipes/shadow/shadow.inc
index 1b105c5..d688064 100644
--- a/recipes/shadow/shadow.inc
+++ b/recipes/shadow/shadow.inc
@@ -13,7 +13,7 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
 
 PACKAGE_ARCH_${PN} = "${MACHINE_ARCH}"
 
-INC_PR = "r18"
+INC_PR = "r19"
 
 # Additional Policy files for PAM
 PAM_SRC_URI = " \
@@ -39,6 +39,7 @@ EXTRA_OECONF += "\
     --without-audit \
     --without-selinux \
     --without-libcrack \
+    --disable-rpath \
     ${@base_contains('DISTRO_FEATURES', 'pam', '--with-libpam', '--without-libpam', d)} \
 "
 
@@ -70,6 +71,12 @@ shadow_cv_passwd_dir=${bindir}
 END
 }
 
+do_configure_append () {
+    # use same fix as libiconv
+    sed -i -e  s/^hardcode_libdir_flag_spec/#hardcode_libdir_flag_spec/ \
+           -e s/^runpath_var/#runpath_var/ ${S}/*-libtool
+}
+
 do_install_append() {
   # Ensure that /etc/skel is created so any default files that we want copied into new users home
   # dirs can be put in there later (ideal for .xinitrc for example).
-- 
1.7.0.4




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

* Re: [PATCH] shadow: fix rpath issues
  2011-02-18 12:30 [PATCH] shadow: fix rpath issues Eric Bénard
@ 2011-02-18 14:30 ` Tom Rini
  2011-02-18 14:42   ` Eric Bénard
  2011-02-19 14:36   ` Eric Benard
  0 siblings, 2 replies; 5+ messages in thread
From: Tom Rini @ 2011-02-18 14:30 UTC (permalink / raw)
  To: openembedded-devel

On 02/18/2011 05:30 AM, Eric Bénard wrote:
> * add --disable-rpath (not enough with angstrom 2008.1)
> * fix build problems with rpath on older libtool
> * bump INC_PR
>
> Signed-off-by: Eric Bénard<eric@eukrea.com>
> ---
>   recipes/shadow/shadow.inc |    9 ++++++++-
>   1 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/recipes/shadow/shadow.inc b/recipes/shadow/shadow.inc
> index 1b105c5..d688064 100644
> --- a/recipes/shadow/shadow.inc
> +++ b/recipes/shadow/shadow.inc
> @@ -13,7 +13,7 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
>
>   PACKAGE_ARCH_${PN} = "${MACHINE_ARCH}"
>
> -INC_PR = "r18"
> +INC_PR = "r19"
>
>   # Additional Policy files for PAM
>   PAM_SRC_URI = " \
> @@ -39,6 +39,7 @@ EXTRA_OECONF += "\
>       --without-audit \
>       --without-selinux \
>       --without-libcrack \
> +    --disable-rpath \
>       ${@base_contains('DISTRO_FEATURES', 'pam', '--with-libpam', '--without-libpam', d)} \
>   "
>
> @@ -70,6 +71,12 @@ shadow_cv_passwd_dir=${bindir}
>   END
>   }
>
> +do_configure_append () {
> +    # use same fix as libiconv
> +    sed -i -e  s/^hardcode_libdir_flag_spec/#hardcode_libdir_flag_spec/ \
> +           -e s/^runpath_var/#runpath_var/ ${S}/*-libtool
> +}
> +
>   do_install_append() {
>     # Ensure that /etc/skel is created so any default files that we want copied into new users home
>     # dirs can be put in there later (ideal for .xinitrc for example).

The equiv I found in poky is:
do_configure_append() {
     # Fix RPATH issues.
     sed -i ${S}/config.status -e 
s,^\\\(hardcode_into_libs=\\\).*$,\\1\'no\',
     ${S}/config.status
}

Any preference?  Aside from I think we should be internally consistent 
in these fixes, so long as it's fixed...

-- 
Tom Rini
Mentor Graphics Corporation



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

* Re: [PATCH] shadow: fix rpath issues
  2011-02-18 14:30 ` Tom Rini
@ 2011-02-18 14:42   ` Eric Bénard
  2011-02-18 15:33     ` Khem Raj
  2011-02-19 14:36   ` Eric Benard
  1 sibling, 1 reply; 5+ messages in thread
From: Eric Bénard @ 2011-02-18 14:42 UTC (permalink / raw)
  To: openembedded-devel

On 18/02/2011 15:30, Tom Rini wrote:
> The equiv I found in poky is:
> do_configure_append() {
> # Fix RPATH issues.
> sed -i ${S}/config.status -e s,^\\\(hardcode_into_libs=\\\).*$,\\1\'no\',
> ${S}/config.status
> }
>
> Any preference? Aside from I think we should be internally consistent in these
> fixes, so long as it's fixed...
>
yes, in fact I copied the fix from Henning's fix in flac so it can be seen as 
consistent ;-)

Eric



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

* Re: [PATCH] shadow: fix rpath issues
  2011-02-18 14:42   ` Eric Bénard
@ 2011-02-18 15:33     ` Khem Raj
  0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2011-02-18 15:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Eric Bénard

On Fri, Feb 18, 2011 at 6:42 AM, Eric Bénard <eric@eukrea.com> wrote:
> On 18/02/2011 15:30, Tom Rini wrote:
>>
>> The equiv I found in poky is:
>> do_configure_append() {
>> # Fix RPATH issues.
>> sed -i ${S}/config.status -e s,^\\\(hardcode_into_libs=\\\).*$,\\1\'no\',
>> ${S}/config.status
>> }
>>
>> Any preference? Aside from I think we should be internally consistent in
>> these
>> fixes, so long as it's fixed...


poky one is better IMO since its not hacking into generated libtool script
>>
> yes, in fact I copied the fix from Henning's fix in flac so it can be seen
> as consistent ;-)
>
> Eric
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



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

* Re: [PATCH] shadow: fix rpath issues
  2011-02-18 14:30 ` Tom Rini
  2011-02-18 14:42   ` Eric Bénard
@ 2011-02-19 14:36   ` Eric Benard
  1 sibling, 0 replies; 5+ messages in thread
From: Eric Benard @ 2011-02-19 14:36 UTC (permalink / raw)
  To: openembedded-devel

Hi Tom,

On 18/02/2011 15:30, Tom Rini wrote:
> On 02/18/2011 05:30 AM, Eric Bénard wrote:
>> * add --disable-rpath (not enough with angstrom 2008.1)
>> * fix build problems with rpath on older libtool
>> * bump INC_PR
>>
>> Signed-off-by: Eric Bénard<eric@eukrea.com>>>
>> +do_configure_append () {
>> + # use same fix as libiconv
>> + sed -i -e s/^hardcode_libdir_flag_spec/#hardcode_libdir_flag_spec/ \
>> + -e s/^runpath_var/#runpath_var/ ${S}/*-libtool
>> +}
>> +
>> do_install_append() {
>> # Ensure that /etc/skel is created so any default files that we want copied
>> into new users home
>> # dirs can be put in there later (ideal for .xinitrc for example).
>
> The equiv I found in poky is:
> do_configure_append() {
> # Fix RPATH issues.
> sed -i ${S}/config.status -e s,^\\\(hardcode_into_libs=\\\).*$,\\1\'no\',
> ${S}/config.status
> }
>
> Any preference? Aside from I think we should be internally consistent in these
> fixes, so long as it's fixed...
>
after testing this one, it doesn't work for shadow (angstrom 2008.1 , armv5
target).

And poky's shadow is not fixed for rpath :
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-extended/shadow/shadow.inc

Eric



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

end of thread, other threads:[~2011-02-19 14:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-18 12:30 [PATCH] shadow: fix rpath issues Eric Bénard
2011-02-18 14:30 ` Tom Rini
2011-02-18 14:42   ` Eric Bénard
2011-02-18 15:33     ` Khem Raj
2011-02-19 14:36   ` Eric Benard

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.