public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rubygem-loofah] rawhide: Backport upstream fix to accept libxml2 2.14 for testsuite
@ 2026-09-19  5:16 Mamoru TASAKA
  0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-09-19  5:16 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rubygem-loofah
Branch : rawhide
Commit : c5a68ff864d60fcca876111bf7a0790a7a6a2254
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-09-19T14:15:52+09:00
Stats  : +70/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rubygem-loofah/c/c5a68ff864d60fcca876111bf7a0790a7a6a2254?branch=rawhide

Log:
Backport upstream fix to accept libxml2 2.14 for testsuite

---
diff --git a/loofah-pr298-testsuite-accept-libxml2-2_14.patch b/loofah-pr298-testsuite-accept-libxml2-2_14.patch
new file mode 100644
index 0000000..46f8499
--- /dev/null
+++ b/loofah-pr298-testsuite-accept-libxml2-2_14.patch
@@ -0,0 +1,62 @@
+From c7d9ea3c6777e9ae23ec00f6d4d3bdb9442c1fdb Mon Sep 17 00:00:00 2001
+From: Mike Dalessio <mike.dalessio@gmail.com>
+Date: Wed, 9 Jul 2025 10:05:37 -0400
+Subject: [PATCH] test: update tests to accept output from libxml 2.14
+
+See https://github.com/sparklemotion/nokogiri/pull/3499
+---
+ test/assets/testdata_sanitizer_tests1.dat | 20 ++++++++++++--------
+ 1 file changed, 12 insertions(+), 8 deletions(-)
+
+diff --git a/test/assets/testdata_sanitizer_tests1.dat b/test/assets/testdata_sanitizer_tests1.dat
+index a734ab5..312a505 100644
+--- a/test/assets/testdata_sanitizer_tests1.dat
++++ b/test/assets/testdata_sanitizer_tests1.dat
+@@ -106,8 +106,9 @@
+   {
+     "name": "double_open_angle_brackets_2 v2",
+     "input": "<div><script src=http://ha.ckers.org/scriptlet.html < </div>",
+-    "libxml": "<div>&lt;script src=\"http://ha.ckers.org/scriptlet.html\"&gt;&lt;/script&gt;</div>",
+-    "libgumbo": "<div>&lt;script src='http://ha.ckers.org/scriptlet.html' &lt;='' div=''&gt;&lt;/script&gt;</div>",
++    "libxml":      "<div>&lt;script src=\"http://ha.ckers.org/scriptlet.html\"&gt;&lt;/script&gt;</div>",
++    "libxml-2.14": "<div>&lt;script src='http://ha.ckers.org/scriptlet.html' &lt; div&gt;&lt;/script&gt;</div>",
++    "libgumbo":    "<div>&lt;script src='http://ha.ckers.org/scriptlet.html' &lt;='' div=''&gt;&lt;/script&gt;</div>",
+     "jruby": "<div>&lt;script src='http://ha.ckers.org/scriptlet.html'&gt;&lt; &lt;/div&gt;&lt;/script&gt;</div>"
+   },
+ 
+@@ -165,8 +166,9 @@
+   {
+     "name": "non_alpha_non_digit",
+     "input": "<script/XSS src=\"http://ha.ckers.org/xss.js\"></script>",
+-    "libxml": "&lt;script src=\"http://ha.ckers.org/xss.js\"&gt;&lt;/script&gt;",
+-    "libgumbo": "&lt;script xss='' src='http://ha.ckers.org/xss.js'&gt;&lt;/script&gt;",
++    "libxml":      "&lt;script src=\"http://ha.ckers.org/xss.js\"&gt;&lt;/script&gt;",
++    "libxml-2.14": "&lt;script xss src='http://ha.ckers.org/xss.js'&gt;&lt;/script&gt;",
++    "libgumbo":    "&lt;script xss='' src='http://ha.ckers.org/xss.js'&gt;&lt;/script&gt;",
+     "jruby": "&lt;script&gt;&lt;/script&gt;"
+   },
+ 
+@@ -367,8 +369,9 @@
+   {
+     "name": "should_sanitize_invalid_script_tag",
+     "input": "<script/XSS SRC=\"http://ha.ckers.org/xss.js\"></script>",
+-    "libxml": "&lt;script src=\"http://ha.ckers.org/xss.js\"&gt;&lt;/script&gt;",
+-    "libgumbo": "&lt;script xss='' src='http://ha.ckers.org/xss.js'&gt;&lt;/script&gt;",
++    "libxml":      "&lt;script src=\"http://ha.ckers.org/xss.js\"&gt;&lt;/script&gt;",
++    "libxml-2.14": "&lt;script xss src='http://ha.ckers.org/xss.js'&gt;&lt;/script&gt;",
++    "libgumbo":    "&lt;script xss='' src='http://ha.ckers.org/xss.js'&gt;&lt;/script&gt;",
+     "jruby": "&lt;script&gt;&lt;/script&gt;"
+   },
+ 
+@@ -389,8 +392,9 @@
+   {
+     "name": "should_sanitize_script_tag_with_multiple_open_brackets_2b",
+     "input": "<div><iframe src=http://ha.ckers.org/scriptlet.html\n< </div>",
+-    "libxml": "<div>&lt;iframe src=\"http://ha.ckers.org/scriptlet.html\"&gt;&lt;/iframe&gt;</div>",
+-    "libgumbo": "<div>&lt;iframe src='http://ha.ckers.org/scriptlet.html' &lt;='' div=''&gt;&lt;/iframe&gt;</div>",
++    "libxml":      "<div>&lt;iframe src=\"http://ha.ckers.org/scriptlet.html\"&gt;&lt;/iframe&gt;</div>",
++    "libxml-2.14": "<div>&lt;iframe src='http://ha.ckers.org/scriptlet.html' &lt; div&gt;&lt;/iframe&gt;</div>",
++    "libgumbo":    "<div>&lt;iframe src='http://ha.ckers.org/scriptlet.html' &lt;='' div=''&gt;&lt;/iframe&gt;</div>",
+     "jruby": "<div>&lt;iframe src='http://ha.ckers.org/scriptlet.html'&gt;&amp;lt; &amp;lt;/div&amp;gt;&lt;/iframe&gt;</div>"
+   },
+ 

diff --git a/rubygem-loofah.spec b/rubygem-loofah.spec
index c934cd0..e44072f 100644
--- a/rubygem-loofah.spec
+++ b/rubygem-loofah.spec
@@ -2,7 +2,7 @@
 
 Name: rubygem-%{gem_name}
 Version: 2.22.0
-Release: 9%{?dist}
+Release: 10%{?dist}
 Summary: Manipulate and transform HTML/XML documents and fragments
 License: MIT
 URL: https://github.com/flavorjones/loofah
@@ -12,6 +12,9 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
 Source1: %{gem_name}-%{version}-test.tar.gz
 # Fix minitest6 compatibility
 Patch0:  %{gem_name}-2.22.0-minitest6.patch
+# Make testsuite accept libxml2 2.14
+# https://github.com/flavorjones/loofah/pull/298
+Patch1:  %{gem_name}-pr298-testsuite-accept-libxml2-2_14.patch
 BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: ruby
@@ -41,6 +44,7 @@ Documentation for %{name}.
 (
 cd %{_builddir}
 %patch -P0 -p1
+%patch -P1 -p1
 )
 
 %build
@@ -75,6 +79,9 @@ popd
 %doc %{gem_instdir}/SECURITY.md
 
 %changelog
+* Sat Sep 19 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.22.0-10
+- Backport upstream fix to accept libxml2 2.14 for testsuite
+
 * Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.22.0-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-19  5:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-19  5:16 [rpms/rubygem-loofah] rawhide: Backport upstream fix to accept libxml2 2.14 for testsuite Mamoru TASAKA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox