Control: tags -1 patch

On Sat, Jun 20, 2020 at 02:42:00PM +0200, Sebastian Ramacher wrote:
> Source: flightgear
> Version: 1:2020.1.2+dfsg-1
> Severity: serious
> Tags: ftbfs
> Justification: fails to build from source (but built successfully in the past)
> 
> flightgear failed to build on the i386 buildd. See
> https://buildd.debian.org/status/fetch.php?pkg=flightgear&arch=i386&ver=1%3A2020.1.2%2Bdfsg-1&stamp=1592517255&raw=0

This is due to the excess precision of the x87 FPU.

If exact results are required, the following will fix it:

--- debian/rules.old    2020-06-20 22:21:00.271619740 +0300
+++ debian/rules        2020-06-20 22:21:50.115641632 +0300
@@ -28,6 +28,10 @@
   ENABLE_QT = ON
 endif
 
+ifneq (,$(filter $(DEB_HOST_ARCH), i386))
+  export DEB_CXXFLAGS_MAINT_APPEND += -ffloat-store
+endif
+
 CMAKE_FLAGS = \
        -DCMAKE_BUILD_TYPE="RelWithDebInfo" \
        -DCMAKE_C_FLAGS="$(CFLAGS)" \

Reply via email to