diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2017-04-06 03:05:50 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-10 23:00:43 +0100 |
commit | 9356d02da0f761d6694c39224c481cf8850d1469 (patch) | |
tree | 0d76cd9062d5f9a52eb33ee5ff131f491ef0f36d /meta/recipes-extended/groff/groff_1.22.3.bb | |
parent | 75001927cdde5dfb0e78ee2cdf1754e9372c0697 (diff) | |
download | poky-9356d02da0f761d6694c39224c481cf8850d1469.tar.gz |
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.
(From OE-Core rev: f3408bcf9d2710b07f5825683931e28571de130c)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/groff/groff_1.22.3.bb')
-rw-r--r-- | meta/recipes-extended/groff/groff_1.22.3.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-extended/groff/groff_1.22.3.bb b/meta/recipes-extended/groff/groff_1.22.3.bb index dd241f3f84..7472f59825 100644 --- a/meta/recipes-extended/groff/groff_1.22.3.bb +++ b/meta/recipes-extended/groff/groff_1.22.3.bb | |||
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | |||
10 | SRC_URI = "${GNU_MIRROR}/groff/groff-${PV}.tar.gz \ | 10 | SRC_URI = "${GNU_MIRROR}/groff/groff-${PV}.tar.gz \ |
11 | file://groff-1.22.2-correct-man.local-install-path.patch \ | 11 | file://groff-1.22.2-correct-man.local-install-path.patch \ |
12 | file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ | 12 | file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ |
13 | file://0001-replace-perl-w-with-use-warnings.patch \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | SRC_URI[md5sum] = "cc825fa64bc7306a885f2fb2268d3ec5" | 16 | SRC_URI[md5sum] = "cc825fa64bc7306a885f2fb2268d3ec5" |
@@ -24,6 +25,8 @@ inherit autotools texinfo | |||
24 | EXTRA_OECONF = "--without-x" | 25 | EXTRA_OECONF = "--without-x" |
25 | PARALLEL_MAKE = "" | 26 | PARALLEL_MAKE = "" |
26 | 27 | ||
28 | CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl'" | ||
29 | |||
27 | do_configure_prepend() { | 30 | do_configure_prepend() { |
28 | if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then | 31 | if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then |
29 | sed -i \ | 32 | sed -i \ |