diff options
| author | Kai Kang <kai.kang@windriver.com> | 2022-07-04 23:48:10 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-07-06 00:08:14 -0400 |
| commit | 01f98053ac44129adc4018ab008bc7f02cbd0932 (patch) | |
| tree | deacdd302fd957b6a8bffa6ada162d7afc80df30 | |
| parent | e4e528dba2699842e695add07af9ff870fe4ed8b (diff) | |
| download | meta-openembedded-01f98053ac44129adc4018ab008bc7f02cbd0932.tar.gz | |
libdev-checklib-perl: fix interpreter of script use-devel-checklib
Update interpreter on shebang line in script use-devel-checklib to fix
QA error:
ERROR: QA Issue: : /work/x86_64-linux/libdev-checklib-perl-native/1.14-r0/sysroot-destdir/
work/x86_64-linux/libdev-checklib-perl-native/1.14-r0/recipe-sysroot-native/usr/bin/use-devel-checklib
maximum shebang size exceeded, the maximum size is 128. [shebang-size]
It also replace option '-w' on shebang line with 'use warnings;' that
old version env doesn't support multiple arguments.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-devtools/perl/libdev-checklib-perl_1.14.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/perl/libdev-checklib-perl_1.14.bb b/meta-oe/recipes-devtools/perl/libdev-checklib-perl_1.14.bb index 6dfff781b1..0863bb862d 100644 --- a/meta-oe/recipes-devtools/perl/libdev-checklib-perl_1.14.bb +++ b/meta-oe/recipes-devtools/perl/libdev-checklib-perl_1.14.bb | |||
| @@ -18,4 +18,12 @@ S = "${WORKDIR}/Devel-CheckLib-${PV}" | |||
| 18 | 18 | ||
| 19 | inherit cpan | 19 | inherit cpan |
| 20 | 20 | ||
| 21 | do_install:append() { | ||
| 22 | # update interpreter on shebang line | ||
| 23 | # since old version env doesn't support multiple arguments, replace option | ||
| 24 | # '-w' with 'use warnings;' | ||
| 25 | sed -i -e "s:^#!.*:#!/usr/bin/env perl:" \ | ||
| 26 | -e "/use strict;/ause warnings;" ${D}${bindir}/use-devel-checklib | ||
| 27 | } | ||
| 28 | |||
| 21 | BBCLASSEXTEND="native" | 29 | BBCLASSEXTEND="native" |
