summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSughosha <sughosha@disroot.org>2025-08-18 15:50:01 +0530
committerAndreas Enge <andreas@enge.fr>2025-08-18 19:01:39 +0200
commit34453b97005ff86355399df89c8827c57839d9c7 (patch)
tree68121fd7e9ac17c5dedf6a4874965fa4c44eef3b /gnu
parentc8ebd5d26f29bf3d8e7e1e8219c26252edffe709 (diff)
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 <andreas@enge.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/local.mk3
-rw-r--r--gnu/packages/music.scm6
-rw-r--r--gnu/packages/patches/zynaddsubfx-3.0.6-include-cstdint.patch24
3 files changed, 30 insertions, 3 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 86c7da1d51b..4b15534a114 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2538,7 +2538,8 @@ dist_patch_DATA = \
2538 %D%/packages/patches/zig-0.14-use-system-paths.patch \ 2538 %D%/packages/patches/zig-0.14-use-system-paths.patch \
2539 %D%/packages/patches/zsh-egrep-failing-test.patch \ 2539 %D%/packages/patches/zsh-egrep-failing-test.patch \
2540 %D%/packages/patches/zuo-bin-sh.patch \ 2540 %D%/packages/patches/zuo-bin-sh.patch \
2541 %D%/packages/patches/zxing-cpp-1.2.0-gcc-14.patch 2541 %D%/packages/patches/zxing-cpp-1.2.0-gcc-14.patch \
2542 %D%/packages/patches/zynaddsubfx-3.0.6-include-cstdint.patch
2542 2543
2543MISC_DISTRO_FILES = \ 2544MISC_DISTRO_FILES = \
2544 %D%/packages/ld-wrapper.in 2545 %D%/packages/ld-wrapper.in
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 982285299b3..d72103d52cb 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -3471,7 +3471,9 @@ instrument or MIDI file player.")
3471 version "/zynaddsubfx-" version ".tar.bz2")) 3471 version "/zynaddsubfx-" version ".tar.bz2"))
3472 (sha256 3472 (sha256
3473 (base32 3473 (base32
3474 "1bkirvcg0lz1i7ypnz3dyh218yhrqpnijxs8n3wlgwbcixvn1lfb")))) 3474 "1bkirvcg0lz1i7ypnz3dyh218yhrqpnijxs8n3wlgwbcixvn1lfb"))
3475 (patches
3476 (search-patches "zynaddsubfx-3.0.6-include-cstdint.patch"))))
3475 (build-system cmake-build-system) 3477 (build-system cmake-build-system)
3476 (arguments 3478 (arguments
3477 `(#:phases 3479 `(#:phases
@@ -3499,7 +3501,7 @@ instrument or MIDI file player.")
3499 (native-inputs 3501 (native-inputs
3500 (list pkg-config 3502 (list pkg-config
3501 ruby)) 3503 ruby))
3502 (home-page "https://zynaddsubfx.sf.net/") 3504 (home-page "https://zynaddsubfx.sourceforge.io/")
3503 (synopsis "Software synthesizer") 3505 (synopsis "Software synthesizer")
3504 (description 3506 (description
3505 "ZynAddSubFX is a feature heavy realtime software synthesizer. It offers 3507 "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 00000000000..a1a0444aa81
--- /dev/null
+++ b/gnu/packages/patches/zynaddsubfx-3.0.6-include-cstdint.patch
@@ -0,0 +1,24 @@
1This patch fixes the compilation error: "uint8_t’ has not been declared".
2
3diff '--color=auto' -ruN zynaddsubfx-3.0.6-a/src/Misc/Bank.h zynaddsubfx-3.0.6-b/src/Misc/Bank.h
4--- zynaddsubfx-3.0.6-a/src/Misc/Bank.h 1970-01-01 05:30:01.000000000 +0530
5+++ zynaddsubfx-3.0.6-b/src/Misc/Bank.h 2025-08-18 14:16:56.928347291 +0530
6@@ -18,6 +18,7 @@
7 #include <vector>
8 #include "../globals.h"
9 #include "Config.h"
10+#include <cstdint>
11
12 //entries in a bank
13 #define BANK_SIZE 160
14diff '--color=auto' -ruN zynaddsubfx-3.0.6-a/src/Nio/MidiIn.h zynaddsubfx-3.0.6-b/src/Nio/MidiIn.h
15--- zynaddsubfx-3.0.6-a/src/Nio/MidiIn.h 1970-01-01 05:30:01.000000000 +0530
16+++ zynaddsubfx-3.0.6-b/src/Nio/MidiIn.h 2025-08-18 14:04:01.993278682 +0530
17@@ -17,6 +17,7 @@
18 #define MIDI_IN_H
19
20 #include "Engine.h"
21+#include <cstdint>
22
23 namespace zyn {
24