mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-13 05:30:02 +00:00
01f98053ac
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>
30 lines
1.1 KiB
BlitzBasic
30 lines
1.1 KiB
BlitzBasic
SUMMARY = "A Perl module that checks whether a particular C library and its headers are available"
|
|
DESCRIPTION = "This module provides a way of checking whether a particular library \
|
|
and its headers are available, by attempting to compile a simple program and \
|
|
link against it."
|
|
HOMEPAGE = "https://metacpan.org/pod/Devel::CheckLib"
|
|
SECTION = "libs"
|
|
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
|
|
|
|
LIC_FILES_CHKSUM = "file://README;md5=7911cdbb572d25c5f2e2ea17f669efc2"
|
|
|
|
SRC_URI = "https://cpan.metacpan.org/modules/by-module/Devel/Devel-CheckLib-${PV}.tar.gz \
|
|
file://0001-CheckLib.pm-don-t-execute-the-binary.patch \
|
|
"
|
|
SRC_URI[md5sum] = "3519cbf9fe5ec3404449d5330ee5537f"
|
|
SRC_URI[sha256sum] = "f21c5e299ad3ce0fdc0cb0f41378dca85a70e8d6c9a7599f0e56a957200ec294"
|
|
|
|
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"
|