[neon/extras/grantlee/Neon/release] debian: build with -ffloat-store on i386 archs

Pino Toscano null at kde.org
Mon Sep 2 17:01:22 BST 2024


Git commit a16ae7003f66462704f7723f298521b8b7920b49 by Pino Toscano.
Committed on 12/08/2023 at 08:37.
Pushed by jriddell into branch 'Neon/release'.

build with -ffloat-store on i386 archs

M  +3    -0    debian/changelog
M  +4    -0    debian/rules

https://invent.kde.org/neon/extras/grantlee/-/commit/a16ae7003f66462704f7723f298521b8b7920b49

diff --git a/debian/changelog b/debian/changelog
index 02ee73b..8a45c0a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,8 @@
 grantlee5 (5.3.1-2) UNRELEASED; urgency=medium
 
+  [ Pino Toscano ]
+  * Build with -ffloat-store on i386 architectures to fix rounding issues with
+    double/qreal.
 
  -- Debian Krap Maintainers <debian-qt-kde at lists.debian.org>  Sat, 12 Aug 2023 10:35:40 +0200
 
diff --git a/debian/rules b/debian/rules
index 674fc9b..5d1febf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,10 @@ include /usr/share/dpkg/architecture.mk
 # Disable fixfilepath, as it triggers build failures.
 export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath
 
+ifeq ($(DEB_HOST_ARCH_CPU),i386)
+  export DEB_CXXFLAGS_MAINT_APPEND = -ffloat-store
+endif
+
 testsuite_failing_archs := hppa ia64 sparc64
 ifneq (,$(filter $(DEB_HOST_ARCH),$(testsuite_failing_archs)))
   fail_param := || true



More information about the Neon-commits mailing list