All of lore.kernel.org
 help / color / mirror / Atom feed
* [OE-core][PATCH] libmd: add ptest for 'libmd'
@ 2025-08-18  8:15 rajmohan r
  2025-08-24 14:02 ` Ross Burton
  2025-08-28  9:57 ` Yoann Congal
  0 siblings, 2 replies; 9+ messages in thread
From: rajmohan r @ 2025-08-18  8:15 UTC (permalink / raw)
  To: openembedded-core

Adapt the compile 'test' phony target from Makefile and deploy as
ptest for libmd.
It takes less than 30seconds for ptest completion.

Signed-off-by: rajmohan r <semc.2042@gmail.com>
---
 meta/conf/distro/include/ptest-packagelists.inc |  1 +
 meta/recipes-support/libmd/libmd/run-ptest      | 13 +++++++++++++
 meta/recipes-support/libmd/libmd_1.1.0.bb       | 16 ++++++++++++++--
 3 files changed, 28 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-support/libmd/libmd/run-ptest

diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index e3099439f4..6cfafdca5a 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -31,6 +31,7 @@ PTESTS_FAST = "\
     libconvert-asn1-perl \
     libexif \
     libgpg-error\
+    libmd \
     libnl \
     libpcre \
     libssh2 \
diff --git a/meta/recipes-support/libmd/libmd/run-ptest b/meta/recipes-support/libmd/libmd/run-ptest
new file mode 100644
index 0000000000..871b6a0102
--- /dev/null
+++ b/meta/recipes-support/libmd/libmd/run-ptest
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+for testFile in $(ls); do
+	if [ "$testFile" = "run-ptest" ]; then
+		continue
+	else
+		if ./${testFile}; then
+			echo "PASS: ${testFile}"
+		else
+			echo "FAIL: ${testFile}"
+		fi
+	fi
+done
diff --git a/meta/recipes-support/libmd/libmd_1.1.0.bb b/meta/recipes-support/libmd/libmd_1.1.0.bb
index dc588a0f95..223f1f1418 100644
--- a/meta/recipes-support/libmd/libmd_1.1.0.bb
+++ b/meta/recipes-support/libmd/libmd_1.1.0.bb
@@ -8,9 +8,21 @@ HOMEPAGE = "https://www.hadrons.org/software/libmd/"
 LICENSE = "BSD-3-Clause & BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://COPYING;md5=0436d4fb62a71f661d6e8b7812f9e1df"
 
-SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz"
+SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz \
+           file://run-ptest \
+"
 SRC_URI[sha256sum] = "1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"
 
-inherit autotools
+inherit autotools ptest
+
+do_compile_ptest() {
+    sed -i "/\$(MAKE) \$(AM_MAKEFLAGS) check-TESTS/d" test/Makefile
+    oe_runmake check
+}
+
+do_install_ptest() {
+    # install the test dir
+    cp -rf ${B}/test/.libs/* ${D}${PTEST_PATH}
+}
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [OE-core][PATCH] libmd: add ptest for 'libmd'
  2025-08-18  8:15 [OE-core][PATCH] " rajmohan r
@ 2025-08-24 14:02 ` Ross Burton
  2025-08-28  9:57 ` Yoann Congal
  1 sibling, 0 replies; 9+ messages in thread
From: Ross Burton @ 2025-08-24 14:02 UTC (permalink / raw)
  To: semc.2042@gmail.com; +Cc: openembedded-core@lists.openembedded.org



> On 18 Aug 2025, at 10:15, rajmohan r via lists.openembedded.org <semc.2042=gmail.com@lists.openembedded.org> wrote:
> +do_install_ptest() {
> +    # install the test dir
> +    cp -rf ${B}/test/.libs/* ${D}${PTEST_PATH}
> +}

Instead of copying files from .libs/ (which is a libtool-specific implementation detail, and may not exist), can you use “libtool —mode install install <source> <dest>” to copy the files? This ensures that the files get relinked if needed and doesn’t rely on the internal details of how libtool is building.

Ross

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [OE-core][PATCH] libmd: add ptest for 'libmd'
  2025-08-18  8:15 [OE-core][PATCH] " rajmohan r
  2025-08-24 14:02 ` Ross Burton
@ 2025-08-28  9:57 ` Yoann Congal
  1 sibling, 0 replies; 9+ messages in thread
From: Yoann Congal @ 2025-08-28  9:57 UTC (permalink / raw)
  To: openembedded-core

Hello,

Le 18/08/2025 à 10:15, rajmohan r via lists.openembedded.org a écrit :
> Adapt the compile 'test' phony target from Makefile and deploy as
> ptest for libmd.
> It takes less than 30seconds for ptest completion.
> 
> Signed-off-by: rajmohan r <semc.2042@gmail.com>
> ---
>  meta/conf/distro/include/ptest-packagelists.inc |  1 +
>  meta/recipes-support/libmd/libmd/run-ptest      | 13 +++++++++++++
>  meta/recipes-support/libmd/libmd_1.1.0.bb       | 16 ++++++++++++++--
>  3 files changed, 28 insertions(+), 2 deletions(-)
>  create mode 100644 meta/recipes-support/libmd/libmd/run-ptest
> 
> diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
> index e3099439f4..6cfafdca5a 100644
> --- a/meta/conf/distro/include/ptest-packagelists.inc
> +++ b/meta/conf/distro/include/ptest-packagelists.inc
> @@ -31,6 +31,7 @@ PTESTS_FAST = "\
>      libconvert-asn1-perl \
>      libexif \
>      libgpg-error\
> +    libmd \
>      libnl \
>      libpcre \
>      libssh2 \
> diff --git a/meta/recipes-support/libmd/libmd/run-ptest b/meta/recipes-support/libmd/libmd/run-ptest
> new file mode 100644
> index 0000000000..871b6a0102
> --- /dev/null
> +++ b/meta/recipes-support/libmd/libmd/run-ptest
> @@ -0,0 +1,13 @@
> +#!/bin/sh
> +
> +for testFile in $(ls); do
> +	if [ "$testFile" = "run-ptest" ]; then
> +		continue
> +	else
> +		if ./${testFile}; then
> +			echo "PASS: ${testFile}"
> +		else
> +			echo "FAIL: ${testFile}"
> +		fi
> +	fi
> +done

You should explicitly return 0 (if all tests succeeded) or 1 (if any
test failed).
If I read correctly, your script will always return 0 (success) because
the last command run is an 'echo'.

See
https://docs.yoctoproject.org/dev/test-manual/ptest.html#running-ptest
(that was added recently)

Thanks!

> diff --git a/meta/recipes-support/libmd/libmd_1.1.0.bb b/meta/recipes-support/libmd/libmd_1.1.0.bb
> index dc588a0f95..223f1f1418 100644
> --- a/meta/recipes-support/libmd/libmd_1.1.0.bb
> +++ b/meta/recipes-support/libmd/libmd_1.1.0.bb
> @@ -8,9 +8,21 @@ HOMEPAGE = "https://www.hadrons.org/software/libmd/"
>  LICENSE = "BSD-3-Clause & BSD-2-Clause"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=0436d4fb62a71f661d6e8b7812f9e1df"
>  
> -SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz"
> +SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz \
> +           file://run-ptest \
> +"
>  SRC_URI[sha256sum] = "1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"
>  
> -inherit autotools
> +inherit autotools ptest
> +
> +do_compile_ptest() {
> +    sed -i "/\$(MAKE) \$(AM_MAKEFLAGS) check-TESTS/d" test/Makefile
> +    oe_runmake check
> +}
> +
> +do_install_ptest() {
> +    # install the test dir
> +    cp -rf ${B}/test/.libs/* ${D}${PTEST_PATH}
> +}
>  
>  BBCLASSEXTEND = "native nativesdk"
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#222035): https://lists.openembedded.org/g/openembedded-core/message/222035
> Mute This Topic: https://lists.openembedded.org/mt/114760002/4316185
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [yoann.congal@smile.fr]
> -=-=-=-=-=-=-=-=-=-=-=-
> 

-- 
Yoann Congal
Smile ECS - Tech Expert



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] libmd: add ptest for 'libmd'
@ 2025-09-19 12:05 Naman Jain
  2025-09-21 12:28 ` [OE-core] " Mathieu Dubois-Briand
  2025-09-22 17:03 ` Mathieu Dubois-Briand
  0 siblings, 2 replies; 9+ messages in thread
From: Naman Jain @ 2025-09-19 12:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: Virendra.Thakur

Adapt the compile 'test' phony target from Makefile and deploy as
ptest for libmd.
It takes less than 30seconds for ptest completion

Signed-off-by: Naman Jain <namanj1@kpit.com>
---
 .../conf/distro/include/ptest-packagelists.inc |  1 +
 meta/recipes-support/libmd/files/run-ptest     | 18 ++++++++++++++++++
 meta/recipes-support/libmd/libmd_1.1.0.bb      | 17 ++++++++++++++++-
 3 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/libmd/files/run-ptest

diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index e6e725bd25..4be87fb780 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -30,6 +30,7 @@ PTESTS_FAST = "\
     libconvert-asn1-perl \
     libexif \
     libgpg-error\
+    libmd\
     libnl \
     libpcre \
     librsvg \
diff --git a/meta/recipes-support/libmd/files/run-ptest b/meta/recipes-support/libmd/files/run-ptest
new file mode 100644
index 0000000000..0c4a5f64ec
--- /dev/null
+++ b/meta/recipes-support/libmd/files/run-ptest
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+cd test
+status = 0
+
+for testbin in *; do
+    if [ -x "$testbin" ] && [ ! -d "$testbin" ]; then
+        if "./$testbin"; then
+            echo "PASS: $testbin"
+        else
+            echo "FAIL: $testbin"
+            status=1
+        fi
+    fi
+done
+
+return $status
+
diff --git a/meta/recipes-support/libmd/libmd_1.1.0.bb b/meta/recipes-support/libmd/libmd_1.1.0.bb
index dc588a0f95..a39a5ec65b 100644
--- a/meta/recipes-support/libmd/libmd_1.1.0.bb
+++ b/meta/recipes-support/libmd/libmd_1.1.0.bb
@@ -11,6 +11,21 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0436d4fb62a71f661d6e8b7812f9e1df"
 SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz"
 SRC_URI[sha256sum] = "1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"
 
-inherit autotools
+inherit autotools ptest
+
+do_compile_ptest() {
+    sed -i "/\$(MAKE) \$(AM_MAKEFLAGS) check-TESTS/d" test/Makefile
+    oe_runmake check
+}
+
+
+do_install_ptest() {
+    install -d ${D}${PTEST_PATH}/test
+    for bin in ${B}/test/*; do
+        if [ -x "$bin" ]; then
+            libtool --mode=install install "$bin" ${D}${PTEST_PATH}/test/$(basename "$bin")
+        fi
+    done
+}
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [OE-core] [PATCH] libmd: add ptest for 'libmd'
  2025-09-19 12:05 [PATCH] libmd: add ptest for 'libmd' Naman Jain
@ 2025-09-21 12:28 ` Mathieu Dubois-Briand
  2025-09-22  8:22   ` Naman Jain
  2025-09-22 10:16   ` Naman Jain
  2025-09-22 17:03 ` Mathieu Dubois-Briand
  1 sibling, 2 replies; 9+ messages in thread
From: Mathieu Dubois-Briand @ 2025-09-21 12:28 UTC (permalink / raw)
  To: nmjain23, openembedded-core; +Cc: Virendra.Thakur

On Fri Sep 19, 2025 at 2:05 PM CEST, Naman Jain via lists.openembedded.org wrote:
> Adapt the compile 'test' phony target from Makefile and deploy as
> ptest for libmd.
> It takes less than 30seconds for ptest completion
>
> Signed-off-by: Naman Jain <namanj1@kpit.com>
> ---

Hi Naman,

Thanks for your patch.

It looks like we have a QA issue with it:

ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File /usr/lib/libmd/ptest/test/sha1 in package lib32-libmd-ptest contains reference to TMPDIR [buildpaths]
ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File /usr/lib/libmd/ptest/test/rmd160 in package lib32-libmd-ptest contains reference to TMPDIR [buildpaths]
ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File /usr/lib/libmd/ptest/test/md5 in package lib32-libmd-ptest contains reference to TMPDIR [buildpaths]
ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File /usr/lib/libmd/ptest/test/md4 in package lib32-libmd-ptest contains reference to TMPDIR [buildpaths]
ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File /usr/lib/libmd/ptest/test/md2 in package lib32-libmd-ptest contains reference to TMPDIR [buildpaths]
ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File /usr/lib/libmd/ptest/test/sha2 in package lib32-libmd-ptest contains reference to TMPDIR [buildpaths]
ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: /usr/lib/libmd/ptest/test/sha2 contained in package lib32-libmd-ptest requires /bin/bash, but no providers found in RDEPENDS:lib32-libmd-ptest? [file-rdeps]
ERROR: lib32-libmd-1.1.0-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /srv/pokybuild/yocto-worker/qemux86-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-libmd/1.1.0/temp/log.do_package_qa.1674361
NOTE: recipe lib32-libmd-1.1.0-r0: task do_package_qa: Failed

https://autobuilder.yoctoproject.org/valkyrie/#/builders/59/builds/2419

Can you fix it, please?

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [OE-core] [PATCH] libmd: add ptest for 'libmd'
  2025-09-21 12:28 ` [OE-core] " Mathieu Dubois-Briand
@ 2025-09-22  8:22   ` Naman Jain
  2025-09-22 10:16   ` Naman Jain
  1 sibling, 0 replies; 9+ messages in thread
From: Naman Jain @ 2025-09-22  8:22 UTC (permalink / raw)
  To: Mathieu Dubois-Briand; +Cc: openembedded-core, Virendra.Thakur

[-- Attachment #1: Type: text/plain, Size: 2561 bytes --]

Hi Mathieu,
Thanks for the information. It seems the patch is working for us in master
and scarthgap branch. Can you please suggest the steps to reproduce this
error in our build so that we can provide the fix for it.

Thanks,
Naman Jain

On Sun, 21 Sept, 2025, 5:58 pm Mathieu Dubois-Briand, <
mathieu.dubois-briand@bootlin.com> wrote:

> On Fri Sep 19, 2025 at 2:05 PM CEST, Naman Jain via lists.openembedded.org
> wrote:
> > Adapt the compile 'test' phony target from Makefile and deploy as
> > ptest for libmd.
> > It takes less than 30seconds for ptest completion
> >
> > Signed-off-by: Naman Jain <namanj1@kpit.com>
> > ---
>
> Hi Naman,
>
> Thanks for your patch.
>
> It looks like we have a QA issue with it:
>
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/sha1 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/rmd160 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/md5 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/md4 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/md2 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/sha2 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue:
> /usr/lib/libmd/ptest/test/sha2 contained in package lib32-libmd-ptest
> requires /bin/bash, but no providers found in RDEPENDS:lib32-libmd-ptest?
> [file-rdeps]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: Fatal QA errors were found,
> failing task.
> ERROR: Logfile of failure stored in:
> /srv/pokybuild/yocto-worker/qemux86-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-libmd/1.1.0/temp/log.do_package_qa.1674361
> NOTE: recipe lib32-libmd-1.1.0-r0: task do_package_qa: Failed
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/59/builds/2419
>
> Can you fix it, please?
>
> Thanks,
> Mathieu
>
> --
> Mathieu Dubois-Briand, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
>

[-- Attachment #2: Type: text/html, Size: 3365 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [OE-core] [PATCH] libmd: add ptest for 'libmd'
  2025-09-21 12:28 ` [OE-core] " Mathieu Dubois-Briand
  2025-09-22  8:22   ` Naman Jain
@ 2025-09-22 10:16   ` Naman Jain
  2025-09-22 13:47     ` Mathieu Dubois-Briand
  1 sibling, 1 reply; 9+ messages in thread
From: Naman Jain @ 2025-09-22 10:16 UTC (permalink / raw)
  To: Mathieu Dubois-Briand, openembedded-core; +Cc: Virendra.Thakur

[-- Attachment #1: Type: text/plain, Size: 2563 bytes --]

Hi Mathieu,
Thanks for the information. It seems the patch is working for us in master
and scarthgap branch. Can you please suggest the steps to reproduce this
error in our build so that we can provide the fix for it.

Thanks,
Naman Jain


On Sun, 21 Sept, 2025, 5:58 pm Mathieu Dubois-Briand, <
mathieu.dubois-briand@bootlin.com> wrote:

> On Fri Sep 19, 2025 at 2:05 PM CEST, Naman Jain via lists.openembedded.org
> wrote:
> > Adapt the compile 'test' phony target from Makefile and deploy as
> > ptest for libmd.
> > It takes less than 30seconds for ptest completion
> >
> > Signed-off-by: Naman Jain <namanj1@kpit.com>
> > ---
>
> Hi Naman,
>
> Thanks for your patch.
>
> It looks like we have a QA issue with it:
>
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/sha1 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/rmd160 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/md5 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/md4 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/md2 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue: File
> /usr/lib/libmd/ptest/test/sha2 in package lib32-libmd-ptest contains
> reference to TMPDIR [buildpaths]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: QA Issue:
> /usr/lib/libmd/ptest/test/sha2 contained in package lib32-libmd-ptest
> requires /bin/bash, but no providers found in RDEPENDS:lib32-libmd-ptest?
> [file-rdeps]
> ERROR: lib32-libmd-1.1.0-r0 do_package_qa: Fatal QA errors were found,
> failing task.
> ERROR: Logfile of failure stored in:
> /srv/pokybuild/yocto-worker/qemux86-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-libmd/1.1.0/temp/log.do_package_qa.1674361
> NOTE: recipe lib32-libmd-1.1.0-r0: task do_package_qa: Failed
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/59/builds/2419
>
> Can you fix it, please?
>
> Thanks,
> Mathieu
>
> --
> Mathieu Dubois-Briand, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
>

[-- Attachment #2: Type: text/html, Size: 3423 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [OE-core] [PATCH] libmd: add ptest for 'libmd'
  2025-09-22 10:16   ` Naman Jain
@ 2025-09-22 13:47     ` Mathieu Dubois-Briand
  0 siblings, 0 replies; 9+ messages in thread
From: Mathieu Dubois-Briand @ 2025-09-22 13:47 UTC (permalink / raw)
  To: Naman Jain, openembedded-core; +Cc: Virendra.Thakur

On Mon Sep 22, 2025 at 12:16 PM CEST, Naman Jain wrote:
> Hi Mathieu,
> Thanks for the information. It seems the patch is working for us in master
> and scarthgap branch. Can you please suggest the steps to reproduce this
> error in our build so that we can provide the fix for it.
>
> Thanks,
> Naman Jain
>

Hi Naman,

Now this failure is a bit strange, because I'm having a hard time
reproducing this out of the autobuilder. The behaviour of the libtool
command in do_install_ptest() is different when I build locally.

So first, how can you reproduce this locally:

git clone https://git.yoctoproject.org/poky-ci-archive -b autobuilder.yoctoproject.org/valkyrie/a-full-2415
. oe-init-build-env
bitbake libmd
# Above build log is for lib32-libmd, but libmd should show the same
# error.

Now, on my computer, the build succeeds, while it fails on the
autobuilder.

The difference lies in the libtool command output. On both the
autobuilder and my computer, the input file is a shell script wrapper
generated by libtool. But on the my computer the output is a binary,
while on the autobuilder the output is the same script as in input. As
the script contains a reference to the build directory, it triggers the
QA error.

I will try to go further and understand why the behaviour is different.

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [OE-core] [PATCH] libmd: add ptest for 'libmd'
  2025-09-19 12:05 [PATCH] libmd: add ptest for 'libmd' Naman Jain
  2025-09-21 12:28 ` [OE-core] " Mathieu Dubois-Briand
@ 2025-09-22 17:03 ` Mathieu Dubois-Briand
  1 sibling, 0 replies; 9+ messages in thread
From: Mathieu Dubois-Briand @ 2025-09-22 17:03 UTC (permalink / raw)
  To: nmjain23, openembedded-core; +Cc: Virendra.Thakur

On Fri Sep 19, 2025 at 2:05 PM CEST, Naman Jain via lists.openembedded.org wrote:
> diff --git a/meta/recipes-support/libmd/libmd_1.1.0.bb b/meta/recipes-support/libmd/libmd_1.1.0.bb
> index dc588a0f95..a39a5ec65b 100644
> --- a/meta/recipes-support/libmd/libmd_1.1.0.bb
> +++ b/meta/recipes-support/libmd/libmd_1.1.0.bb
> @@ -11,6 +11,21 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0436d4fb62a71f661d6e8b7812f9e1df"
>  SRC_URI = "https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz"
>  SRC_URI[sha256sum] = "1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"
>  
> -inherit autotools
> +inherit autotools ptest
> +
> +do_compile_ptest() {
> +    sed -i "/\$(MAKE) \$(AM_MAKEFLAGS) check-TESTS/d" test/Makefile
> +    oe_runmake check
> +}
> +
> +
> +do_install_ptest() {
> +    install -d ${D}${PTEST_PATH}/test
> +    for bin in ${B}/test/*; do
> +        if [ -x "$bin" ]; then
> +            libtool --mode=install install "$bin" ${D}${PTEST_PATH}/test/$(basename "$bin")

Hi Naman,

Can you use ${B}/libtool here instead of libtool? It looks like it
should fix the issue we are seeing.

> +        fi
> +    done
> +}
>  
>  BBCLASSEXTEND = "native nativesdk"

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-09-22 17:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-19 12:05 [PATCH] libmd: add ptest for 'libmd' Naman Jain
2025-09-21 12:28 ` [OE-core] " Mathieu Dubois-Briand
2025-09-22  8:22   ` Naman Jain
2025-09-22 10:16   ` Naman Jain
2025-09-22 13:47     ` Mathieu Dubois-Briand
2025-09-22 17:03 ` Mathieu Dubois-Briand
  -- strict thread matches above, loose matches on Subject: below --
2025-08-18  8:15 [OE-core][PATCH] " rajmohan r
2025-08-24 14:02 ` Ross Burton
2025-08-28  9:57 ` Yoann Congal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.