summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/automake/automake/path_prog_fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/automake/automake/path_prog_fixes.patch')
-rw-r--r--meta/recipes-devtools/automake/automake/path_prog_fixes.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/automake/automake/path_prog_fixes.patch b/meta/recipes-devtools/automake/automake/path_prog_fixes.patch
new file mode 100644
index 0000000000..9ee0672f70
--- /dev/null
+++ b/meta/recipes-devtools/automake/automake/path_prog_fixes.patch
@@ -0,0 +1,41 @@
1Upstream-Status: Inappropriate [embedded specific]
2
3---
4 Makefile.am | 3 ++-
5 Makefile.in | 3 ++-
6 aclocal.in | 4 ++--
7 automake.in | 6 ++++--
8 4 files changed, 10 insertions(+), 6 deletions(-)
9
10Index: automake-1.12.1/aclocal.in
11===================================================================
12--- automake-1.12.1.orig/aclocal.in
13+++ automake-1.12.1/aclocal.in
14@@ -1,8 +1,8 @@
15-#!@PERL@ -w
16+#!@bindir@/env perl
17 # -*- perl -*-
18 # @configure_input@
19
20-eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
21+eval 'case $# in 0) exec @bindir@/env perl -S "$0";; *) exec @bindir@/env perl -S "$0" "$@";; esac'
22 if 0;
23
24 # aclocal - create aclocal.m4 by scanning configure.ac
25Index: automake-1.12.1/automake.in
26===================================================================
27--- automake-1.12.1.orig/automake.in
28+++ automake-1.12.1/automake.in
29@@ -1,8 +1,10 @@
30-#!@PERL@ -w
31+#!@bindir@/env perl
32 # -*- perl -*-
33 # @configure_input@
34
35-eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
36+use warnings;
37+
38+eval 'case $# in 0) exec @bindir@/env perl -S "$0";; *) exec @bindir@/env perl -S "$0" "$@";; esac'
39 if 0;
40
41 # automake - create Makefile.in from Makefile.am