Skip to contentSkip to conversation

fuse3: fix ptests

PATCH New Gyorgy Sarvari 1 participant 5 messages Oct 29, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 fuse3: fix ptests

Add run-ptest to SRC_URI, and add missing kernel module that's required for the tests.

---
 meta-filesystems/recipes-support/fuse/fuse3/run-ptest | 1 +
 meta-filesystems/recipes-support/fuse/fuse3_3.10.5.bb | 3 +++
 2 files changed, 4 insertions(+)
meta-filesystems/recipes-support/fuse/fuse3/run-ptest +1 -0
index b63c4de0d9..680fa0bf33 100644
@@ -1,3 +1,4 @@
 #!/bin/sh
 
+modprobe cuse
 pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
meta-filesystems/recipes-support/fuse/fuse3_3.10.5.bb +3 -0
index 0f379afb92..f39d7fe76c 100644
@@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = "file://GPL2.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
 
 SRC_URI = "https://github.com/libfuse/libfuse/releases/download/fuse-${PV}/fuse-${PV}.tar.xz \
            file://0001-test-test_syscalls.c-allow-EBADF-in-fcheck_stat-631.patch \
+           file://run-ptest \
 "
 SRC_URI[sha256sum] = "b2e283485d47404ac896dd0bb7f7ba81e1470838e677e45f659804c3a3b69666"
 
@@ -34,6 +35,8 @@ RDEPENDS:${PN}-ptest += " \
 	bash \
 "
 
+RRECOMMENDS:${PN}-ptest += " kernel-module-cuse"
+
 do_install_ptest() {
         install -d ${D}${PTEST_PATH}/test
         install -d ${D}${PTEST_PATH}/example
#1 lore raw

PATCH 2/5 libopenmpt: fix ptests

Install missing test file.

---
 .../recipes-multimedia/libopenmpt/libopenmpt_0.6.2.bb            | 1 +
 1 file changed, 1 insertion(+)
meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.6.2.bb +1 -0
index 700df2cefb..5250ffa456 100644
@@ -59,6 +59,7 @@ do_install_ptest() {
     install -m 0644 ${S}/test/test.mptm ${D}${PTEST_PATH}/test
     install -m 0644 ${S}/test/test.s3m ${D}${PTEST_PATH}/test
     install -m 0644 ${S}/test/test.xm ${D}${PTEST_PATH}/test
+    install -m 0644 ${S}/test/test.mod ${D}${PTEST_PATH}/test
 
     install -d ${D}${PTEST_PATH}/libopenmpt
     install -m 0644 ${S}/libopenmpt/libopenmpt_version.mk ${D}${PTEST_PATH}/libopenmpt
#2 lore raw

PATCH 3/5 libauthen-sasl-perl: fix ptest

In reply to Gyorgy Sarvari

Add missing dependencies.

---
 meta-perl/recipes-perl/libauthen/libauthen-sasl-perl_2.16.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-perl/recipes-perl/libauthen/libauthen-sasl-perl_2.16.bb +4 -0
index a9eec69502..e4d04b16cb 100644
@@ -27,4 +27,8 @@ do_install_ptest () {
     cp -r ${B}/t ${D}${PTEST_PATH}
 }
 
+RDEPENDS:${PN}-ptest += "perl-module-test-more \
+                         perl-module-findbin \
+                         perl-module-tie-handle"
+
 BBCLASSEXTEND = "native"
#3 lore raw

PATCH 4/5 libconfig-autoconf-perl: fix ptests

In reply to Gyorgy Sarvari

Add missing dependencies.

Also, fixing the tests have surfaced an actual bug: the module expects unversioned perl library to be present on the system (or at least present in Perl's $Config{libperl}), however the OE Perl build has a versioned library, which causes final linking to fail.

A patch to correct this is part of this change, and it has been submitted upstream also.

---
 .../files/0001-correct-libperl-regex.patch    | 42 +++++++++++++++++++
 .../libconfig-autoconf-perl_0.319.bb          | 16 ++++++-
 2 files changed, 56 insertions(+), 2 deletions(-)
 create mode 100644 meta-perl/recipes-perl/libconfig/files/0001-correct-libperl-regex.patch
meta-perl/recipes-perl/libconfig/files/0001-correct-libperl-regex.patch new file +42 -0
new file mode 100644
index 0000000000..373f773070
@@ -0,0 +1,42 @@
+From 5ffd363a7acd4ef794eb265eaf6c42321097cd46 Mon Sep 17 00:00:00 2001
+From: Gyorgy Sarvari <[email protected]>
+Date: Sat, 25 Oct 2025 15:48:51 +0200
+Subject: [PATCH] correct libperl regex
+
+The module expects the libperl library's format (from $Config{libperl})
+to be versionless, just simply libperl.so. However this value in the
+OE builds is versioned, causing some issues.
+
+The module transforms this value into a linker flag, and tries to link
+with the library. The transformation is simple: cut off the "lib" from
+the start, and everything after the last dot.
+
+With versionless version, the transformation works: libperl.so -> perl
+
+However with versioned library it looks like this:
+libperl.so.5.99.9 -> perl.so.5.99
+which is just wrong.
+
+This patch changes this transformation in way that throws away everything
+after the first dot (instead of the last one).
+
+Upstream-Status: Submitted [https://github.com/ambs/Config-AutoConf/pull/19]
+
+Signed-off-by: Gyorgy Sarvari <[email protected]>
+---
+ lib/Config/AutoConf.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/Config/AutoConf.pm b/lib/Config/AutoConf.pm
+index 0bba5a4..a2e7099 100644
+--- a/lib/Config/AutoConf.pm
++++ b/lib/Config/AutoConf.pm
+@@ -3001,7 +3001,7 @@ sub _check_link_perlapi
+ 
+     my $libperl = $Config{libperl};
+     $libperl =~ s/^lib//;
+-    $libperl =~ s/\.[^\.]*$//;
++    $libperl =~ s/^([^\.]*)\..*$/$1/;
+ 
+     push @{$self->{extra_link_flags}}, "-L" . File::Spec->catdir($Config{installarchlib}, "CORE");
+     push @{$self->{extra_libs}},       "$libperl";
meta-perl/recipes-perl/libconfig/libconfig-autoconf-perl_0.319.bb +14 -2
index 5c3701f16b..c3cc388661 100644
@@ -6,7 +6,7 @@ DESCRIPTION = "Config::AutoConf is intended to provide the same opportunities to
 developers as GNU Autoconf <http://www.gnu.org/software/autoconf/> does for \
 Shell developers."
 
-HOMEPAGE=       "https://metacpan.org/release/Config-AutoConf"
+HOMEPAGE = "https://metacpan.org/release/Config-AutoConf"
 
 SECTION = "libs"
 LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
@@ -14,7 +14,8 @@ LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
 file://${COMMON_LICENSE_DIR}/GPL-1.0-or-later;md5=30c0b8a5048cc2f4be5ff15ef0d8cf61"
 
-SRC_URI = "${CPAN_MIRROR}/authors/id/R/RE/REHSACK/Config-AutoConf-${PV}.tar.gz"
+SRC_URI = "${CPAN_MIRROR}/authors/id/R/RE/REHSACK/Config-AutoConf-${PV}.tar.gz \
+           file://0001-correct-libperl-regex.patch"
 
 SRC_URI[md5sum] = "eeeab8cc93eef7dd2e2c343ecdf247b7"
 SRC_URI[sha256sum] = "304f66cc2653264c0fe127d21669e86d3d18cd72f2574d8f5131beec31a0a33e"
@@ -34,6 +35,17 @@ RDEPENDS:${PN} += "perl-module-text-parsewords"
 RDEPENDS:${PN} += "perl-module-warnings"
 RRECOMMENDS:${PN} += "libfile-slurper-perl"
 
+RDEPENDS:${PN}-ptest += " \
+    packagegroup-core-buildessential \
+    perl-dev \
+    perl-module-file-glob \
+    perl-module-perl-ostype \
+    perl-module-metadata"
+
+# One test requires perl headers (perl-dev) to compile some
+# test application.
+INSANE_SKIP:${PN}-ptest += "dev-deps"
+
 S = "${WORKDIR}/Config-AutoConf-${PV}"
 
 inherit cpan ptest-perl
#4 lore raw

PATCH 5/5 libcrypt-openssl-guess-perl: fix ptests

In reply to Gyorgy Sarvari

Add missing dependency.

---
 .../recipes-perl/libcrypt/libcrypt-openssl-guess-perl_0.15.bb    | 1 +
 1 file changed, 1 insertion(+)
meta-perl/recipes-perl/libcrypt/libcrypt-openssl-guess-perl_0.15.bb +1 -0
index d64fc296e2..9790dc4c63 100644
@@ -32,5 +32,6 @@ BBCLASSEXTEND = "native"
 PROVIDES += "libcrypt-openssl-guess"
 
 RDEPENDS:${PN}-ptest += "\
+    perl-module-english \
     perl-module-test-more \
 "