forked from pool/perl-Class-MethodMaker
Add reproducible.patch to sort hashes to fix build-compare OBS-URL: https://build.opensuse.org/request/show/508969 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-MethodMaker?expand=0&rev=26
20 lines
728 B
Diff
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;
|