From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8067115A7D9 for ; Sat, 18 Mar 2023 02:21:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B1329E07B3; Sat, 18 Mar 2023 02:21:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C78AE07B3 for ; Sat, 18 Mar 2023 02:21:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6F891335D8F for ; Sat, 18 Mar 2023 02:21:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E596273E for ; Sat, 18 Mar 2023 02:21:33 +0000 (UTC) From: "Akinori Hattori" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Akinori Hattori" Message-ID: <1679105712.3b7cbc03c5fa67926b0597e950cc7c66d03f8a37.hattya@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/h2o/, www-servers/h2o/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-servers/h2o/files/h2o-2.2-ruby30.patch www-servers/h2o/h2o-2.2.6-r1.ebuild X-VCS-Directories: www-servers/h2o/files/ www-servers/h2o/ X-VCS-Committer: hattya X-VCS-Committer-Name: Akinori Hattori X-VCS-Revision: 3b7cbc03c5fa67926b0597e950cc7c66d03f8a37 X-VCS-Branch: master Date: Sat, 18 Mar 2023 02:21:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4d3e41f8-c2c1-4257-8e00-04153754ed28 X-Archives-Hash: 811d91efc4ebabe323bd03c1fecc1c72 commit: 3b7cbc03c5fa67926b0597e950cc7c66d03f8a37 Author: Akinori Hattori gentoo org> AuthorDate: Sat Mar 18 02:15:12 2023 +0000 Commit: Akinori Hattori gentoo org> CommitDate: Sat Mar 18 02:15:12 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b7cbc03 www-servers/h2o: fix build with >=dev-lang/ruby-3.0 Closes: https://bugs.gentoo.org/899572 Signed-off-by: Akinori Hattori gentoo.org> www-servers/h2o/files/h2o-2.2-ruby30.patch | 63 ++++++++++++++++++++++++++++++ www-servers/h2o/h2o-2.2.6-r1.ebuild | 7 +++- 2 files changed, 68 insertions(+), 2 deletions(-) diff --git a/www-servers/h2o/files/h2o-2.2-ruby30.patch b/www-servers/h2o/files/h2o-2.2-ruby30.patch new file mode 100644 index 000000000000..47692d68bba5 --- /dev/null +++ b/www-servers/h2o/files/h2o-2.2-ruby30.patch @@ -0,0 +1,63 @@ +--- a/deps/mruby/Rakefile ++++ b/deps/mruby/Rakefile +@@ -37,15 +37,15 @@ + task :default => :all + + bin_path = ENV['INSTALL_DIR'] || "#{MRUBY_ROOT}/bin" +-FileUtils.mkdir_p bin_path, { :verbose => $verbose } ++FileUtils.mkdir_p bin_path, :verbose => $verbose + + depfiles = MRuby.targets['host'].bins.map do |bin| + install_path = MRuby.targets['host'].exefile("#{bin_path}/#{bin}") + source_path = MRuby.targets['host'].exefile("#{MRuby.targets['host'].build_dir}/bin/#{bin}") + + file install_path => source_path do |t| +- FileUtils.rm_f t.name, { :verbose => $verbose } +- FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose } ++ FileUtils.rm_f t.name, :verbose => $verbose ++ FileUtils.cp t.prerequisites.first, t.name, :verbose => $verbose + end + + install_path +@@ -78,8 +78,8 @@ + install_path = MRuby.targets['host'].exefile("#{bin_path}/#{bin}") + + file install_path => exec do |t| +- FileUtils.rm_f t.name, { :verbose => $verbose } +- FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose } ++ FileUtils.rm_f t.name, :verbose => $verbose ++ FileUtils.cp t.prerequisites.first, t.name, :verbose => $verbose + end + depfiles += [ install_path ] + elsif target == MRuby.targets['host-debug'] +@@ -87,8 +87,8 @@ + install_path = MRuby.targets['host-debug'].exefile("#{bin_path}/#{bin}") + + file install_path => exec do |t| +- FileUtils.rm_f t.name, { :verbose => $verbose } +- FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose } ++ FileUtils.rm_f t.name, :verbose => $verbose ++ FileUtils.cp t.prerequisites.first, t.name, :verbose => $verbose + end + depfiles += [ install_path ] + end +@@ -127,16 +127,16 @@ + desc "clean all built and in-repo installed artifacts" + task :clean do + MRuby.each_target do |t| +- FileUtils.rm_rf t.build_dir, { :verbose => $verbose } ++ FileUtils.rm_rf t.build_dir, :verbose => $verbose + end +- FileUtils.rm_f depfiles, { :verbose => $verbose } ++ FileUtils.rm_f depfiles, :verbose => $verbose + puts "Cleaned up target build folder" + end + + desc "clean everything!" + task :deep_clean => ["clean"] do + MRuby.each_target do |t| +- FileUtils.rm_rf t.gem_clone_dir, { :verbose => $verbose } ++ FileUtils.rm_rf t.gem_clone_dir, :verbose => $verbose + end + puts "Cleaned up mrbgems build folder" + end diff --git a/www-servers/h2o/h2o-2.2.6-r1.ebuild b/www-servers/h2o/h2o-2.2.6-r1.ebuild index 33ece8ab07b7..2871e3f8b93b 100644 --- a/www-servers/h2o/h2o-2.2.6-r1.ebuild +++ b/www-servers/h2o/h2o-2.2.6-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="8" @@ -38,7 +38,10 @@ BDEPEND="libh2o? ( virtual/pkgconfig ) virtual/pkgconfig )" -PATCHES=( "${FILESDIR}"/${PN}-2.2-mruby.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-2.2-mruby.patch + "${FILESDIR}"/${PN}-2.2-ruby30.patch +) src_prepare() { cmake_src_prepare