git: 895156e45693 - main - math/cmh: Unbreak
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Jun 2022 18:54:48 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=895156e45693d4bf7795927d198ba5493560b77d
commit 895156e45693d4bf7795927d198ba5493560b77d
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-06-07 17:50:08 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-06-07 18:54:45 +0000
math/cmh: Unbreak
Reported by: fallout
---
math/cmh/Makefile | 2 --
math/cmh/files/patch-src_lll.cpp | 13 +++++++++++++
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/math/cmh/Makefile b/math/cmh/Makefile
index 17a4c00c7adb..635c8e683128 100644
--- a/math/cmh/Makefile
+++ b/math/cmh/Makefile
@@ -10,8 +10,6 @@ COMMENT= Compute Igusa class polynomials
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN= does not build: lll.cpp:40:18: error: expected ';' after expression
-
LIB_DEPENDS= libfplll.so:math/fplll \
libgmp.so:math/gmp \
libmpc.so:math/mpc \
diff --git a/math/cmh/files/patch-src_lll.cpp b/math/cmh/files/patch-src_lll.cpp
new file mode 100644
index 000000000000..b02f6f5051e8
--- /dev/null
+++ b/math/cmh/files/patch-src_lll.cpp
@@ -0,0 +1,13 @@
+- reported to Emmanuel Thomé <emmanuel.thome@inria.fr> on 06/06/2022
+
+--- src/lll.cpp.orig 2021-02-05 17:21:58 UTC
++++ src/lll.cpp
+@@ -37,7 +37,7 @@
+ #ifdef HAVE_FPLLL
+ static void lll_fplll (mpz_t *v, mpz_t **M, const int m, const int n)
+ {
+- ZZ_mat <mpz_t> Mp (m, n);
++ fplll::ZZ_mat <mpz_t> Mp (m, n);
+ int i, j;
+
+ for (i = 0; i < m; i++)