From 6b9a7eb6d7f42b2975b755ab332c7cb6a13ebfe1 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 29 Aug 2024 16:53:41 -0400 Subject: [PATCH] Skip testDubiousArrayFormulasFODS on RHEL 10 This test is already known to fail on various architectures depending on compile flags, and while "generic" x86-64 is supposedly safe, the -v3 optimizations enabled in RHEL 10 also trigger an error: linest.fods failed, Sheet2.A39 '=O30' result: 12237.3616028623, expected: 12237.3616028624 --- libreoffice.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libreoffice.spec b/libreoffice.spec index ae0761c..a4e2ecd 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1130,6 +1130,12 @@ sed -i -e s/CppunitTest_sw_macros_test// sw/Module_sw.mk # https://bugs.documentfoundation.org/show_bug.cgi?id=152943 sed -i -e s/CppunitTest_sc_ucalc_formula2// sc/Module_sc.mk %endif +%ifarch x86_64 +%if 0%{?rhel} >= 10 +# Test already limited to x86, also fails with x86-64-v3 +sed -i -e 's/defined X86_64/0/' sc/qa/unit/functions_array.cxx +%endif +%endif #see rhbz#2072615 rm -f vcl/qa/cppunit/graphicfilter/data/tiff/fail/CVE-2017-9936-1.tiff