1 |
commit: 3b7cbc03c5fa67926b0597e950cc7c66d03f8a37 |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 18 02:15:12 2023 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 18 02:15:12 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b7cbc03 |
7 |
|
8 |
www-servers/h2o: fix build with >=dev-lang/ruby-3.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/899572 |
11 |
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org> |
12 |
|
13 |
www-servers/h2o/files/h2o-2.2-ruby30.patch | 63 ++++++++++++++++++++++++++++++ |
14 |
www-servers/h2o/h2o-2.2.6-r1.ebuild | 7 +++- |
15 |
2 files changed, 68 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/www-servers/h2o/files/h2o-2.2-ruby30.patch b/www-servers/h2o/files/h2o-2.2-ruby30.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..47692d68bba5 |
20 |
--- /dev/null |
21 |
+++ b/www-servers/h2o/files/h2o-2.2-ruby30.patch |
22 |
@@ -0,0 +1,63 @@ |
23 |
+--- a/deps/mruby/Rakefile |
24 |
++++ b/deps/mruby/Rakefile |
25 |
+@@ -37,15 +37,15 @@ |
26 |
+ task :default => :all |
27 |
+ |
28 |
+ bin_path = ENV['INSTALL_DIR'] || "#{MRUBY_ROOT}/bin" |
29 |
+-FileUtils.mkdir_p bin_path, { :verbose => $verbose } |
30 |
++FileUtils.mkdir_p bin_path, :verbose => $verbose |
31 |
+ |
32 |
+ depfiles = MRuby.targets['host'].bins.map do |bin| |
33 |
+ install_path = MRuby.targets['host'].exefile("#{bin_path}/#{bin}") |
34 |
+ source_path = MRuby.targets['host'].exefile("#{MRuby.targets['host'].build_dir}/bin/#{bin}") |
35 |
+ |
36 |
+ file install_path => source_path do |t| |
37 |
+- FileUtils.rm_f t.name, { :verbose => $verbose } |
38 |
+- FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose } |
39 |
++ FileUtils.rm_f t.name, :verbose => $verbose |
40 |
++ FileUtils.cp t.prerequisites.first, t.name, :verbose => $verbose |
41 |
+ end |
42 |
+ |
43 |
+ install_path |
44 |
+@@ -78,8 +78,8 @@ |
45 |
+ install_path = MRuby.targets['host'].exefile("#{bin_path}/#{bin}") |
46 |
+ |
47 |
+ file install_path => exec do |t| |
48 |
+- FileUtils.rm_f t.name, { :verbose => $verbose } |
49 |
+- FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose } |
50 |
++ FileUtils.rm_f t.name, :verbose => $verbose |
51 |
++ FileUtils.cp t.prerequisites.first, t.name, :verbose => $verbose |
52 |
+ end |
53 |
+ depfiles += [ install_path ] |
54 |
+ elsif target == MRuby.targets['host-debug'] |
55 |
+@@ -87,8 +87,8 @@ |
56 |
+ install_path = MRuby.targets['host-debug'].exefile("#{bin_path}/#{bin}") |
57 |
+ |
58 |
+ file install_path => exec do |t| |
59 |
+- FileUtils.rm_f t.name, { :verbose => $verbose } |
60 |
+- FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose } |
61 |
++ FileUtils.rm_f t.name, :verbose => $verbose |
62 |
++ FileUtils.cp t.prerequisites.first, t.name, :verbose => $verbose |
63 |
+ end |
64 |
+ depfiles += [ install_path ] |
65 |
+ end |
66 |
+@@ -127,16 +127,16 @@ |
67 |
+ desc "clean all built and in-repo installed artifacts" |
68 |
+ task :clean do |
69 |
+ MRuby.each_target do |t| |
70 |
+- FileUtils.rm_rf t.build_dir, { :verbose => $verbose } |
71 |
++ FileUtils.rm_rf t.build_dir, :verbose => $verbose |
72 |
+ end |
73 |
+- FileUtils.rm_f depfiles, { :verbose => $verbose } |
74 |
++ FileUtils.rm_f depfiles, :verbose => $verbose |
75 |
+ puts "Cleaned up target build folder" |
76 |
+ end |
77 |
+ |
78 |
+ desc "clean everything!" |
79 |
+ task :deep_clean => ["clean"] do |
80 |
+ MRuby.each_target do |t| |
81 |
+- FileUtils.rm_rf t.gem_clone_dir, { :verbose => $verbose } |
82 |
++ FileUtils.rm_rf t.gem_clone_dir, :verbose => $verbose |
83 |
+ end |
84 |
+ puts "Cleaned up mrbgems build folder" |
85 |
+ end |
86 |
|
87 |
diff --git a/www-servers/h2o/h2o-2.2.6-r1.ebuild b/www-servers/h2o/h2o-2.2.6-r1.ebuild |
88 |
index 33ece8ab07b7..2871e3f8b93b 100644 |
89 |
--- a/www-servers/h2o/h2o-2.2.6-r1.ebuild |
90 |
+++ b/www-servers/h2o/h2o-2.2.6-r1.ebuild |
91 |
@@ -1,4 +1,4 @@ |
92 |
-# Copyright 1999-2022 Gentoo Authors |
93 |
+# Copyright 1999-2023 Gentoo Authors |
94 |
# Distributed under the terms of the GNU General Public License v2 |
95 |
|
96 |
EAPI="8" |
97 |
@@ -38,7 +38,10 @@ BDEPEND="libh2o? ( virtual/pkgconfig ) |
98 |
virtual/pkgconfig |
99 |
)" |
100 |
|
101 |
-PATCHES=( "${FILESDIR}"/${PN}-2.2-mruby.patch ) |
102 |
+PATCHES=( |
103 |
+ "${FILESDIR}"/${PN}-2.2-mruby.patch |
104 |
+ "${FILESDIR}"/${PN}-2.2-ruby30.patch |
105 |
+) |
106 |
|
107 |
src_prepare() { |
108 |
cmake_src_prepare |