]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
cpan_build: disable .packlist and html doc
authorWes Malone <wes@mitsi.com>
Wed, 29 Jul 2026 15:52:38 +0000 (15:52 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Jul 2026 09:05:17 +0000 (10:05 +0100)
Currently, Makefile.PL-built Perl recipes (cpan.bbclass) exclude
.packlist files with NO_PACKLIST=1, but Build.PL recipes
(cpan_build.bbclass) do not. This now results in a QA error due to the
TMPDIR paths included in the .packlist file.

  ERROR: x do_package_qa: QA Issue: File [...]/.packlist in package x
         contains reference to TMPDIR [buildpaths]

A similar error is produced by generated html doc.

Here we add the corresponding Build.PL arg to disable packlists and html
doc.

Signed-off-by: Wes Malone <wes@mitsi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cpan_build.bbclass
meta/recipes-devtools/perl/libmodule-build-perl_0.4234.bb

index 026859b6c784890b614a92bc265eb5499bf404f3..03289dc21cb3e38dd1770f335a04e62e44fde2e9 100644 (file)
@@ -25,6 +25,13 @@ cpan_build_do_configure () {
        fi
 
        perl Build.PL --installdirs vendor --destdir ${D} \
+                        --create_packlist=0 \
+                        --config installhtml1dir= \
+                        --config installhtml3dir= \
+                        --config installsitehtml1dir= \
+                        --config installsitehtml3dir= \
+                        --config installvendorhtml1dir= \
+                        --config installvendorhtml3dir= \
                        ${EXTRA_CPAN_BUILD_FLAGS}
 
        # Build.PLs can exit with success without generating a
index 1c01a59f5d8e4fafbf0471a63e77c8e47e77c251..3ec712cb8e6e69f67b304ba0b7411eb1ddbf2855 100644 (file)
@@ -32,8 +32,6 @@ do_patch_module_build () {
 
 do_patch[postfuncs] += "do_patch_module_build"
 
-EXTRA_CPAN_BUILD_FLAGS = "--create_packlist=0"
-
 do_install:prepend () {
        # We do not have a recipe for libpod-parser-perl which is for
        # documentation (and is deprecated in favor of Pod::Simple)