[bug#78796] gnu: nlopt: Update to 2.10.0.

Message ID 045277715955e33c0a5ed706831763f74720044e.1749971242.git.atai@atai.org
State New
Headers
Series [bug#78796] gnu: nlopt: Update to 2.10.0. |

Commit Message

Andy Tai June 15, 2025, 7:08 a.m. UTC
  * gnu/packages/maths.scm (nlopt): Update to 2.10.0.
[arguments]<#:configure-flags>: Turn on building tests.

Change-Id: I78106ae3379b2cb3c896dcc1314da966fcd0b9a9
---
 gnu/packages/maths.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)


base-commit: cf09bda7c52664b99ad2928e757cbac0e037829c
  

Comments

Andreas Enge June 15, 2025, 4:59 p.m. UTC | #1
Hello Andy,

after checking that all direct dependents that built before do still
build, I have pushed this patch. While it does not (yet) help with
updating octave, it at least makes some progress. Thanks!

Andreas
  

Patch

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index e6306c081d..2f6f7f37f6 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2590,7 +2590,7 @@  (define-public n2p2
 (define-public nlopt
   (package
     (name "nlopt")
-    (version "2.7.1")
+    (version "2.10.0")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -2598,10 +2598,12 @@  (define-public nlopt
                     (commit (string-append "v" version))))
               (file-name (git-file-name name version))
               (sha256
-               (base32 "1xpdza28i8w441fwv6a5f3qk4zi7ys6ws9fx6kr5ny27dfdz6rr1"))))
+               (base32 "04257r7a1bjmm6hznf9v6fimz2p93dk745sf89wmxzhg3rh0ak44"))))
     (build-system cmake-build-system)
     (arguments
-     `(#:phases
+     `(#:configure-flags
+          (list "-DNLOPT_TESTS=ON")
+      #:phases
        (modify-phases %standard-phases
          (add-before 'configure 'set-libnlopt-file-name
            (lambda* (#:key outputs #:allow-other-keys)