1
0
Files
perl-Class-MethodMaker/reproducible.patch

20 lines
728 B
Diff

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/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;