mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 13:59:59 +00:00
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>
This commit is contained in:
@@ -18,4 +18,12 @@ S = "${WORKDIR}/Devel-CheckLib-${PV}"
|
||||
|
||||
inherit cpan
|
||||
|
||||
do_install:append() {
|
||||
# update interpreter on shebang line
|
||||
# since old version env doesn't support multiple arguments, replace option
|
||||
# '-w' with 'use warnings;'
|
||||
sed -i -e "s:^#!.*:#!/usr/bin/env perl:" \
|
||||
-e "/use strict;/ause warnings;" ${D}${bindir}/use-devel-checklib
|
||||
}
|
||||
|
||||
BBCLASSEXTEND="native"
|
||||
|
||||
Reference in New Issue
Block a user