Control: tags 1107539 + patch Control: tags 1107539 + pending Dear maintainer,
I've prepared an NMU for ruby-mechanize (versioned as 2.10.1-1.1) and uploaded it to DELAYED/15. Please feel free to tell me if I should cancel it. cu Adrian
diffstat for ruby-mechanize-2.10.1 ruby-mechanize-2.10.1 changelog | 8 + patches/0001-test-update-test-documents-to-remove-markup-from-fra.patch | 61 ++++++++++ patches/series | 1 3 files changed, 70 insertions(+) diff -Nru ruby-mechanize-2.10.1/debian/changelog ruby-mechanize-2.10.1/debian/changelog --- ruby-mechanize-2.10.1/debian/changelog 2024-07-17 16:55:51.000000000 +0300 +++ ruby-mechanize-2.10.1/debian/changelog 2025-09-13 12:31:47.000000000 +0300 @@ -1,3 +1,11 @@ +ruby-mechanize (2.10.1-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Backport upstream fix for the tests with newer libxml2. + (Closes: #1107539) + + -- Adrian Bunk <b...@debian.org> Sat, 13 Sep 2025 12:31:47 +0300 + ruby-mechanize (2.10.1-1) unstable; urgency=medium * Team upload diff -Nru ruby-mechanize-2.10.1/debian/patches/0001-test-update-test-documents-to-remove-markup-from-fra.patch ruby-mechanize-2.10.1/debian/patches/0001-test-update-test-documents-to-remove-markup-from-fra.patch --- ruby-mechanize-2.10.1/debian/patches/0001-test-update-test-documents-to-remove-markup-from-fra.patch 1970-01-01 02:00:00.000000000 +0200 +++ ruby-mechanize-2.10.1/debian/patches/0001-test-update-test-documents-to-remove-markup-from-fra.patch 2025-09-13 12:31:41.000000000 +0300 @@ -0,0 +1,61 @@ +From 7b15ae9f01de9d5b1a4dce06a612fa7ced1c47a3 Mon Sep 17 00:00:00 2001 +From: Mike Dalessio <m...@37signals.com> +Date: Wed, 9 Jul 2025 14:11:35 -0400 +Subject: test: update test documents to remove markup from frames/noframes + +In HTML5, frames/noframes content is raw text, not PCDATA; and libxml2 +has implemented this behavior in v2.14. +--- + test/htdocs/frame_test.html | 14 ++++++++------ + test/htdocs/relative/tc_relative_links.html | 2 +- + 2 files changed, 9 insertions(+), 7 deletions(-) + +diff --git a/test/htdocs/frame_test.html b/test/htdocs/frame_test.html +index 3c85617..0053313 100644 +--- a/test/htdocs/frame_test.html ++++ b/test/htdocs/frame_test.html +@@ -18,13 +18,15 @@ + </IFRAME> + </FRAMESET> + <NOFRAMES> +- <P>This frameset document contains: +- <UL> +- <LI><A href="/google.html">Some neat contents</A> +- <LI><A href="/form_test.html" class="bar">Form Test</A> +- <LI><A href="/file_upload.html">Some other neat contents</A> +- </UL> ++ Your user agent does not support frames. + </NOFRAMES> ++ <P>This frameset document contains: ++ <UL> ++ <LI><A href="/google.html">Some neat contents</A> ++ <LI><A href="/form_test.html" class="bar">Form Test</A> ++ <LI><A href="/file_upload.html">Some other neat contents</A> ++ </UL> ++ </P> + </FRAMESET> + </HTML> + +diff --git a/test/htdocs/relative/tc_relative_links.html b/test/htdocs/relative/tc_relative_links.html +index 3d370fc..93b2de7 100644 +--- a/test/htdocs/relative/tc_relative_links.html ++++ b/test/htdocs/relative/tc_relative_links.html +@@ -2,6 +2,7 @@ + <body> + <a href="../tc_relative_links.html">dot dot slash</a> + <a href="../../../../../tc_relative_links.html">too many dots</a> ++ <a href="?a=b">just the query string</A> + <FRAMESET cols="20%, 80%"> + <FRAMESET rows="100, 200, 200"> + <FRAME name="frame1" src="../tc_relative_links.html"> +@@ -13,7 +14,6 @@ + [Your user agent does not support frames or is currently configured + not to display frames. However, you may visit + <A href="foo.html">the related document.</A>] +- <a href="?a=b">just the query string</A> + </IFRAME> + </FRAMESET> + </FRAMESET> +-- +2.30.2 + diff -Nru ruby-mechanize-2.10.1/debian/patches/series ruby-mechanize-2.10.1/debian/patches/series --- ruby-mechanize-2.10.1/debian/patches/series 2024-07-17 16:55:51.000000000 +0300 +++ ruby-mechanize-2.10.1/debian/patches/series 2025-09-13 12:31:47.000000000 +0300 @@ -2,3 +2,4 @@ set_path_for_test disable-net-test.patch avoid-git.patch +0001-test-update-test-documents-to-remove-markup-from-fra.patch