[packages/SuiteSparse_config] - added externc patch (avoid forcing extern C for system headers, could cause problems in C++ code -
qboosh
qboosh at pld-linux.org
Fri Nov 21 20:03:04 CET 2014
commit 779d403d71c4742b41d5f7b66cbaae20e0464598
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Nov 21 20:03:46 2014 +0100
- added externc patch (avoid forcing extern C for system headers, could cause problems in C++ code
- release 2
SuiteSparse_config-externc.patch | 21 +++++++++++++++++++++
SuiteSparse_config.spec | 4 +++-
2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/SuiteSparse_config.spec b/SuiteSparse_config.spec
index 0d10125..95f946f 100644
--- a/SuiteSparse_config.spec
+++ b/SuiteSparse_config.spec
@@ -2,13 +2,14 @@ Summary: SuiteSparse_config development files
Summary(pl.UTF-8): Pliki programistyczne SuiteSparse_config
Name: SuiteSparse_config
Version: 4.3.1
-Release: 1
+Release: 2
License: no restrictions
Group: Development
Source0: http://www.cise.ufl.edu/research/sparse/UFconfig/%{name}-%{version}.tar.gz
# Source0-md5: 14872b930c8625362f11a847d07a6ede
Patch0: %{name}-config.patch
Patch1: %{name}-shared.patch
+Patch2: %{name}-externc.patch
URL: http://www.cise.ufl.edu/research/sparse/UFconfig/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -65,6 +66,7 @@ Biblioteka statyczna SuiteSparse_config.
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__make} \
diff --git a/SuiteSparse_config-externc.patch b/SuiteSparse_config-externc.patch
new file mode 100644
index 0000000..5f0b64a
--- /dev/null
+++ b/SuiteSparse_config-externc.patch
@@ -0,0 +1,21 @@
+--- SuiteSparse_config/SuiteSparse_config.h.orig 2014-07-16 23:35:20.000000000 +0200
++++ SuiteSparse_config/SuiteSparse_config.h 2014-11-21 17:12:47.821093628 +0100
+@@ -38,14 +38,14 @@
+ #ifndef SUITESPARSE_CONFIG_H
+ #define SUITESPARSE_CONFIG_H
+
+-#ifdef __cplusplus
+-extern "C" {
+-#endif
+-
+ #include <limits.h>
+ #include <stdlib.h>
+ #include <math.h>
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ /* ========================================================================== */
+ /* === SuiteSparse_long ===================================================== */
+ /* ========================================================================== */
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/SuiteSparse_config.git/commitdiff/779d403d71c4742b41d5f7b66cbaae20e0464598
More information about the pld-cvs-commit
mailing list