Bug#1003159: dh-raku: please make the contents of "$pkg.dh-raku.list" files reproducible

Chris Lamb lamby at debian.org
Wed Jan 5 11:52:06 GMT 2022


Source: dh-raku
Version: 0.5
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness toolchain
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
dh-raku generated $pkg.dh-raku.list files that were unreproducible.

This is related (but very much not the issue as) the reproducibility
of the precompiled Perl6 modules themselves. For that, see #1002496.

However, we can easily fix the dh-raku.list files. For that, please
see and apply the attached patch.

  [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/dh_raku_install b/dh_raku_install
index 6971e4a..252d553 100644
--- a/dh_raku_install
+++ b/dh_raku_install
@@ -94,7 +94,7 @@ foreach my $pkg (getpackages()) {
     push @to_do, sub {
         my $file_name = "$pkg.dh-raku.list";
         my $list = $precomp->child($file_name);
-        $list->spew(map {"$_\n"} @installed);
+        $list->spew(map {"$_\n"} sort @installed);
         nonquiet_print("Installing $file_name in $vendor");
         install_file ($list->stringify, $vendor->child($file_name)->stringify);
     };


More information about the Pkg-rakudo-devel mailing list