]> code.ossystems Code Review - openembedded-core.git/commit
groff: replace "perl -w" with "use warnings"
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 6 Apr 2017 10:05:50 +0000 (03:05 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Apr 2017 21:48:05 +0000 (22:48 +0100)
commitf3408bcf9d2710b07f5825683931e28571de130c
treef8e66a9bfcbddec6bb769d4a82ab8d50aa429e12
parent04c053d42ab05f77b2d1ca93a0fabae44073d57e
groff: replace "perl -w" with "use warnings"

The shebang's max length is usually 128 as defined in
/usr/include/linux/binfmts.h:
  #define BINPRM_BUF_SIZE 128

There would be errors when @PERL@ (hostools/perl) is longer than 128,
use '/usr/bin/env perl' can fix the problem, but '/usr/bin/env perl -w'
doesn't work:

/usr/bin/env: perl -w: No such file or directory

So replace "perl -w" with "use warnings" to make it work.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/groff/groff-1.22.3/0001-replace-perl-w-with-use-warnings.patch [new file with mode: 0644]
meta/recipes-extended/groff/groff_1.22.3.bb