summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/automake/automake_1.11.2.bb20
1 files changed, 17 insertions, 3 deletions
diff --git a/meta/recipes-devtools/automake/automake_1.11.2.bb b/meta/recipes-devtools/automake/automake_1.11.2.bb
index 4271336070..66589fe9af 100644
--- a/meta/recipes-devtools/automake/automake_1.11.2.bb
+++ b/meta/recipes-devtools/automake/automake_1.11.2.bb
@@ -34,19 +34,33 @@ PATHFIXPATCH = "file://path_prog_fixes.patch"
34PATHFIXPATCH_virtclass-native = "" 34PATHFIXPATCH_virtclass-native = ""
35PATHFIXPATCH_virtclass-nativesdk = "" 35PATHFIXPATCH_virtclass-nativesdk = ""
36 36
37PERLPATH = "${bindir}/perl"
38PERLPATH_virtclass-native = "/usr/bin/perl"
39PERLPATH_virtclass-nativesdk = "/usr/bin/perl"
40
37SRC_URI += "${PATHFIXPATCH} \ 41SRC_URI += "${PATHFIXPATCH} \
38 file://prefer-cpio-over-pax-for-ustar-archives.patch \ 42 file://prefer-cpio-over-pax-for-ustar-archives.patch \
39 file://python-libdir.patch \ 43 file://python-libdir.patch \
40 file://automake_1.11.2_fix_for_pkglibexec_SCRIPTS.patch \ 44 file://automake_1.11.2_fix_for_pkglibexec_SCRIPTS.patch \
41 file://py-compile-compile-only-optimized-byte-code.patch" 45 file://py-compile-compile-only-optimized-byte-code.patch"
42 46
43PR = "r2" 47PR = "r3"
44SRC_URI[md5sum] = "18194e804d415767bae8f703c963d456" 48SRC_URI[md5sum] = "18194e804d415767bae8f703c963d456"
45SRC_URI[sha256sum] = "4f46d1f9380c8a3506280750f630e9fc915cb1a435b724be56b499d016368718" 49SRC_URI[sha256sum] = "4f46d1f9380c8a3506280750f630e9fc915cb1a435b724be56b499d016368718"
46 50
47do_install () { 51do_install () {
48 oe_runmake 'DESTDIR=${D}' install 52 oe_runmake 'DESTDIR=${D}' install
49 install -d ${D}${datadir} 53 install -d ${D}${datadir}
54
55 # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location
56 # for target as /usr/bin/perl, so fix it to /usr/bin/perl.
57 for i in aclocal aclocal-1.11 automake automake-1.11; do
58 if [ -f ${D}${bindir}/$i ]; then
59 sed -i -e '1s,#!.*perl,#! ${PERLPATH},' \
60 -e 's,exec .*/bin/perl \(.*\) exec .*/bin/perl \(.*\),exec ${PERLPATH} \1 exec ${PERLPATH} \2,' \
61 ${D}${bindir}/$i
62 fi
63 done
50} 64}
51 65
52BBCLASSEXTEND = "native nativesdk" 66BBCLASSEXTEND = "native nativesdk"