From 460b9c76aa25662b569d8f5976d238438fa4f01c8d1892fe8f8ff1c8a13c68e7 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 23 Jun 2018 08:59:02 +0000 Subject: [PATCH] - Add 0001-remove-unnecessary-double-template-fixing-gcc-8.1-co.patch from upstream. OBS-URL: https://build.opensuse.org/package/show/science/linbox?expand=0&rev=6 --- ...ry-double-template-fixing-gcc-8.1-co.patch | 28 +++++++++++++++++++ linbox.changes | 6 ++++ linbox.spec | 6 ++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 0001-remove-unnecessary-double-template-fixing-gcc-8.1-co.patch diff --git a/0001-remove-unnecessary-double-template-fixing-gcc-8.1-co.patch b/0001-remove-unnecessary-double-template-fixing-gcc-8.1-co.patch new file mode 100644 index 0000000..e5543ef --- /dev/null +++ b/0001-remove-unnecessary-double-template-fixing-gcc-8.1-co.patch @@ -0,0 +1,28 @@ +From 56be8673613fff87fb2329f71bceb0c793c00b82 Mon Sep 17 00:00:00 2001 +From: Clement Pernet +Date: Fri, 18 May 2018 11:00:08 +0200 +Subject: [PATCH] remove unnecessary double template, fixing gcc-8.1 + compilation error, see + https://groups.google.com/forum/#!topic/sage-devel/NgzlZknrizg + +--- + linbox/matrix/densematrix/blas-transposed-matrix.h | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/linbox/matrix/densematrix/blas-transposed-matrix.h b/linbox/matrix/densematrix/blas-transposed-matrix.h +index b81e65972..d9c031434 100644 +--- a/linbox/matrix/densematrix/blas-transposed-matrix.h ++++ b/linbox/matrix/densematrix/blas-transposed-matrix.h +@@ -67,9 +67,6 @@ namespace LinBox + /*! TransposedBlasMatrix. + * NO DOC + */ +-#if !defined(__INTEL_COMPILER) && !defined(__CUDACC__) & !defined(__clang__) +- template <> +-#endif + template< class Matrix > + class TransposedBlasMatrix< TransposedBlasMatrix< Matrix > > : public Matrix { + +-- +2.17.1 + diff --git a/linbox.changes b/linbox.changes index 154b422..6cffc13 100644 --- a/linbox.changes +++ b/linbox.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jun 23 08:58:41 UTC 2018 - jengelh@inai.de + +- Add 0001-remove-unnecessary-double-template-fixing-gcc-8.1-co.patch + from upstream. + ------------------------------------------------------------------- Mon Dec 25 19:54:37 UTC 2017 - jengelh@inai.de diff --git a/linbox.spec b/linbox.spec index c8f706d..685de26 100644 --- a/linbox.spec +++ b/linbox.spec @@ -1,7 +1,7 @@ # # spec file for package linbox # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,11 +21,12 @@ Name: linbox Version: 1.5.2 Release: 0 Summary: C++ library for computation with matrices over ints and finite fields -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Productivity/Scientific/Math Url: http://linalg.org/ Source: https://github.com/linbox-team/linbox/releases/download/v%version/linbox-%version.tar.gz +Patch1: 0001-remove-unnecessary-double-template-fixing-gcc-8.1-co.patch BuildRequires: autoconf >= 2.61 BuildRequires: automake >= 1.8 BuildRequires: gcc-c++ @@ -69,6 +70,7 @@ developing against the Givaro library. %prep %setup -q +%patch -P 1 -p1 %build autoreconf -fi