~ruther/guix-local

0f56476c79189a79d9774b8c7ced28ee170ef195 — Andreas Enge 1 year, 2 months ago 0285d35
gnu: timidity++: Fix build with gcc-14.

* gnu/packages/audio.scm (timidity++)[arguments]<#:phases>{fix-config.h}:
New phase forcing the inclusion of standard C headers.

Change-Id: I7697630110db13fd1960e4313b93efbe41e54e3e
1 files changed, 6 insertions(+), 1 deletions(-)

M gnu/packages/audio.scm
M gnu/packages/audio.scm => gnu/packages/audio.scm +6 -1
@@ 1,7 1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015-2025 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2015, 2025 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016-2022, 2024 Efraim Flashner <efraim@flashner.co.il>


@@ 4583,6 4583,11 @@ for loudness normalisation.")
                            (assoc-ref %outputs "out") "/etc/timidity"))
       #:phases
       (modify-phases %standard-phases
         (add-after 'configure 'fix-config.h
           (lambda _
             (substitute* "config.h"
               (("/\\* #undef STDC_HEADERS \\*/")
                "#define STDC_HEADERS 1"))))
         (add-after 'install 'install-config
           (lambda _
             (let ((out (string-append (assoc-ref %outputs "out")