public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rubygem-curb] rawhide: Backport upstream patch to skip NTLM related test for curl 8.24
@ 2026-11-30 7:02 Mamoru TASAKA
0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-11-30 7:02 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rubygem-curb
Branch : rawhide
Commit : 922d2cb9c6facdff18df3e23210394631ab56de2
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date : 2026-11-30T16:02:15+09:00
Stats : +36/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rubygem-curb/c/922d2cb9c6facdff18df3e23210394631ab56de2?branch=rawhide
Log:
Backport upstream patch to skip NTLM related test for curl 8.24
---
diff --git a/rubygem-curb-pr475-disable-NTLM-test-for-curl-8_24.patch b/rubygem-curb-pr475-disable-NTLM-test-for-curl-8_24.patch
new file mode 100644
index 0000000..e885d1e
--- /dev/null
+++ b/rubygem-curb-pr475-disable-NTLM-test-for-curl-8_24.patch
@@ -0,0 +1,32 @@
+From 85a5617958ab72c93e347dd047c7b7f6c83deeca Mon Sep 17 00:00:00 2001
+From: Samuel Henrique <samueloph@debian.org>
+Date: Sat, 9 May 2026 16:05:50 -0300
+Subject: [PATCH] Skip NTLM assertion in test_username_password when libcurl
+ lacks NTLM
+
+ curl 8.20.0 disables NTLM support by default (with planned removal in
+ September 2026). When NTLM is unavailable, libcurl silently downgrades
+ to Basic auth, breaking the assertion that expects an NTLM Type 1
+ message. Use Curl.ntlm? to skip the NTLM-specific portion of the test
+ when libcurl was built without NTLM support.
+
+ Closes: https://github.com/taf2/curb/issues/474
+---
+ tests/tc_curl_easy.rb | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/tests/tc_curl_easy.rb b/tests/tc_curl_easy.rb
+index d4b747e4..3cb94127 100644
+--- a/tests/tc_curl_easy.rb
++++ b/tests/tc_curl_easy.rb
+@@ -986,6 +968,10 @@ def test_username_password
+ # curl checks the auth type supported by the server, so we have to create a
+ # new easy handle if we're going to change the auth type...
+
++ # curl 8.20.0 disables NTLM by default and plans to remove it in
++ # September 2026; libcurl silently downgrades to Basic when NTLM is
++ # unavailable, so skip the NTLM-specific assertion in that case.
++ return unless Curl.ntlm?
+ curl = Curl::Easy.new(TestServlet.url)
+ curl.username = "foo"
+ curl.password = "bar"
diff --git a/rubygem-curb.spec b/rubygem-curb.spec
index f9eb30b..8db6ab0 100644
--- a/rubygem-curb.spec
+++ b/rubygem-curb.spec
@@ -21,6 +21,9 @@ Patch2: rubygem-curb-pr468-deprecate-rb_iterate.patch
# https://github.com/taf2/curb/commit/b8d8ea969e481d76cf991aacb6cc9fdd17a11ca3
# Use TypedData API for ruby4.1
Patch3: rubygem-curb-b8d8ea9-use-TypedData.patch
+# https://github.com/taf2/curb/pull/475
+# curl 8.24.0 removes NTLM support, skipping corresponding testsuite
+Patch4: rubygem-curb-pr475-disable-NTLM-test-for-curl-8_24.patch
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby-devel
@@ -52,6 +55,7 @@ Documentation for %{name}.
%patch 1 -p1
%patch 2 -p1
%patch 3 -p1
+%patch 4 -p1
%build
gem build ../%{gem_name}-%{version}.gemspec
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-30 7:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 7:02 [rpms/rubygem-curb] rawhide: Backport upstream patch to skip NTLM related test for curl 8.24 Mamoru TASAKA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox