SHA256
1
0
forked from pool/zmusic

Accepting request 1138814 from home:dirkmueller:Factory

- update to 1.1.12:
  * fix crash when FluidSynth soundfont cannot be loaded
  * fix velocities and volume on MUS input
  * updated embedded libraries to new versions
- drop 0001-Add-missing-standard-library-includes-fix-build-with.patch
  (upstream)

OBS-URL: https://build.opensuse.org/request/show/1138814
OBS-URL: https://build.opensuse.org/package/show/games/zmusic?expand=0&rev=20
This commit is contained in:
Jan Engelhardt 2024-01-15 11:33:57 +00:00 committed by Git OBS Bridge
parent 6315bae9fb
commit 6d81519e7e
5 changed files with 15 additions and 206 deletions

View File

@ -1,200 +0,0 @@
From 7695852856d2d841308fb6375ac2f7ec26e29eea Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Sat, 4 Feb 2023 20:16:24 +0000
Subject: [PATCH] Add missing standard library includes (fix build with GCC 13)
GCC 13 (as usual for new compiler releases) shuffles around some
internal includes and so <cstdint> etc is no longer transitively included.
See https://www.gnu.org/software/gcc/gcc-13/porting_to.html.
Bug: https://bugs.gentoo.org/892814
---
source/mididevices/music_adlmidi_mididevice.cpp | 1 +
source/mididevices/music_fluidsynth_mididevice.cpp | 1 +
source/mididevices/music_opl_mididevice.cpp | 3 ++-
source/mididevices/music_opnmidi_mididevice.cpp | 1 +
source/mididevices/music_timidity_mididevice.cpp | 1 +
source/mididevices/music_timiditypp_mididevice.cpp | 3 ++-
source/mididevices/music_wavewriter_mididevice.cpp | 1 +
source/mididevices/music_wildmidi_mididevice.cpp | 3 ++-
source/musicformats/music_midi.cpp | 3 ++-
source/streamsources/music_gme.cpp | 4 +++-
source/streamsources/music_opl.cpp | 2 ++
source/zmusic/fileio.h | 1 +
12 files changed, 19 insertions(+), 5 deletions(-)
Index: source/mididevices/music_adlmidi_mididevice.cpp
===================================================================
--- source/mididevices/music_adlmidi_mididevice.cpp.orig
+++ source/mididevices/music_adlmidi_mididevice.cpp
@@ -34,6 +34,7 @@
// HEADER FILES ------------------------------------------------------------
+#include <stdexcept>
#include <stdlib.h>
#include "zmusic/zmusic_internal.h"
Index: source/mididevices/music_fluidsynth_mididevice.cpp
===================================================================
--- source/mididevices/music_fluidsynth_mididevice.cpp.orig
+++ source/mididevices/music_fluidsynth_mididevice.cpp
@@ -35,6 +35,7 @@
// HEADER FILES ------------------------------------------------------------
#include <mutex>
+#include <stdexcept>
#include <stdio.h>
#include <stdlib.h>
#include "zmusic/zmusic_internal.h"
Index: source/mididevices/music_opl_mididevice.cpp
===================================================================
--- source/mididevices/music_opl_mididevice.cpp.orig
+++ source/mididevices/music_opl_mididevice.cpp
@@ -35,6 +35,7 @@
// HEADER FILES ------------------------------------------------------------
+#include <stdexcept>
#include "zmusic/zmusic_internal.h"
#include "mididevice.h"
#include "zmusic/mus2midi.h"
@@ -333,4 +334,4 @@ MIDIDevice* CreateOplMIDIDevice(const ch
{
throw std::runtime_error("OPL device not supported in this configuration");
}
-#endif
\ No newline at end of file
+#endif
Index: source/mididevices/music_opnmidi_mididevice.cpp
===================================================================
--- source/mididevices/music_opnmidi_mididevice.cpp.orig
+++ source/mididevices/music_opnmidi_mididevice.cpp
@@ -34,6 +34,7 @@
// HEADER FILES ------------------------------------------------------------
+#include <stdexcept>
#include "mididevice.h"
#include "zmusic/zmusic_internal.h"
Index: source/mididevices/music_timidity_mididevice.cpp
===================================================================
--- source/mididevices/music_timidity_mididevice.cpp.orig
+++ source/mididevices/music_timidity_mididevice.cpp
@@ -34,6 +34,7 @@
// HEADER FILES ------------------------------------------------------------
+#include <stdexcept>
#include <stdlib.h>
#include "mididevice.h"
#include "zmusic/zmusic_internal.h"
Index: source/mididevices/music_timiditypp_mididevice.cpp
===================================================================
--- source/mididevices/music_timiditypp_mididevice.cpp.orig
+++ source/mididevices/music_timiditypp_mididevice.cpp
@@ -32,6 +32,7 @@
**
*/
+#include <stdexcept>
#include "mididevice.h"
#include "zmusic/zmusic_internal.h"
@@ -239,4 +240,4 @@ MIDIDevice* CreateTimidityPPMIDIDevice(c
{
throw std::runtime_error("Timidity++ device not supported in this configuration");
}
-#endif
\ No newline at end of file
+#endif
Index: source/mididevices/music_wavewriter_mididevice.cpp
===================================================================
--- source/mididevices/music_wavewriter_mididevice.cpp.orig
+++ source/mididevices/music_wavewriter_mididevice.cpp
@@ -38,6 +38,7 @@
#include "mididevice.h"
#include "zmusic/m_swap.h"
#include "fileio.h"
+#include <stdexcept>
#include <errno.h>
// MACROS ------------------------------------------------------------------
Index: source/mididevices/music_wildmidi_mididevice.cpp
===================================================================
--- source/mididevices/music_wildmidi_mididevice.cpp.orig
+++ source/mididevices/music_wildmidi_mididevice.cpp
@@ -34,6 +34,7 @@
// HEADER FILES ------------------------------------------------------------
+#include <stdexcept>
#include "mididevice.h"
#include "zmusic/zmusic_internal.h"
@@ -278,4 +279,4 @@ MIDIDevice* CreateWildMIDIDevice(const c
{
throw std::runtime_error("WildMidi device not supported in this configuration");
}
-#endif
\ No newline at end of file
+#endif
Index: source/musicformats/music_midi.cpp
===================================================================
--- source/musicformats/music_midi.cpp.orig
+++ source/musicformats/music_midi.cpp
@@ -34,8 +34,9 @@
// HEADER FILES ------------------------------------------------------------
-#include <string>
#include <algorithm>
+#include <stdexcept>
+#include <string>
#include <assert.h>
#include "zmusic/zmusic_internal.h"
#include "zmusic/musinfo.h"
Index: source/streamsources/music_gme.cpp
===================================================================
--- source/streamsources/music_gme.cpp.orig
+++ source/streamsources/music_gme.cpp
@@ -38,9 +38,11 @@
//#define GME_DLL
#include <algorithm>
+#include <mutex>
+#include <stdexcept>
+
#include "streamsource.h"
#include <gme/gme.h>
-#include <mutex>
#include "fileio.h"
// MACROS ------------------------------------------------------------------
Index: source/streamsources/music_opl.cpp
===================================================================
--- source/streamsources/music_opl.cpp.orig
+++ source/streamsources/music_opl.cpp
@@ -35,6 +35,8 @@
#ifdef HAVE_OPL
+#include <stdexcept>
+
#include "streamsource.h"
#include "oplsynth/opl.h"
#include "oplsynth/opl_mus_player.h"
Index: source/zmusic/fileio.h
===================================================================
--- source/zmusic/fileio.h.orig
+++ source/zmusic/fileio.h
@@ -25,6 +25,7 @@
#pragma once
#include <stdio.h>
#include <string.h>
+#include <cstdint>
#include <vector>
#include <string>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:623c3d7edfcdbe1ba4e7a9dc9a4d834fb92a228881621247855ecd57447631dd
size 2227621

3
1.1.12.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:da818594b395aa9174561a36362332b0ab8e7906d2e556ec47669326e67613d4
size 2275316

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jan 15 10:54:40 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.1.12:
* fix crash when FluidSynth soundfont cannot be loaded
* fix velocities and volume on MUS input
* updated embedded libraries to new versions
- drop 0001-Add-missing-standard-library-includes-fix-build-with.patch
(upstream)
-------------------------------------------------------------------
Mon Mar 20 21:21:03 UTC 2023 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package zmusic
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: zmusic
Version: 1.1.11
Version: 1.1.12
Release: 0
Summary: ZDoom component library for music handling
License: GPL-3.0-only
@ -29,7 +29,6 @@ Source: https://github.com/ZDoom/ZMusic/archive/%version.tar.gz
Patch1: system-fluidsynth.patch
Patch2: system-gme.patch
Patch3: dumb-dumb.patch
Patch4: 0001-Add-missing-standard-library-includes-fix-build-with.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkg-config