Subject: [bug#70087] [PATCH 4/4] gnu: minizinc: Update to 2.8.3.

From: Herman Rimm <[email-masked]>
Date: Sat, 30 Mar 2024 12:42:41 +0100

* gnu/packages/maths.scm (minizinc): Update.

Change-Id: I503fd004b38abaac8829a2cb94c182b001d83763
---
 gnu/packages/maths.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index fd44f1f985..5a58696858 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4034,7 +4034,7 @@ (define-public metamath
 (define-public minizinc
   (package
     (name "minizinc")
-    (version "2.5.5")
+    (version "2.8.3")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -4043,7 +4043,7 @@ (define-public minizinc
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "10b2hsl1fx9psh0iagmp8ki3f60f3qg5hmvra5aczjlfmbl88ggp"))
+                "1h3pc92m7ypvmhrrhk2263ib5rqc4fv4n6lai0p8dwiidjpcqnpz"))
               (modules '((guix build utils)
                          (ice-9 ftw)
                          (srfi srfi-1)))
@@ -4089,6 +4089,9 @@ (define-public minizinc
                                                 "MIP_solverinstance.cpp"
                                                 "MIP_wrap.cpp")))
                                (scandir "."))))
+                  ;; Gecode 6.3 does not yet support new interface.
+                  (substitute* "solvers/gecode/gecode_solverinstance.cpp"
+                    (("600300") "600400"))
                   (substitute* "CMakeLists.txt"
                     (("find_package\\(([^ ]*).*\\)" all pkg)
                      (if (member pkg '("Gecode" "OsiCBC" "Threads"))
-- 
2.41.0