09. 06. 2022. u 21:38, Slaven Rezic piše:
08. 06. 2022. u 17:43, Alceu Rodrigues de Freitas Junior via
cpan-testers-discuss piše:
Hello there,
I've struggling to define distroprefs and include "useithreads"
information for a perl that doesn't support it.
If I define it like this:
---
comment: Tests hang smoker
disabled: 1
match:
distribution: ^PRBRENAN/Nasm-X86
perlconfig:
archname: i386-openbsd
osname: openbsd
useithreads: null
The distribution is skipped just fine, but then I start to get
warning like this one:
validation of distropref
'/home/goku/cpan-openbsd-smoker/prefs/PRBRENAN.Nasm-X86.yml'[0]
against schema
'/home/goku/perl5/lib/perl5/CPAN/Kwalify/distroprefs.yml' failed: -
[/match/perlconfig/useithreads] Non-valid data 'undef', expected text
I already tried to configure like this instead:
---
comment: Tests hang smoker
disabled: 1
match:
distribution: ^PRBRENAN/Nasm-X86
perlconfig:
archname: i386-openbsd
osname: openbsd
no_useithreads: defined
But then the distribution is not skipped anymore.
I went through Kwalify documentation, but couldn't figure out where
the CPAN distroprefs schema is define so I can figure out how to
accomplish both things (skipping the distribution and not getting
warnings).
Hi Alceu,
I think that
useithreads: undef
should work, using exactly the string which is returned by
perl -V:useithreads
Actually, looking at this distropref file
https://github.com/eserte/srezic-cpan-distroprefs/blob/8c3ae5d7b4071f9639ccfcea4f44764c2699e27e/Devel-CallParser.yml#L5
it seems that the value is interepreted as a regexp, so you want to
anchor it with ^ and $ for extra safety.
Regards, Slaven