commit:     fb88d974ed7436ee9c026fbaafe2184dca4e1617
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 17 07:33:46 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Feb 17 07:34:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb88d974

dev-ruby/httpclient: avoid broken SSL tests

These tests use obsolete certificates and algorithms so the test server
no longer starts at all.

Closes: https://bugs.gentoo.org/817296
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/httpclient/httpclient-2.8.3-r3.ebuild | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/dev-ruby/httpclient/httpclient-2.8.3-r3.ebuild 
b/dev-ruby/httpclient/httpclient-2.8.3-r3.ebuild
index 5af165c7bbbe..5f66ac209c44 100644
--- a/dev-ruby/httpclient/httpclient-2.8.3-r3.ebuild
+++ b/dev-ruby/httpclient/httpclient-2.8.3-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -52,11 +52,9 @@ all_ruby_prepare() {
        # only fail on jruby.
        rm test/test_auth.rb || die
 
-       # Skip test failing due to hard-coded expired certificate
-       sed -i -e '/test_verification_without_httpclient/,/^  end/ s:^:#:' 
test/test_ssl.rb || die
-
-       # Skip test depending on obsolete and vulnerable SSLv3
-       sed -i -e '/test_no_sslv3/,/^  end/ s:^:#:' test/test_ssl.rb || die
+       # Skip tests using obsolete 1024-bit or expired certificates and
+       # won't even run anymore.
+       rm -f test/test_ssl.rb || die
 
        # Do not use 11-year-old bundled certificates!
        # fix this copy so it doesn't fail tests

Reply via email to