From f8970d384de06967541ffe7a4242505849b3ecb8 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Tue, 28 Jul 2026 03:13:06 +0300 Subject: [PATCH] dev-ruby/timecop: skip failing tests on x86 Bug: https://bugs.gentoo.org/940908 Signed-off-by: Alfred Wingate Part-of: https://codeberg.org/gentoo/gentoo/pulls/1553 Signed-off-by: Sam James --- dev-ruby/timecop/timecop-0.9.10-r1.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-ruby/timecop/timecop-0.9.10-r1.ebuild b/dev-ruby/timecop/timecop-0.9.10-r1.ebuild index cbd6308bd9600..a460961060a57 100644 --- a/dev-ruby/timecop/timecop-0.9.10-r1.ebuild +++ b/dev-ruby/timecop/timecop-0.9.10-r1.ebuild @@ -32,6 +32,12 @@ all_ruby_prepare() { -i Rakefile test/test_helper.rb test/timecop_with_active_support_test.rb || die sed -i -e '/rubygems/ a\gem "test-unit"' \ -e '/minitest\/rg/ s:^:#:' -e '/pry/ s:^:#:' test/test_helper.rb || die + + if use x86; then + # The values are the same but the objects are distinct, bug #940908 + sed -e '/is not frozen"/ s:^:#:' \ + -i test/timecop_with_process_clock_test.rb || die + fi } each_ruby_prepare() {