Skip to contentSkip to conversation

perl: Enable threading

PATCH Superseded Saul Wold 2 participants 3 messages Dec 30, 2021 – Jan 6, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 perl: Enable threading

When the tranisiton to perl-cross occured, the threading define seems to have been missed. The perl tests for threading where simply skipped, so there was no direct failures. This was verified by running perl ptest before and after the change to see PASS vs SKIP results of threaded related tests.

---
 meta/recipes-devtools/perl/perl_5.34.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/perl/perl_5.34.0.bb +1 -0
index a6ae80f07e1..3306a093692 100644
@@ -53,6 +53,7 @@ do_configure:class-target() {
     ./configure --prefix=${prefix} --libdir=${libdir} \
     --target=${TARGET_SYS} \
     -Duseshrplib \
+    -Dusethreads \
     -Dsoname=libperl.so.5 \
     -Dvendorprefix=${prefix} \
     -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux \
Signature · 1 line
2.31.1
#1 lore raw
Quoted 7 lines · Saul Wold

When the tranisiton to perl-cross occured, the threading define seems to have been missed. The perl tests for threading where simply skipped, so there was no direct failures. This was verified by running perl ptest before and after the change to see PASS vs SKIP results of threaded related tests.

Do we need this for perl-native too ? I am seeing failures like below

https://errors.yoctoproject.org/Errors/Details/621556/
https://errors.yoctoproject.org/Errors/Details/621555/

can you take a look ?

Quoted 29 lines
---
 meta/recipes-devtools/perl/perl_5.34.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/perl/perl_5.34.0.bb +1 -1
index a6ae80f07e1..3306a093692 100644
@@ -53,6 +53,7 @@ do_configure:class-target() {
     ./configure --prefix=${prefix} --libdir=${libdir} \
     --target=${TARGET_SYS} \
     -Duseshrplib \
+    -Dusethreads \
     -Dsoname=libperl.so.5 \
     -Dvendorprefix=${prefix} \
     -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux \
--

2.31.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#160066): https://lists.openembedded.org/g/openembedded-core/message/160066
Mute This Topic: https://lists.openembedded.org/mt/88042607/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw
Quoted 9 lines · Khem Raj
Quoted 7 lines · Saul Wold

When the tranisiton to perl-cross occured, the threading define seems to have been missed. The perl tests for threading where simply skipped, so there was no direct failures. This was verified by running perl ptest before and after the change to see PASS vs SKIP results of threaded related tests.

Quoted 7 lines

Do we need this for perl-native too ? I am seeing failures like below

https://errors.yoctoproject.org/Errors/Details/621556/
https://errors.yoctoproject.org/Errors/Details/621555/

can you take a look ?

Yes, I am looking into it. RP mentioned it earlier today.

Yes, I guess I just enabled for the target and not native or nativesdk, building and testing now.

Sau!

Quoted 29 lines
Quoted 29 lines
---
  meta/recipes-devtools/perl/perl_5.34.0.bb | 1 +
  1 file changed, 1 insertion(+)
meta/recipes-devtools/perl/perl_5.34.0.bb +1 -1
index a6ae80f07e1..3306a093692 100644
@@ -53,6 +53,7 @@ do_configure:class-target() {
      ./configure --prefix=${prefix} --libdir=${libdir} \
      --target=${TARGET_SYS} \
      -Duseshrplib \
+    -Dusethreads \
      -Dsoname=libperl.so.5 \
      -Dvendorprefix=${prefix} \
      -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux \
--

2.31.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#160066): https://lists.openembedded.org/g/openembedded-core/message/160066
Mute This Topic: https://lists.openembedded.org/mt/88042607/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 1 line
Sau!