Skip Menu |
 

This queue is for tickets about the Class-MethodMaker CPAN distribution.

Report information
The Basics
Id: 122339
Status: new
Priority: 0/
Queue: Class-MethodMaker

People
Owner: Nobody in particular
Requestors: bitcardbmw [...] lsmod.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.24
Fixed in: (no value)



Subject: make Class-MethodMaker build reproducibly
Download (untitled) / with headers
text/plain 255b
When building packages (e.g. for openSUSE Linux) in disposable VMs cmmg.pl outputs hash value content in undeterministic order thus producing different array.pm files from constant array.m input. See https://reproducible-builds.org/ for why this matters.
Subject: reproducible.patch
Download reproducible.patch
text/x-diff 1.1k
When building packages (e.g. for openSUSE Linux) in disposable VMs cmmg.pl outputs hash value content in undeterministic order This patch fixes this by sorting hash keys See https://reproducible-builds.org/ for why this matters. Index: Class-MethodMaker-2.24/cmmg.pl =================================================================== --- Class-MethodMaker-2.24.orig/cmmg.pl +++ Class-MethodMaker-2.24/cmmg.pl @@ -99,7 +99,8 @@ my @storage_names = Class::MethodMaker:: my %import; -while ( my ($meth, $value) = each %methods ) { +foreach my $meth ( sort keys %methods ) { + my $value = $methods{$meth}; print "package Class::MethodMaker::", basename($ARGV[0], '.m'), ";\n"; print <<'END'; Index: Class-MethodMaker-2.24/lib/Class/MethodMaker/OptExt.pm =================================================================== --- Class-MethodMaker-2.24.orig/lib/Class/MethodMaker/OptExt.pm +++ Class-MethodMaker-2.24/lib/Class/MethodMaker/OptExt.pm @@ -357,7 +357,7 @@ sub encode { # ------------------------------------- -sub option_names { grep $_ ne 'DEFAULT', keys %{OPTEXT()} } +sub option_names { grep $_ ne 'DEFAULT', sort keys %{OPTEXT()} } sub optcode { my $class = shift;


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.