Skip to content

Commit 7468895

Browse files
committed
Make patches apply
1 parent b97e308 commit 7468895

11 files changed

Lines changed: 32 additions & 44 deletions

debian/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ruby3.3 (3.3.0~preview1-1ppa1) bionic; urgency=medium
77
* New upstream version 3.3.0~preview1
88
* Restore auto-upload
99

10-
-- Ubuntu <ubuntu@focal> Fri, 19 May 2023 08:20:46 -0500
10+
-- Ubuntu <ubuntu@focal> Fri, 19 May 2023 08:20:47 -0500
1111

1212
ruby3.2 (3.2.2-1ppa1) bionic; urgency=medium
1313

debian/patches/0001-rdoc-build-reproducible-documentation.patch

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ Signed-off-by: Christian Hofstaedtler <zeha@debian.org>
1010
lib/rdoc/generator/json_index.rb | 4 ++--
1111
1 file changed, 2 insertions(+), 2 deletions(-)
1212

13-
diff --git a/lib/rdoc/generator/json_index.rb b/lib/rdoc/generator/json_index.rb
14-
index 3a10000..f40bb37 100644
1513
--- a/lib/rdoc/generator/json_index.rb
1614
+++ b/lib/rdoc/generator/json_index.rb
17-
@@ -178,7 +178,7 @@ class RDoc::Generator::JsonIndex
15+
@@ -178,7 +178,7 @@
1816
debug_msg "Writing gzipped search index to %s" % outfile
1917

2018
Zlib::GzipWriter.open(outfile) do |gz|
@@ -23,7 +21,7 @@ index 3a10000..f40bb37 100644
2321
gz.orig_name = search_index_file.basename.to_s
2422
gz.write search_index
2523
gz.close
26-
@@ -196,7 +196,7 @@ class RDoc::Generator::JsonIndex
24+
@@ -196,7 +196,7 @@
2725
debug_msg "Writing gzipped file to %s" % outfile
2826

2927
Zlib::GzipWriter.open(outfile) do |gz|

debian/patches/0002-lib-mkmf.rb-sort-list-of-object-files-in-generated-M.patch

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ Signed-off-by: Reiner Herrmann <reiner@reiner-h.de>
1313
lib/mkmf.rb | 2 +-
1414
1 file changed, 1 insertion(+), 1 deletion(-)
1515

16-
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
17-
index 118b813..8241494 100644
1816
--- a/lib/mkmf.rb
1917
+++ b/lib/mkmf.rb
20-
@@ -2360,7 +2360,7 @@ LOCAL_LIBS = #{$LOCAL_LIBS}
18+
@@ -2363,7 +2363,7 @@
2119
LIBS = #{$LIBRUBYARG} #{$libs} #{$LIBS}
2220
ORIG_SRCS = #{orig_srcs.collect(&File.method(:basename)).join(' ')}
2321
SRCS = $(ORIG_SRCS) #{(srcs - orig_srcs).collect(&File.method(:basename)).join(' ')}

debian/patches/0003-Mark-Gemspec-reproducible-change-fixing-784225-too.patch

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,16 @@ Signed-off-by: Christian Hofstaedtler <zeha@debian.org>
1111
lib/rubygems/specification.rb | 4 +++-
1212
1 file changed, 3 insertions(+), 1 deletion(-)
1313

14-
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
15-
index 0d72cee..eb7bc25 100644
1614
--- a/lib/rubygems/specification.rb
1715
+++ b/lib/rubygems/specification.rb
18-
@@ -1691,7 +1691,9 @@ class Gem::Specification < Gem::BasicSpecification
19-
raise(Gem::InvalidSpecificationException,
20-
"invalid date format in specification: #{date.inspect}")
21-
end
22-
- when Time, DateLike then
23-
+ when Time then
24-
+ Time.utc(date.utc.year, date.utc.month, date.utc.day)
25-
+ when DateLike then
26-
Time.utc(date.year, date.month, date.day)
27-
else
28-
TODAY
16+
@@ -1750,7 +1750,9 @@
17+
raise(Gem::InvalidSpecificationException,
18+
"invalid date format in specification: #{date.inspect}")
19+
end
20+
- when Time, DateLike then
21+
+ when Time then
22+
+ Time.utc(date.utc.year, date.utc.month, date.utc.day)
23+
+ when DateLike then
24+
Time.utc(date.year, date.month, date.day)
25+
else
26+
TODAY

debian/patches/0004-Disable-tests-failing-on-Ubuntu-builders.patch

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@ Subject: Disable tests failing on Ubuntu builders
99
create mode 100644 test/excludes/TestFileUtils.rb
1010
create mode 100644 test/excludes/TestProcess.rb
1111

12-
diff --git a/test/excludes/TestFileUtils.rb b/test/excludes/TestFileUtils.rb
13-
new file mode 100644
14-
index 0000000..ee8b15c
1512
--- /dev/null
1613
+++ b/test/excludes/TestFileUtils.rb
1714
@@ -0,0 +1 @@
1815
+exclude :test_chown, "fails on Launchpad builders"
19-
diff --git a/test/excludes/TestProcess.rb b/test/excludes/TestProcess.rb
20-
new file mode 100644
21-
index 0000000..37b406e
2216
--- /dev/null
2317
+++ b/test/excludes/TestProcess.rb
2418
@@ -0,0 +1 @@

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ build unreproducible
1414

1515
--- a/ext/bigdecimal/bigdecimal.gemspec
1616
+++ b/ext/bigdecimal/bigdecimal.gemspec
17-
@@ -4,6 +4,7 @@
18-
s.name = "bigdecimal"
19-
s.version = "3.1.3"
17+
@@ -14,6 +14,7 @@
18+
s.name = name
19+
s.version = source_version
2020
s.authors = ["Kenta Murata", "Zachary Scott", "Shigeo Kobayashi"]
2121
+ s.date = RUBY_RELEASE_DATE
2222
s.email = ["mrkn@mrkn.jp"]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
1212

1313
--- a/io.c
1414
+++ b/io.c
15-
@@ -2207,7 +2207,11 @@
15+
@@ -2214,7 +2214,11 @@
1616

1717
for (i = 0; i < argc; i += cnt) {
1818
#ifdef HAVE_WRITEV

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Signed-off-by: Svante Signell <svante.signell@gmail.com>
9090
# https://github.com/ruby/fiddle/actions/runs/3202406059/jobs/5231356410
9191
--- a/test/socket/test_socket.rb
9292
+++ b/test/socket/test_socket.rb
93-
@@ -541,7 +541,7 @@
93+
@@ -545,7 +545,7 @@
9494
end
9595

9696
def test_bintime

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Updated by John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> on
1313

1414
--- a/configure.ac
1515
+++ b/configure.ac
16-
@@ -2596,6 +2596,9 @@
16+
@@ -2598,6 +2598,9 @@
1717
[powerpc64-darwin*|ppc64-darwin*], [
1818
coroutine_type=ppc64
1919
],

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Subject: don't try to download stuff in configure
88

99
--- a/defs/gmake.mk
1010
+++ b/defs/gmake.mk
11-
@@ -295,9 +295,7 @@
12-
bundled-gem-srcdir = $(srcdir)/gems/src/$(1)
11+
@@ -305,9 +305,7 @@
12+
bundled-gem-gemspec = $(srcdir)/gems/src/$(1)/$(1).gemspec
1313
bundled-gem-extracted = $(srcdir)/.bundle/gems/$(1)-$(2)
1414

1515
-update-gems: | $(patsubst %,$(srcdir)/gems/%.gem,$(bundled-gems))
1616
-update-gems: | $(call foreach-bundled-gems-rev,bundled-gem-gemfile)
17-
-update-gems: | $(call foreach-bundled-gems-rev,bundled-gem-srcdir)
17+
-update-gems: | $(call foreach-bundled-gems-rev,bundled-gem-gemspec)
1818
+update-gems:
1919

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

0 commit comments

Comments
 (0)