Skip to content

Commit 0602bbf

Browse files
committed
Update patches for 3.2
1 parent 66a239a commit 0602bbf

12 files changed

Lines changed: 11560 additions & 131 deletions

debian/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ruby3.2 (3.2.0~placeholder-1) UNRELEASED; urgency=medium
1+
ruby3.2 (3.2.0-1) UNRELEASED; urgency=medium
22

33
* Ruby 3.2
44

debian/patches/0005-Make-gemspecs-reproducible.patch

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,59 +12,49 @@ build unreproducible
1212
lib/rdoc/rdoc.gemspec | 1 +
1313
5 files changed, 5 insertions(+)
1414

15-
diff --git a/ext/bigdecimal/bigdecimal.gemspec b/ext/bigdecimal/bigdecimal.gemspec
16-
index fd49c1b..5b8bb00 100644
1715
--- a/ext/bigdecimal/bigdecimal.gemspec
1816
+++ b/ext/bigdecimal/bigdecimal.gemspec
19-
@@ -4,6 +4,7 @@ Gem::Specification.new do |s|
17+
@@ -4,6 +4,7 @@
2018
s.name = "bigdecimal"
21-
s.version = "3.1.1"
19+
s.version = "3.1.3"
2220
s.authors = ["Kenta Murata", "Zachary Scott", "Shigeo Kobayashi"]
2321
+ s.date = RUBY_RELEASE_DATE
2422
s.email = ["mrkn@mrkn.jp"]
2523

2624
s.summary = "Arbitrary-precision decimal floating-point number library."
27-
diff --git a/ext/fiddle/fiddle.gemspec b/ext/fiddle/fiddle.gemspec
28-
index a9c0ec4..89da078 100644
2925
--- a/ext/fiddle/fiddle.gemspec
3026
+++ b/ext/fiddle/fiddle.gemspec
31-
@@ -8,6 +8,7 @@ end
27+
@@ -8,6 +8,7 @@
3228
Gem::Specification.new do |spec|
3329
spec.name = "fiddle"
3430
spec.version = version_module::Fiddle::VERSION
3531
+ spec.date = RUBY_RELEASE_DATE
3632
spec.authors = ["Aaron Patterson", "SHIBATA Hiroshi"]
3733
spec.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org"]
3834

39-
diff --git a/ext/io/console/io-console.gemspec b/ext/io/console/io-console.gemspec
40-
index aa57f8a..ba7f8e5 100644
4135
--- a/ext/io/console/io-console.gemspec
4236
+++ b/ext/io/console/io-console.gemspec
43-
@@ -4,6 +4,7 @@ _VERSION = "0.5.11"
37+
@@ -4,6 +4,7 @@
4438
Gem::Specification.new do |s|
4539
s.name = "io-console"
4640
s.version = _VERSION
4741
+ s.date = RUBY_RELEASE_DATE
4842
s.summary = "Console interface"
4943
s.email = "nobu@ruby-lang.org"
5044
s.description = "add console capabilities to IO instances."
51-
diff --git a/lib/ipaddr.gemspec b/lib/ipaddr.gemspec
52-
index 1f4798e..48743cf 100644
5345
--- a/lib/ipaddr.gemspec
5446
+++ b/lib/ipaddr.gemspec
55-
@@ -18,6 +18,7 @@ end
47+
@@ -18,6 +18,7 @@
5648
Gem::Specification.new do |spec|
5749
spec.name = "ipaddr"
5850
spec.version = version
5951
+ spec.date = RUBY_RELEASE_DATE
6052
spec.authors = ["Akinori MUSHA", "Hajimu UMEMOTO"]
6153
spec.email = ["knu@idaemons.org", "ume@mahoroba.org"]
6254

63-
diff --git a/lib/rdoc/rdoc.gemspec b/lib/rdoc/rdoc.gemspec
64-
index 525a15f..f6d0e22 100644
6555
--- a/lib/rdoc/rdoc.gemspec
6656
+++ b/lib/rdoc/rdoc.gemspec
67-
@@ -7,6 +7,7 @@ end
57+
@@ -7,6 +7,7 @@
6858

6959
Gem::Specification.new do |s|
7060
s.name = "rdoc"

debian/patches/0006-Fix-FTBS-on-hurd.patch

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,18 @@ Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
1010
io.c | 6 +++++-
1111
1 file changed, 5 insertions(+), 1 deletion(-)
1212

13-
diff --git a/io.c b/io.c
14-
index 0b54310..26168b2 100644
1513
--- a/io.c
1614
+++ b/io.c
17-
@@ -2011,7 +2011,11 @@ io_writev(int argc, const VALUE *argv, VALUE io)
15+
@@ -2207,7 +2207,11 @@
1816

1917
for (i = 0; i < argc; i += cnt) {
2018
#ifdef HAVE_WRITEV
21-
- if ((fptr->mode & (FMODE_SYNC|FMODE_TTY)) && iovcnt_ok(cnt = argc - i)) {
19+
- if ((fptr->mode & (FMODE_SYNC|FMODE_TTY)) && iovcnt_ok(cnt = argc - i)) {
2220
+ if ((fptr->mode & (FMODE_SYNC|FMODE_TTY))
2321
+# ifdef IOV_MAX
2422
+ && ((cnt = argc - i) < IOV_MAX)
2523
+# endif
2624
+ ) {
27-
n = io_fwritev(cnt, &argv[i], fptr);
28-
}
29-
else
25+
n = io_fwritev(cnt, &argv[i], fptr);
26+
}
27+
else

debian/patches/0007-Port-to-kfreebsd-amd64.patch

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,19 @@ Signed-off-by: Svante Signell <svante.signell@gmail.com>
1313
test/socket/test_socket.rb | 2 +-
1414
4 files changed, 26 insertions(+), 2 deletions(-)
1515

16-
diff --git a/ext/socket/option.c b/ext/socket/option.c
17-
index 4b33b3f..d068292 100644
1816
--- a/ext/socket/option.c
1917
+++ b/ext/socket/option.c
20-
@@ -10,6 +10,7 @@ VALUE rb_cSockOpt;
18+
@@ -10,6 +10,7 @@
2119
#if defined(__linux__) || \
2220
defined(__GNU__) /* GNU/Hurd */ || \
2321
defined(__FreeBSD__) || \
2422
+ defined(__FreeBSD_kernel__) || \
2523
defined(__DragonFly__) || \
2624
defined(__APPLE__) || \
2725
defined(_WIN32) || \
28-
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
29-
index d94e96a..e584e8e 100644
3026
--- a/ext/socket/raddrinfo.c
3127
+++ b/ext/socket/raddrinfo.c
32-
@@ -1723,10 +1723,21 @@ addrinfo_mload(VALUE self, VALUE ary)
28+
@@ -1722,10 +1722,21 @@
3329
INIT_SOCKADDR_UN(&uaddr, sizeof(struct sockaddr_un));
3430

3531
StringValue(v);
@@ -51,7 +47,7 @@ index d94e96a..e584e8e 100644
5147
memcpy(uaddr.sun_path, RSTRING_PTR(v), RSTRING_LEN(v));
5248
len = (socklen_t)sizeof(uaddr);
5349
memcpy(&ss, &uaddr, len);
54-
@@ -2370,10 +2381,21 @@ addrinfo_unix_path(VALUE self)
50+
@@ -2369,10 +2380,21 @@
5551
if (n < 0)
5652
rb_raise(rb_eSocket, "too short AF_UNIX address: %"PRIuSIZE" bytes given for minimum %"PRIuSIZE" bytes.",
5753
(size_t)rai->sockaddr_len, offsetof(struct sockaddr_un, sun_path));
@@ -73,32 +69,28 @@ index d94e96a..e584e8e 100644
7369
return rb_str_new(addr->sun_path, n);
7470
}
7571
#endif
76-
diff --git a/test/fiddle/test_handle.rb b/test/fiddle/test_handle.rb
77-
index 7e3ff9d..3799347 100644
7872
--- a/test/fiddle/test_handle.rb
7973
+++ b/test/fiddle/test_handle.rb
80-
@@ -174,6 +174,7 @@ module Fiddle
74+
@@ -178,6 +178,7 @@
8175
end unless /mswin|mingw/ =~ RUBY_PLATFORM
8276

8377
def test_dlerror
8478
+ return if /kfreebsd/ =~ RUBY_PLATFORM
8579
# FreeBSD (at least 7.2 to 7.2) calls nsdispatch(3) when it calls
8680
# getaddrinfo(3). And nsdispatch(3) doesn't call dlerror(3) even if
8781
# it calls _nss_cache_cycle_prevention_function with dlsym(3).
88-
@@ -182,7 +183,7 @@ module Fiddle
82+
@@ -186,7 +187,7 @@
8983
require 'socket'
9084
Socket.gethostbyname("localhost")
9185
Fiddle.dlopen("/lib/libc.so.7").sym('strcpy')
9286
- end if /freebsd/=~ RUBY_PLATFORM
9387
+ end if /freebsd/ =~ RUBY_PLATFORM
9488

9589
def test_no_memory_leak
96-
if respond_to?(:assert_nothing_leaked_memory)
97-
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb
98-
index 7e596f0..930bb61 100644
90+
# https://github.com/ruby/fiddle/actions/runs/3202406059/jobs/5231356410
9991
--- a/test/socket/test_socket.rb
10092
+++ b/test/socket/test_socket.rb
101-
@@ -541,7 +541,7 @@ class TestSocket < Test::Unit::TestCase
93+
@@ -541,7 +541,7 @@
10294
end
10395

10496
def test_bintime

debian/patches/0009-Fix-FTBFS-on-x32-misdetected-as-i386-or-amd64.patch

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ Updated by John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> on
1111
configure.ac | 3 +++
1212
1 file changed, 3 insertions(+)
1313

14-
diff --git a/configure.ac b/configure.ac
15-
index 5a6b074..49897ad 100644
1614
--- a/configure.ac
1715
+++ b/configure.ac
18-
@@ -2524,6 +2524,9 @@ AS_CASE([$coroutine_type], [yes|''], [
19-
[arm64-darwin*], [
20-
coroutine_type=arm64
16+
@@ -2596,6 +2596,9 @@
17+
[powerpc64-darwin*|ppc64-darwin*], [
18+
coroutine_type=ppc64
2119
],
2220
+ [x86_64-linux-gnux32], [
2321
+ coroutine_type=ucontext

debian/patches/0011-don-t-try-to-download-stuff-in-configure.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Subject: don't try to download stuff in configure
66
defs/gmake.mk | 2 +-
77
1 file changed, 1 insertion(+), 1 deletion(-)
88

9-
diff --git a/defs/gmake.mk b/defs/gmake.mk
10-
index dd7da5f..9d59f22 100644
119
--- a/defs/gmake.mk
1210
+++ b/defs/gmake.mk
13-
@@ -265,7 +265,7 @@ extract-gems: $(HAVE_BASERUBY:yes=update-gems)
11+
@@ -295,9 +295,7 @@
12+
bundled-gem-srcdir = $(srcdir)/gems/src/$(1)
13+
bundled-gem-extracted = $(srcdir)/.bundle/gems/$(1)-$(2)
1414

15-
bundled-gems := $(shell sed '/^[ ]*\#/d;/^[ ]*$$/d;s/[ ][ ]*/-/;s/[ ].*//' $(srcdir)/gems/bundled_gems)
16-
17-
-update-gems: | $(patsubst %,gems/%.gem,$(bundled-gems))
15+
-update-gems: | $(patsubst %,$(srcdir)/gems/%.gem,$(bundled-gems))
16+
-update-gems: | $(call foreach-bundled-gems-rev,bundled-gem-gemfile)
17+
-update-gems: | $(call foreach-bundled-gems-rev,bundled-gem-srcdir)
1818
+update-gems:
1919

2020
test-bundler-precheck: | $(srcdir)/.bundle/cache

debian/patches/0012-Make-resolv-accept-dash-in-zone_id-of-IPv6-link-local-addresses.patch

Lines changed: 0 additions & 37 deletions
This file was deleted.

debian/patches/Fix-filenames-for-glibc-SO-files-on-alpha-and-ia64.patch

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)