]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
ae0e3825f69b66ca540beaa2ae4ed30bd67733af
[thirdparty/openembedded/openembedded-core-contrib.git] /
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