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"};