Bug 2273660 - seems -ffp-contract=off resolves the test issue for all non-x86
Summary: seems -ffp-contract=off resolves the test issue for all non-x86
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lib2geom
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Felix Wang
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-05 13:35 UTC by Dan Horák
Modified: 2024-04-05 15:14 UTC (History)
2 users (show)

Fixed In Version: lib2geom-1.3-8.fc41
Clone Of:
Environment:
Last Closed: 2024-04-05 14:54:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.