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 BFB30158020 for ; Sat, 22 Oct 2022 21:34:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25023E092B; Sat, 22 Oct 2022 21:34:02 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 0DBFFE092B for ; Sat, 22 Oct 2022 21:34:02 +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 56E3A341286 for ; Sat, 22 Oct 2022 21:34:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 811A06DB for ; Sat, 22 Oct 2022 21:33:57 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1666474391.21da93d12d75a057b069c1d289974253da3c3db3.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/http/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/http/Manifest dev-ruby/http/http-5.1.0.ebuild X-VCS-Directories: dev-ruby/http/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 21da93d12d75a057b069c1d289974253da3c3db3 X-VCS-Branch: master Date: Sat, 22 Oct 2022 21:33:57 +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: 682d3b8f-9e30-49cd-b000-f3410ccea25a X-Archives-Hash: 5990d743883f57f1a10ecb26e9fe4e07 commit: 21da93d12d75a057b069c1d289974253da3c3db3 Author: matoro users noreply github com> AuthorDate: Wed Jun 15 04:43:00 2022 +0000 Commit: Matt Turner gentoo org> CommitDate: Sat Oct 22 21:33:11 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21da93d1 dev-ruby/http: add 5.1.0 Giant push to the Ruby tree to bring up dev-ruby/http to the 5.x branch. http-5.x changes the underlying C parser from http-parser to llhttp-ffi, which pulls in most of the socketry async ecosystem for its tests. All of these packages have been tested on sparc, using all compatible Ruby versions from ruby26 to ruby31. KNOWN ISSUES: * dev-ruby/async-http tests can hang on ruby27 only * dev-ruby/dalli tests are RESTRICTed because they spin up a local memcached instance, which is broken on sparc (see bug 636552) * In order to get the benefits of respect-cflags.patch for packages that use ffi-compiler (such as dev-ruby/llhttp-ffi), you must rebuild dev-ruby/ffi-compiler * dev-ruby/ffi has two failing tests, but passes everything else. This does not seem to affect functionality. Documented in bug 847286 and upstream https://github.com/ffi/ffi/pull/957 * dev-ruby/simplecov tests fail for ruby3x, already filed by someone else as bug 835620. This may be fixed in newer upstream versions * 5.1.0 seems to have introduced a new issue not present in 5.0.4, fix is simple and submitted upstream as https://github.com/httprb/http/pull/719, courtest of https://github.com/pact-foundation/pact-support/pull/29 Closes: https://bugs.gentoo.org/766162 Bug: https://bugs.gentoo.org/761550 Signed-off-by: matoro users.noreply.github.com> Signed-off-by: Matt Turner gentoo.org> dev-ruby/http/Manifest | 1 + dev-ruby/http/http-5.1.0.ebuild | 59 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/dev-ruby/http/Manifest b/dev-ruby/http/Manifest index 41b2ecc8d0a2..881c00e264fb 100644 --- a/dev-ruby/http/Manifest +++ b/dev-ruby/http/Manifest @@ -1 +1,2 @@ DIST http-4.4.1.gem 75776 BLAKE2B ab34a6a567842d52f9b7cbe3fc3fb8e4757f5cf1303deacdf2f2130a44e82fde64f0db561c3f8fc28100faea277a9c4a9352f95e6cb1359730b34e83a7b36d72 SHA512 6e43a8ae379d7c8a807a9a03c87bfb5ad1719f9838e26ac7a695220ee2bc50344accc2db268d30da175328fd5468b87ec8532d17ce42a5b74d6c2c4c281d1bc9 +DIST http-5.1.0.gem 81920 BLAKE2B cc80149b89eabd5c6b468ffe28b33e17845bd996fa3bf8b9c38c517fe79994412b376b3bac365e8debbeb272cf4333aebd398d1955a358faa27ba9f124671443 SHA512 b99da5318da54e7b64abd48df0b68cde9a02e1ae92b51fc43302e3dea28ba9672e2b7a25e31c342235835e16b2e1b98c94b6d4efa7916a0aa99258fc8290260f diff --git a/dev-ruby/http/http-5.1.0.ebuild b/dev-ruby/http/http-5.1.0.ebuild new file mode 100644 index 000000000000..d05205e7563f --- /dev/null +++ b/dev-ruby/http/http-5.1.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +inherit ruby-fakegem + +DESCRIPTION="An easy-to-use client library for making requests from Ruby" +HOMEPAGE="https://github.com/tarcieri/http" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~sparc" +IUSE="" + +ruby_add_rdepend "=dev-ruby/addressable-2* + >=dev-ruby/addressable-2.8 + =dev-ruby/http-cookie-1* + >=dev-ruby/http-form_data-2.2:2 + >=dev-ruby/llhttp-ffi-0.4.0:0/0.4" + +ruby_add_bdepend " + test? ( + =dev-ruby/certificate_authority-1* + dev-ruby/rspec-its + )" + +all_ruby_prepare() { + # Avoid specs that require network access + sed -i -e '/.persistent/,/^ end/ s:^:#:' \ + spec/lib/http_spec.rb || die + sed -i -e '/with non-ASCII URLs/,/^ end/ s:^:#:' \ + spec/lib/http/client_spec.rb || die + + # Avoid spec that may fail with a running web server + sed -i -e '/unifies socket errors into HTTP::ConnectionError/,/^ end/ s:^:#:' spec/lib/http_spec.rb || die + + # Fix spec for production release + sed -i -e '/User-Agent:/ s/.dev//' spec/lib/http/features/logging_spec.rb || die + + # Avoid specs also failing upstream due to some certificate issue + sed -i -e '/context "ssl"/,/^ end/ s:^:#:' spec/lib/http_spec.rb || die + sed -i -e '/describe "working with SSL"/,/^ end/ s:^:#:' spec/lib/http/client_spec.rb || die + + # Disable coverage + sed -i -e 's/require_relative ".\/support\/simplecov"//g' "spec/spec_helper.rb" || die + + # Submitted upstream as https://github.com/httprb/http/pull/719 + sed -i -e '4i require "cgi"' "spec/lib/http/client_spec.rb" || die +} + +each_ruby_test() { + # disables dev-ruby/fuubar dep + CI=1 each_fakegem_test +}