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
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.
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.
15 To address this we can remove -w option from perl shebang
16 line and add "use warnings" statement.
18 Upstream-Status: Pending
19 Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
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(-)
28 diff --git a/bin/autom4te.in b/bin/autom4te.in
29 index 11773c9..a8f5e41 100644
38 @@ -42,6 +42,7 @@ use Autom4te::General;
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
56 @@ -45,6 +45,7 @@ use Autom4te::XFile;
57 # Do not use Cwd::chdir, since it might hang.
64 diff --git a/bin/autoscan.in b/bin/autoscan.in
65 index a67c48d..b931249 100644
74 @@ -43,6 +43,7 @@ use Autom4te::XFile;
80 use vars qw(@cfiles @makefiles @shfiles @subdirs %printed);
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
92 @@ -44,6 +44,7 @@ use Autom4te::General;
99 my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
100 diff --git a/bin/ifnames.in b/bin/ifnames.in
101 index ba2cd05..74b0278 100644
110 @@ -44,6 +44,7 @@ BEGIN
111 use Autom4te::General;
113 use Autom4te::FileUtils;