diff --git a/rubygem-nokogiri.spec b/rubygem-nokogiri.spec index 08bef55..0eda88f 100644 --- a/rubygem-nokogiri.spec +++ b/rubygem-nokogiri.spec @@ -224,6 +224,11 @@ sed -i '/Minitest::Reporters/ s/^/#/' test/helper.rb # PPC64LE with ruby3.1 does not seem to support GC.compact %ifarch ppc64le export NOKOGIRI_TEST_GC_LEVEL=major +# F36 ruby has not implemented runtime GC compaction support yet +# c.f https://src.fedoraproject.org/rpms/ruby/pull-request/126 +%if 0%{?fedora} <= 36 +sed -i test/test_compaction.rb -e 's|skip unless GC.respond_to.*|skip|' +%endif %endif env \