Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/octave/files: octave-3.6.4-gcc-4.8.patch
Date: Sat, 07 Dec 2013 18:50:49
Message-Id: 20131207185041.C60E220005@flycatcher.gentoo.org
1 jlec 13/12/07 18:50:41
2
3 Added: octave-3.6.4-gcc-4.8.patch
4 Log:
5 sci-mathematics/octave: Get gcc-4.8 fix from debian, #492488, https://savannah.gnu.org/bugs/?38746, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705485
6
7 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
8
9 Revision Changes Path
10 1.1 sci-mathematics/octave/files/octave-3.6.4-gcc-4.8.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/files/octave-3.6.4-gcc-4.8.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/octave/files/octave-3.6.4-gcc-4.8.patch?rev=1.1&content-type=text/plain
14
15 Index: octave-3.6.4-gcc-4.8.patch
16 ===================================================================
17 Description: Fix compilation of C++ MEX files with GCC 4.8
18 The header mex.h was including mexproto.h within an extern "C" block. In turn,
19 mexproto.h includes cstdlib.
20 .
21 Apparently, including cstdlib within an extern "C" block was working with GCC
22 4.7, but this is no longer the case with GCC 4.8.
23 .
24 The fix consists in including mexproto.h outside of the extern "C" block.
25 Author: Sébastien Villemot <sebastien@××××××.org>
26 Bug: https://savannah.gnu.org/bugs/index.php?38746
27 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705485
28 Last-Update: 2013-05-29
29 ---
30 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
31 --- a/src/mex.h
32 +++ b/src/mex.h
33 @@ -64,6 +64,8 @@
34
35 #define mxMAXNAME 64
36
37 +#include "mexproto.h"
38 +
39 #if defined (__cplusplus)
40 extern "C" {
41 #endif
42 @@ -74,8 +76,6 @@
43 void mexFunction (int nlhs, mxArray* plhs[], int nrhs, const mxArray *prhs[]);
44 #endif
45
46 -#include "mexproto.h"
47 -
48 /* V4 floating point routines renamed in V5. */
49 #define mexIsNaN mxIsNaN
50 #define mexIsFinite mxIsFinite