diff -Nru ruby-nokogiri-1.13.7+dfsg/debian/changelog ruby-nokogiri-1.13.7+dfsg/debian/changelog --- ruby-nokogiri-1.13.7+dfsg/debian/changelog 2022-07-19 07:36:11.000000000 +0000 +++ ruby-nokogiri-1.13.7+dfsg/debian/changelog 2022-07-28 14:13:52.000000000 +0000 @@ -1,3 +1,10 @@ +ruby-nokogiri (1.13.7+dfsg-2) unstable; urgency=medium + + * Add patch 0006-test_compaction-Ignore-missing-compaction.patch: + Fix build failure on ppc64el + + -- Lucas Nussbaum Thu, 28 Jul 2022 16:13:52 +0200 + ruby-nokogiri (1.13.7+dfsg-1) unstable; urgency=medium * New upstream version 1.13.7+dfsg diff -Nru ruby-nokogiri-1.13.7+dfsg/debian/gbp.conf ruby-nokogiri-1.13.7+dfsg/debian/gbp.conf --- ruby-nokogiri-1.13.7+dfsg/debian/gbp.conf 1970-01-01 00:00:00.000000000 +0000 +++ ruby-nokogiri-1.13.7+dfsg/debian/gbp.conf 2022-07-28 13:59:53.000000000 +0000 @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True diff -Nru ruby-nokogiri-1.13.7+dfsg/debian/patches/0006-test_compaction-Ignore-missing-compaction.patch ruby-nokogiri-1.13.7+dfsg/debian/patches/0006-test_compaction-Ignore-missing-compaction.patch --- ruby-nokogiri-1.13.7+dfsg/debian/patches/0006-test_compaction-Ignore-missing-compaction.patch 1970-01-01 00:00:00.000000000 +0000 +++ ruby-nokogiri-1.13.7+dfsg/debian/patches/0006-test_compaction-Ignore-missing-compaction.patch 2022-07-28 14:09:53.000000000 +0000 @@ -0,0 +1,31 @@ +From: Lucas Nussbaum +Date: Thu, 28 Jul 2022 16:09:22 +0200 +Subject: test_compaction: Ignore missing compaction + +This fixes a build failure on ppc64le +--- + test/test_compaction.rb | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +diff --git a/test/test_compaction.rb b/test/test_compaction.rb +index 5b0720f..9b7b8d2 100644 +--- a/test/test_compaction.rb ++++ b/test/test_compaction.rb +@@ -12,8 +12,15 @@ describe "compaction" do + # ensure a bunch of node objects have been wrapped + doc.root.children.each(&:inspect) + +- # compact the heap and try to get the node wrappers to move +- GC.verify_compaction_references(double_heap: true, toward: :empty) ++ # 2022-07-28 ++ # verify_compaction_references is available even on platforms where compaction isn't available, ++ # but raises an exception. Ignore it. ++ # See https://bugs.ruby-lang.org/issues/18779 , that should be backported to 3.0 and 3.1 ++ begin ++ # compact the heap and try to get the node wrappers to move ++ GC.verify_compaction_references(double_heap: true, toward: :empty) ++ rescue NotImplementedError ++ end + + # access the node wrappers and make sure they didn't move + doc.root.children.each(&:inspect) diff -Nru ruby-nokogiri-1.13.7+dfsg/debian/patches/series ruby-nokogiri-1.13.7+dfsg/debian/patches/series --- ruby-nokogiri-1.13.7+dfsg/debian/patches/series 2022-07-19 07:36:11.000000000 +0000 +++ ruby-nokogiri-1.13.7+dfsg/debian/patches/series 2022-07-28 14:09:53.000000000 +0000 @@ -3,3 +3,4 @@ 0004-Remove-jar-files-in-the-file-list-in-gemspec.patch 0005-Remove-unnecessary-development-dependencies.patch 0005-test-helper.rb-ignore-GC-compaction-on-unsupported-p.patch +0006-test_compaction-Ignore-missing-compaction.patch diff -Nru ruby-nokogiri-1.13.7+dfsg/debian/salsa-ci.yml ruby-nokogiri-1.13.7+dfsg/debian/salsa-ci.yml --- ruby-nokogiri-1.13.7+dfsg/debian/salsa-ci.yml 1970-01-01 00:00:00.000000000 +0000 +++ ruby-nokogiri-1.13.7+dfsg/debian/salsa-ci.yml 2022-07-28 13:59:53.000000000 +0000 @@ -0,0 +1,4 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml