aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2011-01-06 14:21:19 -0700
committerTom Rini <tom_rini@mentor.com>2011-01-06 14:21:19 -0700
commit36636be6efabf88ec4a99526e9b16ce182f0b32d (patch)
tree6e52e8c97f452a49e3a6e6d1cf2709507165992e
parent147981c7993d5789370b5e58d4067bc2995f47b6 (diff)
downloadopenembedded-36636be6efabf88ec4a99526e9b16ce182f0b32d.tar.gz
autoconf: Mangle to use /usr/bin/env perl
On the host side we can have the full path exceed the limit for the #! method. On the target side, we already had to play a game to ensure the path would be valid. So we change to using /usr/bin/env there as well, which is safe. Signed-off-by: Tom Rini <tom_rini@mentor.com>
-rw-r--r--recipes/autoconf/autoconf.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes/autoconf/autoconf.inc b/recipes/autoconf/autoconf.inc
index b7350ecc36..e0ca21aae0 100644
--- a/recipes/autoconf/autoconf.inc
+++ b/recipes/autoconf/autoconf.inc
@@ -8,7 +8,7 @@ RDEPENDS_${PN} = "m4 perl gnu-config"
DEPENDS_virtclass-native = "m4-native gnu-config-native"
RDEPENDS_${PN}_virtclass-native = "m4-native gnu-config-native"
-INC_PR = "r12"
+INC_PR = "r13"
SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.bz2;name=autoconf \
file://program_prefix.patch"
@@ -27,15 +27,15 @@ do_configure_prepend () {
fi
}
+do_configure_append() {
+ # replace paths to STAGING_BINDIR_NATIVE/perl with ${bindir}/perl
+ sed -i -e "s:#! @PERL@ -w:#! /usr/bin/env perl:" ${S}/bin/*.in
+}
+
do_compile () {
sed -i -e's,^SUBDIRS = .*,SUBDIRS = ${SUBDIRS},' Makefile
oe_runmake
}
-do_install_append() {
- # replace paths to STAGING_BINDIR_NATIVE/perl with ${bindir}/perl
- sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g ${D}${bindir}/*
-}
-
PARALLEL_MAKE = ""
BBCLASSEXTEND = "native"