[packages/guitarix] fix build with gcc >= 13
atler
atler at pld-linux.org
Wed Jul 5 03:17:27 CEST 2023
commit b7c504c713a27033d15b6c0194d4537dfba74aeb
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Jul 5 01:19:09 2023 +0200
fix build with gcc >= 13
gcc13.patch | 11 +++++++++++
guitarix.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/guitarix.spec b/guitarix.spec
index f3ad0a6..3e90bcb 100644
--- a/guitarix.spec
+++ b/guitarix.spec
@@ -7,6 +7,7 @@ Group: Applications/Multimedia
Source0: http://downloads.sourceforge.net/guitarix/%{name}2-%{version}.tar.xz
# Source0-md5: d1757e08ddc54c4ec07defea6a30ac5b
Patch0: zita-resampler-1.10.patch
+Patch1: gcc13.patch
URL: https://guitarix.org/
BuildRequires: avahi-gobject-devel
BuildRequires: bluez-libs-devel
@@ -54,6 +55,7 @@ use the feedback and feedforward sliders.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
CC="%{__cc}" \
diff --git a/gcc13.patch b/gcc13.patch
new file mode 100644
index 0000000..f4f7c5c
--- /dev/null
+++ b/gcc13.patch
@@ -0,0 +1,11 @@
+diff -ur guitarix-0.44.1.orig/src/LV2/DSP/gx_common.h guitarix-0.44.1/src/LV2/DSP/gx_common.h
+--- guitarix-0.44.1.orig/src/LV2/DSP/gx_common.h 2022-05-02 20:38:03.000000000 +0200
++++ guitarix-0.44.1/src/LV2/DSP/gx_common.h 2023-07-05 00:27:25.237218722 +0200
+@@ -23,6 +23,7 @@
+ #define SRC_HEADERS_GX_COMMON_H_
+
+
++#include <cstdint>
+ #include <cstdlib>
+ #include <cmath>
+ #include <iostream>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/guitarix.git/commitdiff/d370ea15ee527b35b47f66a3e1ef8b4ac1ca9457
More information about the pld-cvs-commit
mailing list