]> code.ossystems Code Review - openembedded-core.git/commit
mc: replace "perl -w" with "use warnings"
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 6 Apr 2017 10:05:51 +0000 (03:05 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Apr 2017 21:48:05 +0000 (22:48 +0100)
commit85decf26fe580acdf072baf561418bf73b7bfca4
treea0af2b26c797d606d52398354da7c9b7ee6dc4e5
parentf3408bcf9d2710b07f5825683931e28571de130c
mc: 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/mc/files/0001-mc-replace-perl-w-with-use-warnings.patch [new file with mode: 0644]
meta/recipes-extended/mc/mc_4.8.18.bb