Skip to contentSkip to conversation

acl: fix build problems with rpath on older libtool

PATCH In review Eric Bénard 2 participants 3 messages Feb 18, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acl: fix build problems with rpath on older libtool

* bump INC_PR

---
 recipes/udev/acl_2.2.49.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
recipes/udev/acl_2.2.49.bb +4 -1
index 5a37c57..20f94db 100644
@@ -1,7 +1,7 @@
 DESCRIPTION = "Commands for Manipulating POSIX Access Control Lists"
 LICENSE = "GPLv2"
 
-PR = "r3"
+PR = "r4"
 
 DEPENDS = "attr"
 
@@ -20,6 +20,9 @@ EXTRA_OECONF = " --enable-gettext=yes \
 do_configure_append() {
     # gettext hack
     echo "#define _(str) str" >> ${S}/include/config.h
+    # 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_configure_prepend() {
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 21 lines · Eric Bénard

* bump INC_PR

---
  recipes/udev/acl_2.2.49.bb |    5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)
recipes/udev/acl_2.2.49.bb +1 -1
index 5a37c57..20f94db 100644
@@ -1,7 +1,7 @@
  DESCRIPTION = "Commands for Manipulating POSIX Access Control Lists"
  LICENSE = "GPLv2"
 
-PR = "r3"
+PR = "r4"
 
  DEPENDS = "attr"
 

recipes/udev/acl_2.2.49.bb EXTRA_OECONF = " --enable-gettext=yes \ · line 28

Quoted 9 lines
recipes/udev/acl_2.2.49.bb +3 -0
@@ -20,6 +20,9 @@ EXTRA_OECONF = " --enable-gettext=yes \
  do_configure_append() {
      # gettext hack
      echo "#define _(str) str">>  ${S}/include/config.h
+    # 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_configure_prepend() {

I've actually got something similar, but based on how poky fixed this queued up, and while I was in there I cleaned up the paths a bit too. But you got it posted first, so do you have a preference?

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#2 lore raw

Hi Tom,

Quoted 30 lines · Tom Rini
Quoted 29 lines · Eric Bénard

* bump INC_PR

---
recipes/udev/acl_2.2.49.bb | 5 ++++-

1 files changed, 4 insertions(+), 1 deletions(-)
recipes/udev/acl_2.2.49.bb +0 -0
index 5a37c57..20f94db 100644
@@ -1,7 +1,7 @@

DESCRIPTION = "Commands for Manipulating POSIX Access Control Lists" LICENSE = "GPLv2"

recipes/udev/acl_2.2.49.bb +1 -1
-PR = "r3"
+PR = "r4"

DEPENDS = "attr"

recipes/udev/acl_2.2.49.bb +0 -0
@@ -20,6 +20,9 @@ EXTRA_OECONF = " --enable-gettext=yes \
 do_configure_append() {
 # gettext hack

echo "#define _(str) str">> ${S}/include/config.h
+ # 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
}

Quoted 6 lines
Quoted 1 line

do_configure_prepend() {

I've actually got something similar, but based on how poky fixed this queued up, and while I was in there I cleaned up the paths a bit too. But you got it posted first, so do you have a preference?

no problem, just push your patch with cleaned paths.

Eric