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 0a3e08661a gnu: resample: Fix build.
0a3e08661a is described below

commit 0a3e08661a610e162551da3dcee0f5815247289c
Author: Iakob Davitis Dze Gogichaishvili <[email protected]>
AuthorDate: Wed Mar 4 01:31:31 2026 +0400

    gnu: resample: Fix build.
    
    * gnu/packages/audio.scm (resample)[source]<origin>: Add snippet
    which fixes a missing include for <stdlib.h>.
    
    Fixes: guix/guix#6546
    
    Change-Id: I71525f090379eeaaa3e528ed399f83d98becba99
    Signed-off-by: Iakob Davitis Dze Gogichaishvili 
<[email protected]>
    Signed-off-by: Sughosha <[email protected]>
---
 gnu/packages/audio.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 0896b18d42..7e2508cac4 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -4904,7 +4904,18 @@ general purpose DVD/HD-DVD/Blu-ray disc dumper.")
                                   version
                                   ".tar.gz"))
               (sha256 (base32
-                       
"074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))))
+                       "074zj8ydp05yy1hjcglfv3hkvj4cm50f9nralka1992pm6yf8yvy"))
+              (snippet
+               #~(begin
+                   (use-modules (ice-9 textual-ports))
+                   (let* ((sndlibextra.c "src/sndlibextra.c")
+                          (sndlibextra.c-original
+                           (call-with-input-file sndlibextra.c
+                             get-string-all)))
+                     (call-with-output-file sndlibextra.c
+                       (lambda (port)
+                         (display "#include <stdlib.h>\n" port)
+                         (display sndlibextra.c-original port))))))))
     (build-system gnu-build-system)
     (native-inputs
      (list autoconf automake pkg-config libtool))

Reply via email to