Bug 2273660

Summary: seems -ffp-contract=off resolves the test issue for all non-x86
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: lib2geomAssignee: Felix Wang <topazus>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: rjones, topazus
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: lib2geom-1.3-8.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-05 14:54:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Horák 2024-04-05 13:35:09 UTC
After seeing the riscv related commit I have checked whether it would resolve the precision issue in the elliptical-arc-test on aarch64/ppc64le/s390x and indeed it does.

With

diff --git a/lib2geom.spec b/lib2geom.spec
index 1495924..c73829f 100644
--- a/lib2geom.spec
+++ b/lib2geom.spec
@@ -39,7 +39,7 @@ The %{name}-devel package contains development files for %{name}.
 %forgeautosetup -p1
 
 %build
-%ifarch riscv64
+%ifarch aarch64 ppc64le riscv64 s390x
 export CFLAGS="%{optflags} -ffp-contract=off"
 export CXXFLAGS="%{optflags} -ffp-contract=off"
 %endif
@@ -56,14 +56,7 @@ export CXXFLAGS="%{optflags} -ffp-contract=off"
 %cmake_install
 
 %check
-# skip elliptical-arc-test test on aarch64, ppc64le and s390x
-# https://koji.fedoraproject.org/koji/taskinfo?taskID=103958899
-# https://gitlab.com/inkscape/lib2geom/-/issues/67
-%ifarch x86_64
 %ctest
-%else
-%ctest -E elliptical-arc-test
-%endif
 
 %files
 %license COPYING-LGPL-2.1 COPYING-MPL-1.1

the tests pass on all arches, see https://koji.fedoraproject.org/koji/taskinfo?taskID=115926170

Reproducible: Always

Comment 1 Felix Wang 2024-04-05 14:36:03 UTC
Many thanks for the testing attempt, I will push the change to rawhide.

Comment 2 Fedora Update System 2024-04-05 14:49:57 UTC
FEDORA-2024-cab572c747 (lib2geom-1.3-8.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-cab572c747

Comment 3 Fedora Update System 2024-04-05 14:54:21 UTC
FEDORA-2024-cab572c747 (lib2geom-1.3-8.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.