Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
53163e92c7 | |||
439b22db51 |
38
0001-build-fix-build-error-with-flint-3.2.0.patch
Normal file
38
0001-build-fix-build-error-with-flint-3.2.0.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
From 92e340333ebaf1e5628ccff2dd42b1cc18950e1c Mon Sep 17 00:00:00 2001
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: Fri, 14 Mar 2025 09:57:19 +0100
|
||||
Subject: [PATCH] build: fix build error with flint 3.2.0
|
||||
References: https://github.com/ezaffanella/PPLite/pull/1
|
||||
|
||||
```
|
||||
$ make V=0
|
||||
CXX FLINT_Integer.lo
|
||||
In file included from FLINT_Integer.cc:22:
|
||||
FLINT_Integer.hh: In constructor 'pplite::FLINT_Integer::FLINT_Integer(const __mpz_struct*)':
|
||||
FLINT_Integer.hh:110:25: error: 'fmpz_set_mpz' was not declared in this scope; did you mean 'fmpz_get_mpn'?
|
||||
110 | : FLINT_Integer() { fmpz_set_mpz(mp, z); }
|
||||
```
|
||||
|
||||
fmpz.h / fmpq.h evaluate the presence of the gmp-internal macro ``__GMP_H__``,
|
||||
so there is a mandatory order for header files :-/
|
||||
---
|
||||
src/FLINT_Integer.hh | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/FLINT_Integer.hh b/src/FLINT_Integer.hh
|
||||
index 1d9914f..981d101 100644
|
||||
--- a/src/FLINT_Integer.hh
|
||||
+++ b/src/FLINT_Integer.hh
|
||||
@@ -22,8 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
-#include <flint/fmpz.h>
|
||||
#include <gmp.h>
|
||||
+#include <flint/fmpz.h>
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
--
|
||||
2.48.1
|
||||
|
BIN
pplite-0.11.tar.gz
(Stored with Git LFS)
BIN
pplite-0.11.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
pplite-0.12.tar.gz
(Stored with Git LFS)
Normal file
BIN
pplite-0.12.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 14 09:11:52 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Add 0001-build-fix-build-error-with-flint-3.2.0.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 26 15:26:42 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update to release 0.12
|
||||
* The library no longer depends on the C++ interface of GMP
|
||||
(this change mainly affects classes ``pplite::Integer`` and
|
||||
``pplite::Rational``).
|
||||
* The support for conditional thread safety is now enabled by
|
||||
default.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 12 16:56:10 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
13
pplite.spec
13
pplite.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package pplite
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,17 +16,17 @@
|
||||
#
|
||||
|
||||
|
||||
%define lname libpplite4
|
||||
%define _lto_cflags %nil
|
||||
%define lname libpplite5
|
||||
Name: pplite
|
||||
Version: 0.11
|
||||
Version: 0.12
|
||||
Release: 0
|
||||
Summary: Computations with polyhedra
|
||||
License: GPL-3.0-or-later
|
||||
Group: Productivity/Scientific/Math
|
||||
URL: https://github.com/ezaffanella/PPLite/
|
||||
Source: https://github.com/ezaffanella/PPLite/raw/main/releases/%name-%version.tar.gz
|
||||
BuildRequires: flint-devel
|
||||
Patch1: 0001-build-fix-build-error-with-flint-3.2.0.patch
|
||||
BuildRequires: pkgconfig(flint)
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gmp-devel
|
||||
|
||||
@@ -74,8 +74,7 @@ if ! %make_build check; then
|
||||
:
|
||||
fi
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets -n %lname
|
||||
|
||||
%files -n %lname
|
||||
%license COPYING
|
||||
|
Reference in New Issue
Block a user