Hello community, here is the log from the commit of package libadlmidi for openSUSE:Factory checked in at 2020-06-10 00:52:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libadlmidi (Old) and /work/SRC/openSUSE:Factory/.libadlmidi.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libadlmidi" Wed Jun 10 00:52:25 2020 rev:2 rq:812963 version:1.4.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libadlmidi/libadlmidi.changes 2019-03-26 15:42:36.412237601 +0100 +++ /work/SRC/openSUSE:Factory/.libadlmidi.new.3606/libadlmidi.changes 2020-06-10 00:52:33.427593721 +0200 @@ -1,0 +2,6 @@ +Tue Jun 9 13:42:12 UTC 2020 - Guillaume GARDET <guillaume.gar...@opensuse.org> + +- Fix build on Arm with upstream patch: + * libadlmidi-fix-arm.patch + +------------------------------------------------------------------- New: ---- libadlmidi-fix-arm.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libadlmidi.spec ++++++ --- /var/tmp/diff_new_pack.GUAr2J/_old 2020-06-10 00:52:34.343596091 +0200 +++ /var/tmp/diff_new_pack.GUAr2J/_new 2020-06-10 00:52:34.347596102 +0200 @@ -1,6 +1,7 @@ # # spec file for package libadlmidi # +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2019, Martin Hauke <mar...@gmx.de> # # All modifications and additions to the file contributed by third parties @@ -12,7 +13,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -21,10 +22,12 @@ Version: 1.4.0.1 Release: 0 Summary: A software MIDI synthesizer library with OPL3 emulation -License: GPL-3.0-only AND LGPL-3.0 +License: GPL-3.0-only AND LGPL-3.0-only Group: Development/Languages/C and C++ URL: https://github.com/Wohlstand/libADLMIDI Source: https://github.com/Wohlstand/libADLMIDI/archive/v%{version}-1.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM - https://github.com/Wohlstand/libADLMIDI/issues/229 +Patch1: libadlmidi-fix-arm.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -62,6 +65,7 @@ %prep %setup -q -n libADLMIDI-%{version}-1 +%patch1 -p1 %build %cmake \ ++++++ libadlmidi-fix-arm.patch ++++++ >From bbf12fed4d9cd6381a605d2655b6ac587a2cb5ef Mon Sep 17 00:00:00 2001 From: Wohlstand <ad...@wohlnet.ru> Date: Tue, 9 Jun 2020 16:11:48 +0300 Subject: [PATCH] Attempt to fix a build on ARM #229 --- utils/adlmidi-2/puzzlegame.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/adlmidi-2/puzzlegame.cc b/utils/adlmidi-2/puzzlegame.cc index e7b9890..6a0c982 100644 --- a/utils/adlmidi-2/puzzlegame.cc +++ b/utils/adlmidi-2/puzzlegame.cc @@ -310,7 +310,8 @@ int ADLMIDI_PuzzleGame::TetrisAIengine::AI_Run(const decltype(Area)&in_area, con // Find out the extents of this piece, and how many // cells of the piece contribute into full (completed) rows. - char full[4] = { -1, -1, -1, -1}; + const char nfull = static_cast<char>(-1); + char full[4] = {nfull, nfull, nfull, nfull}; int miny = n.y + 9, maxy = n.y - 9, minx = n.x + 9, maxx = n.x - 9, num_eroded = 0; (void)(n > [&](int x, int y) -> bool {