diff options
3 files changed, 127 insertions, 1 deletions
diff --git a/meta/recipes-devtools/autoconf/autoconf.inc b/meta/recipes-devtools/autoconf/autoconf.inc index b4e33569a6..f1b2dfca7a 100644 --- a/meta/recipes-devtools/autoconf/autoconf.inc +++ b/meta/recipes-devtools/autoconf/autoconf.inc | |||
@@ -27,13 +27,18 @@ RDEPENDS_${PN} = "m4 gnu-config \ | |||
27 | perl-module-data-dumper \ | 27 | perl-module-data-dumper \ |
28 | " | 28 | " |
29 | RDEPENDS_${PN}_class-native = "m4-native gnu-config-native" | 29 | RDEPENDS_${PN}_class-native = "m4-native gnu-config-native" |
30 | RDEPENDS_${PN}_class-nativesdk = "nativesdk-m4 nativesdk-gnu-config" | ||
30 | 31 | ||
31 | SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.gz \ | 32 | SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.gz \ |
32 | file://program_prefix.patch" | 33 | file://program_prefix.patch" |
33 | 34 | ||
34 | inherit autotools texinfo | 35 | inherit autotools texinfo |
35 | 36 | ||
36 | CACHED_CONFIGUREVARS += "ac_cv_path_PERL=${USRBINPATH}/perl" | 37 | PERL = "${USRBINPATH}/perl" |
38 | PERL_class-native = "/usr/bin/env perl" | ||
39 | PERL_class-nativesdk = "/usr/bin/env perl" | ||
40 | |||
41 | CACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}'" | ||
37 | 42 | ||
38 | do_configure() { | 43 | do_configure() { |
39 | oe_runconf | 44 | oe_runconf |
diff --git a/meta/recipes-devtools/autoconf/autoconf/autoconf-replace-w-option-in-shebangs-with-modern-use-warnings.patch b/meta/recipes-devtools/autoconf/autoconf/autoconf-replace-w-option-in-shebangs-with-modern-use-warnings.patch new file mode 100644 index 0000000000..ae0e3825f6 --- /dev/null +++ b/meta/recipes-devtools/autoconf/autoconf/autoconf-replace-w-option-in-shebangs-with-modern-use-warnings.patch | |||
@@ -0,0 +1,120 @@ | |||
1 | From 236552ff5b9f1ebf666d8d0e9850007dcce03d26 Mon Sep 17 00:00:00 2001 | ||
2 | From: Serhii Popovych <spopovyc@cisco.com> | ||
3 | Date: Wed, 10 Feb 2016 16:32:44 +0000 | ||
4 | Subject: [PATCH] perl: Replace -w option in shebangs with modern "use | ||
5 | warnings" | ||
6 | |||
7 | In some builds we might provide ac_cv_path_PERL as /usr/bin/env perl | ||
8 | to use newer version of the perl from users PATH rather than | ||
9 | older from standard system path. | ||
10 | |||
11 | However using /usr/bin/env perl -w from shebang line isn't | ||
12 | possible because it translates to something like | ||
13 | /usr/bin/env -w perl and env complains about illegal option. | ||
14 | |||
15 | To address this we can remove -w option from perl shebang | ||
16 | line and add "use warnings" statement. | ||
17 | |||
18 | Upstream-Status: Pending | ||
19 | Signed-off-by: Serhii Popovych <spopovyc@cisco.com> | ||
20 | --- | ||
21 | bin/autom4te.in | 3 ++- | ||
22 | bin/autoreconf.in | 3 ++- | ||
23 | bin/autoscan.in | 3 ++- | ||
24 | bin/autoupdate.in | 3 ++- | ||
25 | bin/ifnames.in | 3 ++- | ||
26 | 5 files changed, 10 insertions(+), 5 deletions(-) | ||
27 | |||
28 | diff --git a/bin/autom4te.in b/bin/autom4te.in | ||
29 | index 11773c9..a8f5e41 100644 | ||
30 | --- a/bin/autom4te.in | ||
31 | +++ b/bin/autom4te.in | ||
32 | @@ -1,4 +1,4 @@ | ||
33 | -#! @PERL@ -w | ||
34 | +#! @PERL@ | ||
35 | # -*- perl -*- | ||
36 | # @configure_input@ | ||
37 | |||
38 | @@ -42,6 +42,7 @@ use Autom4te::General; | ||
39 | use Autom4te::XFile; | ||
40 | use File::Basename; | ||
41 | use strict; | ||
42 | +use warnings; | ||
43 | |||
44 | # Data directory. | ||
45 | my $pkgdatadir = $ENV{'AC_MACRODIR'} || '@pkgdatadir@'; | ||
46 | diff --git a/bin/autoreconf.in b/bin/autoreconf.in | ||
47 | index e245db4..1a318cb 100644 | ||
48 | --- a/bin/autoreconf.in | ||
49 | +++ b/bin/autoreconf.in | ||
50 | @@ -1,4 +1,4 @@ | ||
51 | -#! @PERL@ -w | ||
52 | +#! @PERL@ | ||
53 | # -*- perl -*- | ||
54 | # @configure_input@ | ||
55 | |||
56 | @@ -45,6 +45,7 @@ use Autom4te::XFile; | ||
57 | # Do not use Cwd::chdir, since it might hang. | ||
58 | use Cwd 'cwd'; | ||
59 | use strict; | ||
60 | +use warnings; | ||
61 | |||
62 | ## ----------- ## | ||
63 | ## Variables. ## | ||
64 | diff --git a/bin/autoscan.in b/bin/autoscan.in | ||
65 | index a67c48d..b931249 100644 | ||
66 | --- a/bin/autoscan.in | ||
67 | +++ b/bin/autoscan.in | ||
68 | @@ -1,4 +1,4 @@ | ||
69 | -#! @PERL@ -w | ||
70 | +#! @PERL@ | ||
71 | # -*- perl -*- | ||
72 | # @configure_input@ | ||
73 | |||
74 | @@ -43,6 +43,7 @@ use Autom4te::XFile; | ||
75 | use File::Basename; | ||
76 | use File::Find; | ||
77 | use strict; | ||
78 | +use warnings; | ||
79 | |||
80 | use vars qw(@cfiles @makefiles @shfiles @subdirs %printed); | ||
81 | |||
82 | diff --git a/bin/autoupdate.in b/bin/autoupdate.in | ||
83 | index 9737d49..92cb147 100644 | ||
84 | --- a/bin/autoupdate.in | ||
85 | +++ b/bin/autoupdate.in | ||
86 | @@ -1,4 +1,4 @@ | ||
87 | -#! @PERL@ -w | ||
88 | +#! @PERL@ | ||
89 | # -*- perl -*- | ||
90 | # @configure_input@ | ||
91 | |||
92 | @@ -44,6 +44,7 @@ use Autom4te::General; | ||
93 | use Autom4te::XFile; | ||
94 | use File::Basename; | ||
95 | use strict; | ||
96 | +use warnings; | ||
97 | |||
98 | # Lib files. | ||
99 | my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@'; | ||
100 | diff --git a/bin/ifnames.in b/bin/ifnames.in | ||
101 | index ba2cd05..74b0278 100644 | ||
102 | --- a/bin/ifnames.in | ||
103 | +++ b/bin/ifnames.in | ||
104 | @@ -1,4 +1,4 @@ | ||
105 | -#! @PERL@ -w | ||
106 | +#! @PERL@ | ||
107 | # -*- perl -*- | ||
108 | # @configure_input@ | ||
109 | |||
110 | @@ -44,6 +44,7 @@ BEGIN | ||
111 | use Autom4te::General; | ||
112 | use Autom4te::XFile; | ||
113 | use Autom4te::FileUtils; | ||
114 | +use warnings; | ||
115 | |||
116 | # $HELP | ||
117 | # ----- | ||
118 | -- | ||
119 | 2.3.0 | ||
120 | |||
diff --git a/meta/recipes-devtools/autoconf/autoconf_2.69.bb b/meta/recipes-devtools/autoconf/autoconf_2.69.bb index fd01585441..8e67f4b829 100644 --- a/meta/recipes-devtools/autoconf/autoconf_2.69.bb +++ b/meta/recipes-devtools/autoconf/autoconf_2.69.bb | |||
@@ -15,6 +15,7 @@ SRC_URI += "file://check-automake-cross-warning.patch \ | |||
15 | file://add_musl_config.patch \ | 15 | file://add_musl_config.patch \ |
16 | file://performance.patch \ | 16 | file://performance.patch \ |
17 | file://AC_HEADER_MAJOR-port-to-glibc-2.25.patch \ | 17 | file://AC_HEADER_MAJOR-port-to-glibc-2.25.patch \ |
18 | file://autoconf-replace-w-option-in-shebangs-with-modern-use-warnings.patch \ | ||
18 | " | 19 | " |
19 | 20 | ||
20 | SRC_URI[md5sum] = "82d05e03b93e45f5a39b828dc9c6c29b" | 21 | SRC_URI[md5sum] = "82d05e03b93e45f5a39b828dc9c6c29b" |