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

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new b78aea2f9b gnu: ots: Fix build with gcc-14.
b78aea2f9b is described below

commit b78aea2f9b5ba81db81454adc2926f559de9eba5
Author: Andreas Enge <[email protected]>
AuthorDate: Wed Jul 23 18:08:42 2025 +0200

    gnu: ots: Fix build with gcc-14.
    
    * gnu/packages/ots.scm (ots)[arguments]<#:phases>{'fix-includes}: New phase.
    
    Change-Id: I37bad828cc02328804b5829315a2296614cea70c
---
 gnu/packages/ots.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ots.scm b/gnu/packages/ots.scm
index e527bf277e..6a34d1d7db 100644
--- a/gnu/packages/ots.scm
+++ b/gnu/packages/ots.scm
@@ -55,6 +55,11 @@
 
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'fix-includes
+           (lambda _
+             (substitute* "src/libots.h"
+               (("#include <glib.h>" all)
+                 (string-append all "\n#include <math.h>")))))
          (add-after 'configure 'set-shared-lib-extension
            (lambda _
              ;; For some reason, the 'libtool' script (from Libtool
@@ -63,8 +68,7 @@
              ;; This leads to the creation of 'libots-1' instead of
              ;; 'libots-1.so'.  Fix that.
              (substitute* "libtool"
-               (("shrext_cmds") "shrext"))
-             #t)))))
+               (("shrext_cmds") "shrext")))))))
     (inputs
       (list glib popt libxml2 zlib))
     (native-inputs

Reply via email to