1 From 41e06b7a354774913dcd2e32a35440e407843357 Mon Sep 17 00:00:00 2001
 
   2 From: Serhii Popovych <spopovyc@cisco.com>
 
   3 Date: Wed, 10 Feb 2016 17:07:32 +0000
 
   4 Subject: [PATCH] perl: Replace -w option in shebangs with modern "use
 
   5  warnings" In some builds we might provide ac_cv_path_PERL as /usr/bin/env
 
   6  perl to use newer version of the perl from users PATH rather than older from
 
   9 However using /usr/bin/env perl -w from shebang line isn't
 
  10 possible because it translates to something like
 
  11 /usr/bin/env -w perl and env complains about illegal option.
 
  13 To address this we can remove -w option from perl shebang
 
  14 line and add "use warnings" statement.
 
  16 Upstream-Status: Pending
 
  17 Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
 
  19  bin/aclocal.in     | 3 ++-
 
  20  bin/automake.in    | 3 ++-
 
  21  t/wrap/aclocal.in  | 3 ++-
 
  22  t/wrap/automake.in | 3 ++-
 
  23  4 files changed, 8 insertions(+), 4 deletions(-)
 
  25 diff --git a/bin/aclocal.in b/bin/aclocal.in
 
  26 index 349f24a..50cb8d3 100644
 
  35 @@ -33,6 +33,7 @@ BEGIN
 
  42  use Automake::General;
 
  43 diff --git a/bin/automake.in b/bin/automake.in
 
  44 index eedc8bc..e0a01cf 100644
 
  53 @@ -28,6 +28,7 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
 
  61 diff --git a/t/wrap/aclocal.in b/t/wrap/aclocal.in
 
  62 index e64b546..9996899 100644
 
  63 --- a/t/wrap/aclocal.in
 
  64 +++ b/t/wrap/aclocal.in
 
  70  # Copyright (C) 2012-2014 Free Software Foundation, Inc.
 
  76    @Aclocal::perl_libdirs = ('@abs_top_srcdir@/lib');
 
  77    unshift @Aclocal::perl_libdirs, '@abs_top_builddir@/lib'
 
  79 diff --git a/t/wrap/automake.in b/t/wrap/automake.in
 
  80 index 8b943b1..be61226 100644
 
  81 --- a/t/wrap/automake.in
 
  82 +++ b/t/wrap/automake.in
 
  88  # Copyright (C) 2012-2014 Free Software Foundation, Inc.
 
  94    @Automake::perl_libdirs = ('@abs_top_srcdir@/lib');
 
  95    unshift @Automake::perl_libdirs, '@abs_top_builddir@/lib'