You need to clean before every build. Perl doesn't correctly reconfigure itself when settings like this change.
Alex On Mon, 10 Jan 2022 at 13:56, Andrei Gherzan <[email protected]> wrote: > On Mon, 10 Jan 2022, at 12:39, Andrei Gherzan wrote: > > Hi, > > > > On Thu, 6 Jan 2022, at 20:12, Saul Wold wrote: > >> From: Saul Wold <[email protected]> > >> > >> 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. > >> > >> NOTE: Perl officially discourges the use of threads, so this > >> functionality maybe depercated in the future [0][1] > >> > >> v2: adds the usethreads to native and nativesdk. This was tested by > >> builing postresql and rrdtool which use perl and automake. > >> > >> [0] https://perldoc.perl.org/5.34.0-RC2/threads#WARNING > >> [1] https://perldoc.perl.org/perlpolicy#discouraged > >> > >> Signed-off-by: Saul Wold <[email protected]> > >> --- > >> meta/recipes-devtools/perl/perl_5.34.0.bb | 3 +++ > >> 1 file changed, 3 insertions(+) > >> > >> diff --git a/meta/recipes-devtools/perl/perl_5.34.0.bb > >> b/meta/recipes-devtools/perl/perl_5.34.0.bb > >> index a6ae80f07e1..e4bcfe3ce69 100644 > >> --- a/meta/recipes-devtools/perl/perl_5.34.0.bb > >> +++ b/meta/recipes-devtools/perl/perl_5.34.0.bb > >> @@ -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 \ > >> @@ -80,6 +81,7 @@ do_configure:class-nativesdk() { > >> ./configure --prefix=${prefix} \ > >> --target=${TARGET_SYS} \ > >> -Duseshrplib \ > >> + -Dusethreads \ > >> -Dsoname=libperl.so.5 \ > >> -Dvendorprefix=${prefix} \ > >> -Darchlibexp=${STAGING_LIBDIR}/perl5/${PV}/${TARGET_ARCH}-linux \ > >> @@ -94,6 +96,7 @@ do_configure:class-native() { > >> ./configure --prefix=${prefix} \ > >> -Dbin=${bindir}/perl-native \ > >> -Duseshrplib \ > >> + -Dusethreads \ > >> -Dsoname=libperl.so.5 \ > >> -Dvendorprefix=${prefix} \ > >> -Ui_xlocale \ > > > > This patch seems to break perl-native with musl: > > It seems like it is persistent and it can be workaround-ed with a > cleansstate. the way to reproduce (if anyone is interested) is to: > 0. I've only tested it with musl so it might be musl specific > 1. cleansstate perl-native > 2. build without this patch - reverted > 3. build with this patch > > Andrei > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#160348): https://lists.openembedded.org/g/openembedded-core/message/160348 Mute This Topic: https://lists.openembedded.org/mt/88246693/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
