From c0009e685bb3b4638ef28b4bb4d9639b44ad0e59ca41a4eb167376d30c9697e4 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 19 Aug 2024 23:21:03 +0200 Subject: [PATCH] Add gcc14.patch --- gcc14.patch | 20 ++++++++++++++++++++ givaro.changes | 5 +++++ givaro.spec | 1 + 3 files changed, 26 insertions(+) create mode 100644 gcc14.patch diff --git a/gcc14.patch b/gcc14.patch new file mode 100644 index 0000000..9c93879 --- /dev/null +++ b/gcc14.patch @@ -0,0 +1,20 @@ +References: https://github.com/linbox-team/givaro/issues/226 + +The reference to a singleton element should not be copied. + +--- + src/kernel/integer/random-integer.h | 1 - + 1 file changed, 1 deletion(-) + +Index: givaro-4.2.0/src/kernel/integer/random-integer.h +=================================================================== +--- givaro-4.2.0.orig/src/kernel/integer/random-integer.h ++++ givaro-4.2.0/src/kernel/integer/random-integer.h +@@ -91,7 +91,6 @@ namespace Givaro + if (this != &R) { + _bits = R._bits; + _integer = R._integer; +- const_cast(_ring)=R._ring; + } + return *this; + } diff --git a/givaro.changes b/givaro.changes index da817e3..0e7be42 100644 --- a/givaro.changes +++ b/givaro.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 19 21:14:59 UTC 2024 - Jan Engelhardt + +- Add gcc14.patch + ------------------------------------------------------------------- Tue Mar 28 08:47:39 UTC 2023 - Jan Engelhardt diff --git a/givaro.spec b/givaro.spec index f011d56..1a63970 100644 --- a/givaro.spec +++ b/givaro.spec @@ -29,6 +29,7 @@ URL: https://casys.gricad-pages.univ-grenoble-alpes.fr/givaro/ Source: https://github.com/linbox-team/givaro/releases/download/v%version/%name-%version.tar.gz Patch1: givaro-doc-no-build-time.patch Patch2: 0001-Add-missing-include-cstdint-for-u-int64_t.patch +Patch3: gcc14.patch # Old doxygen does not properly handle symlink recursion BuildRequires: doxygen >= 1.5.7.1 BuildRequires: fdupes