From 5f9b9b9fea9c7c7c20faaa7e3f51aa378ea9b9c4 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 13 Jan 2024 16:54:04 +0000 Subject: [PATCH] seq66: fix build against `gcc-13` Without the chnage build fails on `master` as: In file included from os/daemonize.cpp:64: ../include/os/daemonize.hpp:58:8: error: 'uint32_t' does not name a type 58 | extern uint32_t daemonize | ^~~~~~~~ ../include/os/daemonize.hpp:36:1: note: 'uint32_t' is defined in header ''; did you forget to '#include '? 35 | #include "seq66_platform_macros.h" /* for detecting 32-bit builds */ +++ |+#include As upstream changes are quite invasive for backport I am only injecting missing headers. --- pkgs/applications/audio/seq66/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/audio/seq66/default.nix b/pkgs/applications/audio/seq66/default.nix index 0132b9679004..14fc4075e377 100644 --- a/pkgs/applications/audio/seq66/default.nix +++ b/pkgs/applications/audio/seq66/default.nix @@ -21,6 +21,10 @@ stdenv.mkDerivation rec { for d in libseq66/include libseq66/src libsessions/include libsessions/src seq_qt5/src seq_rtmidi/include seq_rtmidi/src Seqtool/src; do substituteInPlace "$d/Makefile.am" --replace '$(git_info)' '${version}' done + + # gcc-13 headers compatibilty. TODO: try to remove with next version + # update + sed -e '1i #include ' -i libseq66/src/os/daemonize.cpp ''; enableParallelBuilding = true;