SHA256
1
0
forked from pool/polylib

Add static-decls.patch

This commit is contained in:
Jan Engelhardt 2024-11-03 00:31:27 +01:00
parent 37efebe9ee
commit ef815df820
3 changed files with 31 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 2 23:33:12 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Add static-decls.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jun 24 14:12:04 UTC 2023 - Jan Engelhardt <jengelh@inai.de> Sat Jun 24 14:12:04 UTC 2023 - Jan Engelhardt <jengelh@inai.de>

View File

@ -25,6 +25,7 @@ License: GPL-3.0-or-later
Group: Productivity/Scientific/Math Group: Productivity/Scientific/Math
URL: https://icps.u-strasbg.fr/polylib/ URL: https://icps.u-strasbg.fr/polylib/
Source: https://icps.u-strasbg.fr/polylib/polylib_src/%name-%version.tar.gz Source: https://icps.u-strasbg.fr/polylib/polylib_src/%name-%version.tar.gz
Patch1: static-decls.patch
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: ntl-devel BuildRequires: ntl-devel
BuildRequires: pkg-config BuildRequires: pkg-config
@ -79,8 +80,7 @@ developing with PolyLib.
%make_install %make_install
find %buildroot -type f -name "*.la" -delete -print find %buildroot -type f -name "*.la" -delete -print
%post -n %lname -p /sbin/ldconfig %ldconfig_scriptlets -n %lname
%postun -n %lname -p /sbin/ldconfig
%files %files
%_bindir/c2p %_bindir/c2p

24
static-decls.patch Normal file
View File

@ -0,0 +1,24 @@
From: Jan Engelhardt <ej@inai.de>
Date: 2024-11-03 00:14:45.456431711 +0100
./applications/testCompressParms.c:58:9: error: implicit declaration of function test_Constraints_Remove_parm_eqs; did you mean Constraints_Remove_parm_eqs? [-Wimplicit-function-declaration]
./applications/testCompressParms.c:59:9: error: implicit declaration of function test_Polyhedron_Remove_parm_eqs; did you mean Polyhedron_Remove_parm_eqs? [-Wimplicit-function-declaration]
./applications/testCompressParms.c:60:9: error: implicit declaration of function test_Constraints_fullDimensionize; did you mean Constraints_fullDimensionize? [-Wimplicit-function-declaration]
---
applications/testCompressParms.c | 3 +++
1 file changed, 3 insertions(+)
Index: polylib-5.22.5/applications/testCompressParms.c
===================================================================
--- polylib-5.22.5.orig/applications/testCompressParms.c
+++ polylib-5.22.5/applications/testCompressParms.c
@@ -41,6 +41,9 @@
}
#define maxRays 200
+int test_Constraints_Remove_parm_eqs(Matrix * A, Matrix * B);
+int test_Polyhedron_Remove_parm_eqs(Matrix * A, Matrix * B);
+int test_Constraints_fullDimensionize(Matrix * A, Matrix * B, unsigned int nbSamples);
const char *origNames[] =
{"n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"};