summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-05-06 09:03:25 -0700
committerArmin Kuster <akuster808@gmail.com>2023-05-28 15:56:55 -0400
commit155b2f1a7e4a2002b2dfdd5ef600815904b23ef5 (patch)
tree5cd1a9eff68b19c9b794efb4c70ae56a12aefabd
parentc2d8e78319ab5df836f52efd0a7f35b7dac590b0 (diff)
downloadmeta-openembedded-155b2f1a7e4a2002b2dfdd5ef600815904b23ef5.tar.gz
libencode-perl: Remove buildpaths from generated .exh files
there are generated .exh files which has the absolute perl interpreter path in comments, which is caught by build QA, therefore remove the absolute perl native path prefix Fixes warnings like WARNING: libencode-perl-3.19-r0 do_package_qa: QA Issue: File /usr/src/debug/libencode-perl/3.19-r0/def_t.exh in package libencode-perl-src contains reference to TMPDIR [buildpaths] Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 8e110d9c5cf22520af4b69fe4f6b90709f2c7545) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-perl/recipes-perl/libencode/libencode-perl_3.19.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-perl/recipes-perl/libencode/libencode-perl_3.19.bb b/meta-perl/recipes-perl/libencode/libencode-perl_3.19.bb
index 352517ca67..79934e2229 100644
--- a/meta-perl/recipes-perl/libencode/libencode-perl_3.19.bb
+++ b/meta-perl/recipes-perl/libencode/libencode-perl_3.19.bb
@@ -21,8 +21,8 @@ UPSTREAM_CHECK_REGEX = "Encode\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
21 21
22S = "${WORKDIR}/Encode-${PV}" 22S = "${WORKDIR}/Encode-${PV}"
23 23
24#EXTRA_CPANFLAGS:append = "PERL=../recipe-sysroot-native/usr/bin/perl-native/perl"
24inherit cpan ptest-perl 25inherit cpan ptest-perl
25
26do_install:prepend() { 26do_install:prepend() {
27 # Requires "-T" (taint) option on command line 27 # Requires "-T" (taint) option on command line
28 rm -rf ${B}/t/taint.t 28 rm -rf ${B}/t/taint.t
@@ -32,6 +32,10 @@ do_install:prepend() {
32 rm -rf ${B}/t/use-Encode-Alias.t 32 rm -rf ${B}/t/use-Encode-Alias.t
33} 33}
34 34
35do_install:append() {
36 sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native||g" ${S}/*/*.exh ${S}/*.exh
37}
38
35do_install_ptest() { 39do_install_ptest() {
36 mkdir ${D}${PTEST_PATH}/bin 40 mkdir ${D}${PTEST_PATH}/bin
37 cp -r ${B}/bin/piconv ${D}${PTEST_PATH}/bin 41 cp -r ${B}/bin/piconv ${D}${PTEST_PATH}/bin