Hello community,

here is the log from the commit of package perl-Class-MethodMaker for 
openSUSE:Factory checked in at 2017-07-17 09:12:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Class-MethodMaker (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Class-MethodMaker.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Class-MethodMaker"

Mon Jul 17 09:12:38 2017 rev:28 rq:510432 version:2.24

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Class-MethodMaker/perl-Class-MethodMaker.changes
    2015-04-15 16:22:18.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Class-MethodMaker.new/perl-Class-MethodMaker.changes
       2017-07-17 09:12:38.931339455 +0200
@@ -1,0 +2,5 @@
+Sat Jul  8 19:58:13 UTC 2017 - bwiedem...@suse.com
+
+- Add reproducible.patch to sort hashes to fix build-compare
+
+-------------------------------------------------------------------

New:
----
  reproducible.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Class-MethodMaker.spec ++++++
--- /var/tmp/diff_new_pack.vMBAWY/_old  2017-07-17 09:12:39.635240306 +0200
+++ /var/tmp/diff_new_pack.vMBAWY/_new  2017-07-17 09:12:39.639239743 +0200
@@ -25,6 +25,8 @@
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Class-MethodMaker/
 Source:         
http://www.cpan.org/authors/id/S/SC/SCHWIGON/class-methodmaker/%{cpan_name}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Bug/Display.html?id=122339
+Patch0:         reproducible.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
@@ -45,6 +47,7 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
+%patch0 -p1
 find . -type f -print0 | xargs -0 chmod 644
 
 %build

++++++ reproducible.patch ++++++
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;

Reply via email to