dh-perl6 vs. dh-raku: reproducibility issues with vendor/precompiled

Dominique Dumont dod at debian.org
Wed Feb 9 18:29:43 GMT 2022


On Thursday, 27 January 2022 19:40:14 CET Chris Lamb wrote:
> It probably isn't a good idea that Debian package builds inherits anything
> from the build user's home directory anyway, so the following should be
> okay:
> 
>     --- a/dh_raku_build
>     +++ b/dh_raku_build
>     @@ -39,6 +39,7 @@ foreach my $pkg (getpackages()) {
>                       --from=. --to=debian/tmp/pre-compiled!;
>          doit({
>              update_env => {
>     +            HOME => "/nonexistent",
>                  RAKUDO_RERESOLVE_DEPENDENCIES => 0,
>              }
>          }, at cmd);

Unfortunately, the build of perl6-zef with cowbuilder is already broken with cowbuilder. The nonexistant home dir leads to build failures.

I get a lot of warnings like:

WARNING: unhandled Failure detected in DESTROY. If you meant to ignore it, you can mark it as handled by calling .Bool, .so, .not, or .defined methods. The Failure was:
Failed to create directory '/nonexistent/.raku/short' with mode '0o777': Failed to mkdir: No such file or directory
  in sub MAIN at /usr/bin/prove6 line 3
  in block <unit> at /usr/bin/prove6 line 1

And the build fails with:

===SORRY!=== Error while compiling /usr/lib/perl6/vendor/sources/B4401FC2C8E71132AE0D3CE2C47A7D2FBB0D50F1
Could not find Getopt::Long in:
    inst#/nonexistent/.raku
    inst#/usr/lib/perl6/site
    inst#/usr/lib/perl6/vendor
    inst#/usr/lib/perl6/core
    ap#
    nqp#
    perl5#
at /usr/lib/perl6/vendor/sources/B4401FC2C8E71132AE0D3CE2C47A7D2FBB0D50F1:2
dh_raku_test: error: /usr/bin/prove6 -l -v returned exit code 1

All the best





More information about the Pkg-rakudo-devel mailing list