diff options
author | wangmy <wangmy@fujitsu.com> | 2022-02-23 21:41:53 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-25 12:41:23 +0000 |
commit | 535f6538b6bf445c250dc9e224d9cb084f4e2a7b (patch) | |
tree | bfb722cd209d7601bdcd4ce207f9b16bfa743366 /meta/recipes-devtools/ruby | |
parent | a93937bb40fbca56bd3072de51d58b3cc253d0ae (diff) | |
download | poky-535f6538b6bf445c250dc9e224d9cb084f4e2a7b.tar.gz |
ruby: upgrade 3.1.0 -> 3.1.1
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>
Diffstat (limited to 'meta/recipes-devtools/ruby')
-rw-r--r-- | meta/recipes-devtools/ruby/ruby/0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch | 41 | ||||
-rw-r--r-- | meta/recipes-devtools/ruby/ruby/0006-Make-gemspecs-reproducible.patch | 13 | ||||
-rw-r--r-- | meta/recipes-devtools/ruby/ruby_3.1.1.bb (renamed from meta/recipes-devtools/ruby/ruby_3.1.0.bb) | 2 |
3 files changed, 31 insertions, 25 deletions
diff --git a/meta/recipes-devtools/ruby/ruby/0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch b/meta/recipes-devtools/ruby/ruby/0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch index b7faa58655..41f206523e 100644 --- a/meta/recipes-devtools/ruby/ruby/0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch +++ b/meta/recipes-devtools/ruby/ruby/0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch | |||
@@ -1,28 +1,31 @@ | |||
1 | From: Christian Hofstaedtler <zeha@debian.org> | 1 | From 6e1dc610724a7aa8368cbcddf4bbe21cccc0f731 Mon Sep 17 00:00:00 2001 |
2 | Date: Tue, 10 Oct 2017 15:07:11 -0300 | 2 | From: Lucas Kanashiro <kanashiro@debian.org> |
3 | Subject: Mark Gemspec-reproducible change fixing #784225, too | 3 | Date: Fri, 1 Nov 2019 15:25:17 -0300 |
4 | Subject: [PATCH] Make gemspecs reproducible | ||
4 | 5 | ||
5 | I think the UTC date change will fix the Multi-Arch not-same file issue, | 6 | Without an explicit date, they will get the current date and make the |
6 | too. | 7 | build unreproducible |
7 | 8 | ||
8 | Upstream-Status: Backport [debian] | 9 | Upstream-Status: Backport [debian] |
9 | |||
10 | Signed-off-by: Antonio Terceiro <terceiro@debian.org> | ||
11 | Signed-off-by: Christian Hofstaedtler <zeha@debian.org> | ||
12 | --- | 10 | --- |
13 | lib/rubygems/specification.rb | 4 +++- | 11 | lib/rubygems/specification.rb | 4 +++- |
14 | 1 file changed, 3 insertions(+), 1 deletion(-) | 12 | 1 file changed, 3 insertions(+), 1 deletion(-) |
15 | 13 | ||
14 | diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb | ||
15 | index 0d72cee..eb7bc25 100644 | ||
16 | --- a/lib/rubygems/specification.rb | 16 | --- a/lib/rubygems/specification.rb |
17 | +++ b/lib/rubygems/specification.rb | 17 | +++ b/lib/rubygems/specification.rb |
18 | @@ -1695,7 +1695,9 @@ | 18 | @@ -1691,7 +1691,9 @@ class Gem::Specification < Gem::BasicSpecification |
19 | raise(Gem::InvalidSpecificationException, | 19 | raise(Gem::InvalidSpecificationException, |
20 | "invalid date format in specification: #{date.inspect}") | 20 | "invalid date format in specification: #{date.inspect}") |
21 | end | 21 | end |
22 | - when Time, DateLike then | 22 | - when Time, DateLike then |
23 | + when Time then | 23 | + when Time then |
24 | + Time.utc(date.utc.year, date.utc.month, date.utc.day) | 24 | + Time.utc(date.utc.year, date.utc.month, date.utc.day) |
25 | + when DateLike then | 25 | + when DateLike then |
26 | Time.utc(date.year, date.month, date.day) | 26 | Time.utc(date.year, date.month, date.day) |
27 | else | 27 | else |
28 | TODAY | 28 | TODAY |
29 | -- | ||
30 | 2.25.1 | ||
31 | |||
diff --git a/meta/recipes-devtools/ruby/ruby/0006-Make-gemspecs-reproducible.patch b/meta/recipes-devtools/ruby/ruby/0006-Make-gemspecs-reproducible.patch index de8d4f04cc..1e4a298317 100644 --- a/meta/recipes-devtools/ruby/ruby/0006-Make-gemspecs-reproducible.patch +++ b/meta/recipes-devtools/ruby/ruby/0006-Make-gemspecs-reproducible.patch | |||
@@ -41,10 +41,10 @@ index a9c0ec4..89da078 100644 | |||
41 | spec.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org"] | 41 | spec.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org"] |
42 | 42 | ||
43 | diff --git a/ext/io/console/io-console.gemspec b/ext/io/console/io-console.gemspec | 43 | diff --git a/ext/io/console/io-console.gemspec b/ext/io/console/io-console.gemspec |
44 | index 36beda7..e932d83 100644 | 44 | index aa57f8a..ba7f8e5 100644 |
45 | --- a/ext/io/console/io-console.gemspec | 45 | --- a/ext/io/console/io-console.gemspec |
46 | +++ b/ext/io/console/io-console.gemspec | 46 | +++ b/ext/io/console/io-console.gemspec |
47 | @@ -4,6 +4,7 @@ _VERSION = "0.5.10" | 47 | @@ -4,6 +4,7 @@ _VERSION = "0.5.11" |
48 | Gem::Specification.new do |s| | 48 | Gem::Specification.new do |s| |
49 | s.name = "io-console" | 49 | s.name = "io-console" |
50 | s.version = _VERSION | 50 | s.version = _VERSION |
@@ -53,13 +53,13 @@ index 36beda7..e932d83 100644 | |||
53 | s.email = "nobu@ruby-lang.org" | 53 | s.email = "nobu@ruby-lang.org" |
54 | s.description = "add console capabilities to IO instances." | 54 | s.description = "add console capabilities to IO instances." |
55 | diff --git a/lib/ipaddr.gemspec b/lib/ipaddr.gemspec | 55 | diff --git a/lib/ipaddr.gemspec b/lib/ipaddr.gemspec |
56 | index 36e2300..06dc888 100644 | 56 | index 1f4798e..48743cf 100644 |
57 | --- a/lib/ipaddr.gemspec | 57 | --- a/lib/ipaddr.gemspec |
58 | +++ b/lib/ipaddr.gemspec | 58 | +++ b/lib/ipaddr.gemspec |
59 | @@ -6,6 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | 59 | @@ -18,6 +18,7 @@ end |
60 | Gem::Specification.new do |spec| | 60 | Gem::Specification.new do |spec| |
61 | spec.name = "ipaddr" | 61 | spec.name = "ipaddr" |
62 | spec.version = "1.2.3" | 62 | spec.version = version |
63 | + spec.date = RUBY_RELEASE_DATE | 63 | + spec.date = RUBY_RELEASE_DATE |
64 | spec.authors = ["Akinori MUSHA", "Hajimu UMEMOTO"] | 64 | spec.authors = ["Akinori MUSHA", "Hajimu UMEMOTO"] |
65 | spec.email = ["knu@idaemons.org", "ume@mahoroba.org"] | 65 | spec.email = ["knu@idaemons.org", "ume@mahoroba.org"] |
@@ -76,3 +76,6 @@ index 525a15f..f6d0e22 100644 | |||
76 | s.version = RDoc::VERSION | 76 | s.version = RDoc::VERSION |
77 | 77 | ||
78 | s.authors = [ | 78 | s.authors = [ |
79 | -- | ||
80 | 2.25.1 | ||
81 | |||
diff --git a/meta/recipes-devtools/ruby/ruby_3.1.0.bb b/meta/recipes-devtools/ruby/ruby_3.1.1.bb index 7a04a36432..d8fddfa520 100644 --- a/meta/recipes-devtools/ruby/ruby_3.1.0.bb +++ b/meta/recipes-devtools/ruby/ruby_3.1.1.bb | |||
@@ -14,7 +14,7 @@ SRC_URI += " \ | |||
14 | file://0001-vm_dump.c-Define-REG_S1-and-REG_S2-for-musl-riscv.patch \ | 14 | file://0001-vm_dump.c-Define-REG_S1-and-REG_S2-for-musl-riscv.patch \ |
15 | " | 15 | " |
16 | 16 | ||
17 | SRC_URI[sha256sum] = "50a0504c6edcb4d61ce6b8cfdbddaa95707195fab0ecd7b5e92654b2a9412854" | 17 | SRC_URI[sha256sum] = "fe6e4782de97443978ddba8ba4be38d222aa24dc3e3f02a6a8e7701c0eeb619d" |
18 | 18 | ||
19 | PACKAGECONFIG ??= "" | 19 | PACKAGECONFIG ??= "" |
20 | PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | 20 | PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" |