mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 22:39:49 +02:00
refresh the following patches for 3.1.1: 0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch 0006-Make-gemspecs-reproducible.patch (From OE-Core rev: 6ae009ae73fc81de441d57699fee61b6fcc48600) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
32 lines
1021 B
Diff
32 lines
1021 B
Diff
From 6e1dc610724a7aa8368cbcddf4bbe21cccc0f731 Mon Sep 17 00:00:00 2001
|
|
From: Lucas Kanashiro <kanashiro@debian.org>
|
|
Date: Fri, 1 Nov 2019 15:25:17 -0300
|
|
Subject: [PATCH] Make gemspecs reproducible
|
|
|
|
Without an explicit date, they will get the current date and make the
|
|
build unreproducible
|
|
|
|
Upstream-Status: Backport [debian]
|
|
---
|
|
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 0d72cee..eb7bc25 100644
|
|
--- a/lib/rubygems/specification.rb
|
|
+++ b/lib/rubygems/specification.rb
|
|
@@ -1691,7 +1691,9 @@ class Gem::Specification < Gem::BasicSpecification
|
|
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
|
|
--
|
|
2.25.1
|
|
|