Hello community, here is the log from the commit of package ruby2.5 for openSUSE:Factory checked in at 2018-01-20 11:24:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby2.5 (Old) and /work/SRC/openSUSE:Factory/.ruby2.5.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ruby2.5" Sat Jan 20 11:24:53 2018 rev:9 rq:565795 version:2.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ruby2.5/ruby2.5.changes 2018-01-01 22:04:53.599749135 +0100 +++ /work/SRC/openSUSE:Factory/.ruby2.5.new/ruby2.5.changes 2018-01-20 11:24:55.945366484 +0100 @@ -1,0 +2,7 @@ +Mon Jan 15 14:38:17 UTC 2018 - mrueck...@suse.de + +- add reproducible build patches from debian + 0003-Mark-Gemspec-reproducible-change-fixing-784225-too.patch + 0004-Make-gemspecs-reproducible.patch + +------------------------------------------------------------------- New: ---- 0003-Mark-Gemspec-reproducible-change-fixing-784225-too.patch 0004-Make-gemspecs-reproducible.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ruby2.5.spec ++++++ --- /var/tmp/diff_new_pack.WsDxT3/_old 2018-01-20 11:24:56.821325530 +0100 +++ /var/tmp/diff_new_pack.WsDxT3/_new 2018-01-20 11:24:56.821325530 +0100 @@ -1,7 +1,7 @@ # # spec file for package ruby2.5 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -127,6 +127,8 @@ Patch01: 0001-make-gem-build-reproducible.patch Patch02: 0002-gc.c-tick-for-POWER-arch.patch +Patch03: 0003-Mark-Gemspec-reproducible-change-fixing-784225-too.patch +Patch04: 0004-Make-gemspecs-reproducible.patch # Summary: An Interpreted Object-Oriented Scripting Language @@ -320,6 +322,8 @@ #setup -q -n snapshot %patch01 -p1 %patch02 -p1 +%patch03 -p1 +%patch04 -p1 find sample -type f -print0 | xargs -r0 chmod a-x grep -Erl '^#! */' benchmark bootstraptest ext lib sample test \ | xargs -r perl -p -i -e 's|^#!\s*\S+(\s+.*)?$|#!/usr/bin/ruby%{rb_binary_suffix} $1|' ++++++ 0003-Mark-Gemspec-reproducible-change-fixing-784225-too.patch ++++++ From: Christian Hofstaedtler <z...@debian.org> Date: Tue, 10 Oct 2017 15:07:11 -0300 Subject: Mark Gemspec-reproducible change fixing #784225, too I think the UTC date change will fix the Multi-Arch not-same file issue, too. Signed-off-by: Antonio Terceiro <terce...@debian.org> Signed-off-by: Christian Hofstaedtler <z...@debian.org> --- lib/rubygems/specification.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index efc08c4..890c7c5 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -1786,7 +1786,9 @@ def date= date raise(Gem::InvalidSpecificationException, "invalid date format in specification: #{date.inspect}") end - when Time, DateLike then + when Time then + Time.utc(date.utc.year, date.utc.month, date.utc.day) + when DateLike then Time.utc(date.year, date.month, date.day) else TODAY ++++++ 0004-Make-gemspecs-reproducible.patch ++++++ From: Antonio Terceiro <terce...@debian.org> Date: Tue, 10 Oct 2017 15:08:43 -0300 Subject: Make gemspecs reproducible With an explicit date, they will get the current date and make build unreproducible --- ext/bigdecimal/bigdecimal.gemspec | 1 + ext/io/console/io-console.gemspec | 2 +- lib/rdoc/rdoc.gemspec | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/bigdecimal/bigdecimal.gemspec b/ext/bigdecimal/bigdecimal.gemspec index c8c9087..9cf22f7 100644 --- a/ext/bigdecimal/bigdecimal.gemspec +++ b/ext/bigdecimal/bigdecimal.gemspec @@ -6,6 +6,7 @@ s.name = "bigdecimal" s.version = bigdecimal_version s.authors = ["Kenta Murata", "Zachary Scott", "Shigeo Kobayashi"] + s.date = RUBY_RELEASE_DATE s.email = ["m...@mrkn.jp"] s.summary = "Arbitrary-precision decimal floating-point number library." diff --git a/ext/io/console/io-console.gemspec b/ext/io/console/io-console.gemspec index 822d3eb..18d2887 100644 --- a/ext/io/console/io-console.gemspec +++ b/ext/io/console/io-console.gemspec @@ -5,7 +5,7 @@ Gem::Specification.new do |s| s.name = "io-console" s.version = _VERSION - s.date = date + s.date = RUBY_RELEASE_DATE s.summary = "Console interface" s.email = "n...@ruby-lang.org" s.description = "add console capabilities to IO instances." diff --git a/lib/rdoc/rdoc.gemspec b/lib/rdoc/rdoc.gemspec index 8c92908..0e6c0c7 100644 --- a/lib/rdoc/rdoc.gemspec +++ b/lib/rdoc/rdoc.gemspec @@ -7,6 +7,7 @@ Gem::Specification.new do |s| s.name = "rdoc" + s.date = RUBY_RELEASE_DATE s.version = RDoc::VERSION s.date = "2017-12-24"