From b8ee1ea2492578c193975c3632fcaa3f2b9b2e95 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 26 Dec 2023 23:12:52 -0500 Subject: [PATCH] Workaround for libxml2 2.10.3+ test compatibility Namespace handling has become stricter, and these foo: namespaces are now being preserved, and perhaps correctly so. https://github.com/apjanke/ronn-ng/issues/102 --- rubygem-ronn-ng-0.9.1-libxml2-namespace.patch | 13 +++++++++++++ rubygem-ronn-ng.spec | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 rubygem-ronn-ng-0.9.1-libxml2-namespace.patch diff --git a/rubygem-ronn-ng-0.9.1-libxml2-namespace.patch b/rubygem-ronn-ng-0.9.1-libxml2-namespace.patch new file mode 100644 index 0000000..974bd10 --- /dev/null +++ b/rubygem-ronn-ng-0.9.1-libxml2-namespace.patch @@ -0,0 +1,13 @@ +Backport of https://github.com/apjanke/ronn-ng/commit/c4459d4fc7fed5f0c3512a3751e1d13072dd5d3a + +diff --git a/test/angle_bracket_syntax.html b/test/angle_bracket_syntax.html +index e10241b..8567d2e 100644 +--- a/test/angle_bracket_syntax.html ++++ b/test/angle_bracket_syntax.html +@@ -13,5 +13,5 @@ code block, + +

or when <WORD> is enclosed in backticks.

+ +-

or when WORD has a or .

++

or when WORD has a or .

+ diff --git a/rubygem-ronn-ng.spec b/rubygem-ronn-ng.spec index b8f2c5e..df79a7f 100644 --- a/rubygem-ronn-ng.spec +++ b/rubygem-ronn-ng.spec @@ -12,6 +12,9 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # https://github.com/apjanke/ronn-ng/issues/80 # https://github.com/apjanke/ronn-ng/pull/81 Patch0: rubygem-ronn-ng-0.9.1-Permit-Time-class-loading-from-YAML.patch +# Workaround for libxml2 2.10.3+ test compatibility +# https://github.com/apjanke/ronn-ng/issues/102 +Patch1: rubygem-ronn-ng-0.9.1-libxml2-namespace.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby @@ -45,6 +48,7 @@ Documentation for %{name}. %setup -q -n %{gem_name}-%{version} %patch0 -p1 +%patch -P1 -p1 # Upstream specifies mustache==0.7, but we have 1.1 and it seems to work fine... %gemspec_remove_dep -g mustache "~> 0.7"