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 34453b9700 gnu: zynaddsubfx: Fix build with gcc-14.
34453b9700 is described below
commit 34453b97005ff86355399df89c8827c57839d9c7
Author: Sughosha <[email protected]>
AuthorDate: Mon Aug 18 15:50:01 2025 +0530
gnu: zynaddsubfx: Fix build with gcc-14.
* gnu/packages/patches/zynaddsubfx-3.0.6-include-cstdint.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add the patch.
* gnu/packages/music.scm (zynaddsubfx)[source]: Add it.
[home-page]: Update URL.
Change-Id: I7a90ee849da029bc159dbbaad1d8aae89f503fbe
Signed-off-by: Andreas Enge <[email protected]>
---
gnu/local.mk | 3 ++-
gnu/packages/music.scm | 6 ++++--
.../zynaddsubfx-3.0.6-include-cstdint.patch | 24 ++++++++++++++++++++++
3 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 86c7da1d51..4b15534a11 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2538,7 +2538,8 @@ dist_patch_DATA =
\
%D%/packages/patches/zig-0.14-use-system-paths.patch \
%D%/packages/patches/zsh-egrep-failing-test.patch \
%D%/packages/patches/zuo-bin-sh.patch \
- %D%/packages/patches/zxing-cpp-1.2.0-gcc-14.patch
+ %D%/packages/patches/zxing-cpp-1.2.0-gcc-14.patch \
+ %D%/packages/patches/zynaddsubfx-3.0.6-include-cstdint.patch
MISC_DISTRO_FILES = \
%D%/packages/ld-wrapper.in
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 982285299b..d72103d52c 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -3471,7 +3471,9 @@ instrument or MIDI file player.")
version "/zynaddsubfx-" version ".tar.bz2"))
(sha256
(base32
- "1bkirvcg0lz1i7ypnz3dyh218yhrqpnijxs8n3wlgwbcixvn1lfb"))))
+ "1bkirvcg0lz1i7ypnz3dyh218yhrqpnijxs8n3wlgwbcixvn1lfb"))
+ (patches
+ (search-patches "zynaddsubfx-3.0.6-include-cstdint.patch"))))
(build-system cmake-build-system)
(arguments
`(#:phases
@@ -3499,7 +3501,7 @@ instrument or MIDI file player.")
(native-inputs
(list pkg-config
ruby))
- (home-page "https://zynaddsubfx.sf.net/")
+ (home-page "https://zynaddsubfx.sourceforge.io/")
(synopsis "Software synthesizer")
(description
"ZynAddSubFX is a feature heavy realtime software synthesizer. It offers
diff --git a/gnu/packages/patches/zynaddsubfx-3.0.6-include-cstdint.patch
b/gnu/packages/patches/zynaddsubfx-3.0.6-include-cstdint.patch
new file mode 100644
index 0000000000..a1a0444aa8
--- /dev/null
+++ b/gnu/packages/patches/zynaddsubfx-3.0.6-include-cstdint.patch
@@ -0,0 +1,24 @@
+This patch fixes the compilation error: "uint8_t’ has not been declared".
+
+diff '--color=auto' -ruN zynaddsubfx-3.0.6-a/src/Misc/Bank.h
zynaddsubfx-3.0.6-b/src/Misc/Bank.h
+--- zynaddsubfx-3.0.6-a/src/Misc/Bank.h 1970-01-01 05:30:01.000000000
+0530
++++ zynaddsubfx-3.0.6-b/src/Misc/Bank.h 2025-08-18 14:16:56.928347291
+0530
+@@ -18,6 +18,7 @@
+ #include <vector>
+ #include "../globals.h"
+ #include "Config.h"
++#include <cstdint>
+
+ //entries in a bank
+ #define BANK_SIZE 160
+diff '--color=auto' -ruN zynaddsubfx-3.0.6-a/src/Nio/MidiIn.h
zynaddsubfx-3.0.6-b/src/Nio/MidiIn.h
+--- zynaddsubfx-3.0.6-a/src/Nio/MidiIn.h 1970-01-01 05:30:01.000000000
+0530
++++ zynaddsubfx-3.0.6-b/src/Nio/MidiIn.h 2025-08-18 14:04:01.993278682
+0530
+@@ -17,6 +17,7 @@
+ #define MIDI_IN_H
+
+ #include "Engine.h"
++#include <cstdint>
+
+ namespace zyn {
+