summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/automake/automake/path_prog_fixes.patch
blob: 9ee0672f70285b57153e5776bbf6e499302238df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Upstream-Status: Inappropriate [embedded specific]

---
 Makefile.am |    3 ++-
 Makefile.in |    3 ++-
 aclocal.in  |    4 ++--
 automake.in |    6 ++++--
 4 files changed, 10 insertions(+), 6 deletions(-)

Index: automake-1.12.1/aclocal.in
===================================================================
--- automake-1.12.1.orig/aclocal.in
+++ automake-1.12.1/aclocal.in
@@ -1,8 +1,8 @@
-#!@PERL@ -w
+#!@bindir@/env perl
 # -*- perl -*-
 # @configure_input@
 
-eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
+eval 'case $# in 0) exec @bindir@/env perl -S "$0";; *) exec @bindir@/env perl -S "$0" "$@";; esac'
     if 0;
 
 # aclocal - create aclocal.m4 by scanning configure.ac
Index: automake-1.12.1/automake.in
===================================================================
--- automake-1.12.1.orig/automake.in
+++ automake-1.12.1/automake.in
@@ -1,8 +1,10 @@
-#!@PERL@ -w
+#!@bindir@/env perl
 # -*- perl -*-
 # @configure_input@
 
-eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
+use warnings;
+
+eval 'case $# in 0) exec @bindir@/env perl -S "$0";; *) exec @bindir@/env perl -S "$0" "$@";; esac'
     if 0;
 
 # automake - create Makefile.in from Makefile.am
OpenPOWER on IntegriCloud