File: i386-mieee-fp.patch

package info (click to toggle)
plplot 5.15.0%2Bdfsg2-15
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 31,396 kB
  • sloc: ansic: 79,703; xml: 28,583; cpp: 20,033; ada: 19,456; tcl: 12,081; f90: 11,431; ml: 7,276; java: 6,863; python: 6,792; sh: 3,274; perl: 828; lisp: 75; makefile: 74; sed: 34; fortran: 6
file content (42 lines) | stat: -rw-r--r-- 1,901 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From: =?utf-8?q?S=C3=A9bastien_Villemot?= <sebastien@debian.org>
Date: Tue, 27 Nov 2018 13:49:10 +0100
Subject: Fix FTBFS on i386, workaround for #901836
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

The -mieee-fp flag, that is used to test the “NaN awareness” of the compiler,
is broken on i386. As a consequence, plplot FTBFS, because it does not compile
csiro, see e.g.:
https://buildd.debian.org/status/fetch.php?pkg=plplot&arch=i386&ver=5.13.0%2Bdfsg-7%2Bb1&stamp=1529312616&raw=0

This patch simply removes the -mieee-fp flag, which is not needed on i386 to
pass the “NaN awareness” test.
Bug-Debian: https://bugs.debian.org/901836
Last-Update: 2018-06-20
---
 cmake/modules/csiro.cmake | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/cmake/modules/csiro.cmake b/cmake/modules/csiro.cmake
index cd427c4..81d663f 100644
--- a/cmake/modules/csiro.cmake
+++ b/cmake/modules/csiro.cmake
@@ -27,15 +27,13 @@ option(WITH_CSA "Enable use of the csa library" ON)
 # expanded to a lot more cases as we gain platform experience.
 set(NAN_CFLAGS ${CMAKE_C_FLAGS})
 if(PL_HAVE_QHULL OR WITH_CSA)
-  if(CMAKE_SYSTEM_PROCESSOR MATCHES "i[0-9]86" AND NOT CMAKE_C_COMPILER MATCHES "gcc")
-    set(NAN_CFLAGS "${NAN_CFLAGS} -mieee-fp")
-  elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "alpha.*")
+  if(CMAKE_SYSTEM_PROCESSOR MATCHES "alpha.*")
     if(CMAKE_C_COMPILER MATCHES "gcc")
       set(NAN_CFLAGS "${NAN_CFLAGS} -mieee")
     else(CMAKE_C_COMPILER MATCHES "gcc")
       set(NAN_CFLAGS "${NAN_CFLAGS} -ieee")
     endif(CMAKE_C_COMPILER MATCHES "gcc")
-  endif(CMAKE_SYSTEM_PROCESSOR MATCHES "i[0-9]86" AND NOT CMAKE_C_COMPILER MATCHES "gcc")
+  endif(CMAKE_SYSTEM_PROCESSOR MATCHES "alpha.*")
   if(NOT DEFINED NaNAwareCCompiler)
     message(STATUS "Check for NaN awareness in C compiler")
     try_run(RUN_RESULT COMPILE_RESULT