diff -Nru ruby-redcloth-4.3.3/debian/changelog ruby-redcloth-4.3.3/debian/changelog --- ruby-redcloth-4.3.3/debian/changelog 2024-01-01 19:12:32.000000000 +0800 +++ ruby-redcloth-4.3.3/debian/changelog 2024-08-16 21:21:50.000000000 +0800 @@ -1,3 +1,9 @@ +ruby-redcloth (4.3.3-1.1) UNRELEASED; urgency=medium + + * Increase test threshold for RISC-V. + + -- Gui-Yue Fri, 16 Aug 2024 21:21:50 +0800 + ruby-redcloth (4.3.3-1) unstable; urgency=medium * Team upload. diff -Nru ruby-redcloth-4.3.3/debian/patches/increase-test-threshold-for-riscv.patch ruby-redcloth-4.3.3/debian/patches/increase-test-threshold-for-riscv.patch --- ruby-redcloth-4.3.3/debian/patches/increase-test-threshold-for-riscv.patch 1970-01-01 08:00:00.000000000 +0800 +++ ruby-redcloth-4.3.3/debian/patches/increase-test-threshold-for-riscv.patch 2024-08-16 21:21:09.000000000 +0800 @@ -0,0 +1,11 @@ +--- a/spec/security/CVE-2023-31606_spec.rb ++++ b/spec/security/CVE-2023-31606_spec.rb +@@ -36,7 +36,7 @@ + res = RedCloth.new(text, [:sanitize_html]).to_html + t2 = Time.now + +- expect(t2-t1).to be <= 3 ++ expect(t2-t1).to be <= 12 + end + + it 'should keep the generated HTML the same' do diff -Nru ruby-redcloth-4.3.3/debian/patches/series ruby-redcloth-4.3.3/debian/patches/series --- ruby-redcloth-4.3.3/debian/patches/series 2024-01-01 19:12:32.000000000 +0800 +++ ruby-redcloth-4.3.3/debian/patches/series 2024-08-16 21:20:18.000000000 +0800 @@ -1 +1,2 @@ 0001-restore-extconf.rb.patch +increase-test-threshold-for-riscv.patch diff -Nru ruby-redcloth-4.3.3/debian/rules ruby-redcloth-4.3.3/debian/rules --- ruby-redcloth-4.3.3/debian/rules 2024-01-01 19:12:32.000000000 +0800 +++ ruby-redcloth-4.3.3/debian/rules 2024-08-16 21:21:50.000000000 +0800 @@ -2,10 +2,19 @@ export GEM2DEB_TEST_RUNNER = --check-dependencies export DH_RUBY = --gem-install +ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) %: dh $@ --buildsystem=ruby --with ruby +override_dh_quilt_patch: +ifeq ($(DEB_HOST_ARCH),riscv64) + dh_quilt_patch +else + @quilt pop increase-test-threshold-for-riscv.patch || test $$? = 2 +endif + + override_dh_auto_build: ragel ragel/redcloth_scan.c.rl -o ext/redcloth_scan/redcloth_scan.c ragel ragel/redcloth_inline.c.rl -o ext/redcloth_scan/redcloth_inline.c