From 3d8e05b39ec8743cfeb18e585d5a92b947f92f30 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Feb 17 2023 19:44:54 +0000 Subject: Backport upstream patch to fix C99 compatibility issue Related to: --- diff --git a/hydrogen-c99.patch b/hydrogen-c99.patch new file mode 100644 index 0000000..0c3aeca --- /dev/null +++ b/hydrogen-c99.patch @@ -0,0 +1,20 @@ +commit f1aef07dbac734640dae28e99512e5e3f4b9a957 +Author: psykose +Date: Sun Feb 5 13:01:50 2023 +0000 + + rtclock: fix implicit sleep declaration + + otherwise clang16 fails to compile this code, and detects this as false + +diff --git a/cmake/rtclock/rtclock.c b/cmake/rtclock/rtclock.c +index 851e78dc5ee34c19..439be41f94cd32eb 100644 +--- a/cmake/rtclock/rtclock.c ++++ b/cmake/rtclock/rtclock.c +@@ -1,6 +1,7 @@ + #include + #include + #include ++#include + int main( int argc, char** argv, char** env ) { + uint64_t dt; + struct timespec t0,t1; diff --git a/hydrogen.spec b/hydrogen.spec index 1eeb6b6..078305f 100644 --- a/hydrogen.spec +++ b/hydrogen.spec @@ -1,7 +1,7 @@ Summary: Advanced drum machine for GNU/Linux Name: hydrogen Version: 1.1.1 -Release: 4%{?dist} +Release: 5%{?dist} URL: http://www.hydrogen-music.org/ Source0: https://github.com/hydrogen-music/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz License: GPLv2+ @@ -9,6 +9,7 @@ License: GPLv2+ # Workaround appdata validator version ordering bug # See https://github.com/hughsie/appstream-glib/issues/234 Patch0: %{name}-appdata-validation.patch +Patch1: hydrogen-c99.patch BuildRequires: alsa-lib-devel BuildRequires: desktop-file-utils @@ -99,6 +100,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml %{_includedir}/hydrogen/ %changelog +* Fri Feb 17 2023 Florian Weimer - 1.1.1-5 +- Backport upstream patch to fix C99 compatibility issue + * Thu Jan 19 2023 Fedora Release Engineering - 1.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild