From ef815df8208f3c9389f256e9abe3c4bfdf4472b735278476945fabbaa348e602 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 3 Nov 2024 00:31:27 +0100 Subject: [PATCH] Add static-decls.patch --- polylib.changes | 5 +++++ polylib.spec | 4 ++-- static-decls.patch | 24 ++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 static-decls.patch diff --git a/polylib.changes b/polylib.changes index d01d700..9a2311d 100644 --- a/polylib.changes +++ b/polylib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 2 23:33:12 UTC 2024 - Jan Engelhardt + +- Add static-decls.patch + ------------------------------------------------------------------- Sat Jun 24 14:12:04 UTC 2023 - Jan Engelhardt diff --git a/polylib.spec b/polylib.spec index 3eec53a..0031071 100644 --- a/polylib.spec +++ b/polylib.spec @@ -25,6 +25,7 @@ License: GPL-3.0-or-later Group: Productivity/Scientific/Math URL: https://icps.u-strasbg.fr/polylib/ Source: https://icps.u-strasbg.fr/polylib/polylib_src/%name-%version.tar.gz +Patch1: static-decls.patch BuildRequires: gcc-c++ BuildRequires: ntl-devel BuildRequires: pkg-config @@ -79,8 +80,7 @@ developing with PolyLib. %make_install find %buildroot -type f -name "*.la" -delete -print -%post -n %lname -p /sbin/ldconfig -%postun -n %lname -p /sbin/ldconfig +%ldconfig_scriptlets -n %lname %files %_bindir/c2p diff --git a/static-decls.patch b/static-decls.patch new file mode 100644 index 0000000..4b41c8d --- /dev/null +++ b/static-decls.patch @@ -0,0 +1,24 @@ +From: Jan Engelhardt +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"};