guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: cmh: Add patch to work with current fplll.


From: guix-commits
Subject: branch master updated: gnu: cmh: Add patch to work with current fplll.
Date: Tue, 21 Jun 2022 10:15:09 -0400

This is an automated email from the git hooks/post-receive script.

andreas pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new d13ffd1580 gnu: cmh: Add patch to work with current fplll.
d13ffd1580 is described below

commit d13ffd1580ec2253b6e05fb6300c3629aee893e3
Author: Andreas Enge <andreas@enge.fr>
AuthorDate: Tue Jun 21 16:12:47 2022 +0200

    gnu: cmh: Add patch to work with current fplll.
    
    * gnu/packages/patches/cmh-support-fplll.patch: New file.
    * gnu/packages/algebra.scm (cmh)[source]: Add patch.
    * gnu/local.mk (dist_patch_DATA): Register patch.
---
 gnu/local.mk                                 |  1 +
 gnu/packages/algebra.scm                     |  3 ++-
 gnu/packages/patches/cmh-support-fplll.patch | 27 +++++++++++++++++++++++++++
 3 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index 197c8679eb..cb5552cc7b 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -962,6 +962,7 @@ dist_patch_DATA =                                           
\
   %D%/packages/patches/cling-use-shared-library.patch          \
   %D%/packages/patches/clucene-pkgconfig.patch                 \
   %D%/packages/patches/cmake-curl-certificates.patch           \
+  %D%/packages/patches/cmh-support-fplll.patch                 \
   %D%/packages/patches/coda-use-system-libs.patch              \
   %D%/packages/patches/collectd-5.11.0-noinstallvar.patch              \
   %D%/packages/patches/combinatorial-blas-awpm.patch           \
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index 3dd476ace9..6823531cc0 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -302,7 +302,8 @@ GP2C, the GP to C compiler, translates GP scripts to PARI 
programs.")
                                 version ".tar.gz"))
             (sha256
              (base32
-              "1ws2yhzxmm2l5xqqqcjcimmg40f9qq5l9i6d4i5434an9v9s8531"))))
+              "1ws2yhzxmm2l5xqqqcjcimmg40f9qq5l9i6d4i5434an9v9s8531"))
+             (patches (search-patches "cmh-support-fplll.patch"))))
    (build-system gnu-build-system)
    (inputs
      (list gmp
diff --git a/gnu/packages/patches/cmh-support-fplll.patch 
b/gnu/packages/patches/cmh-support-fplll.patch
new file mode 100644
index 0000000000..fae04f456b
--- /dev/null
+++ b/gnu/packages/patches/cmh-support-fplll.patch
@@ -0,0 +1,27 @@
+Patch from the CMH git, after the 1.1.0 release.
+
+From 2328c819317dda2171217002268f57c74cedc476 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Emmanuel=20Thom=C3=A9?= <Emmanuel.Thome@inria.fr>
+Date: Tue, 7 Jun 2022 12:17:05 -0700
+Subject: [PATCH] patch suggested by @x-YVicto
+
+---
+ src/lll.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/lll.cpp b/src/lll.cpp
+index 83dab07..f005931 100644
+--- a/src/lll.cpp
++++ b/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++)
+-- 
+2.36.1
+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]