commit:     a2f2a636d2acf27b210b6f56f227094212397114
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Mon Jun 19 06:48:55 2023 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Tue Jun 20 06:18:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2f2a636

media-sound/guitarix: fix build w/ gcc 13

Closes: https://bugs.gentoo.org/908810
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Closes: https://github.com/gentoo/gentoo/pull/31542
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 .../guitarix/files/guitarix-0.44.1-gcc-13.patch    | 31 ++++++++++++++++++++++
 media-sound/guitarix/guitarix-0.44.1.ebuild        |  1 +
 2 files changed, 32 insertions(+)

diff --git a/media-sound/guitarix/files/guitarix-0.44.1-gcc-13.patch 
b/media-sound/guitarix/files/guitarix-0.44.1-gcc-13.patch
new file mode 100644
index 000000000000..ac7324963c26
--- /dev/null
+++ b/media-sound/guitarix/files/guitarix-0.44.1-gcc-13.patch
@@ -0,0 +1,31 @@
+From b52736180b6966f24398f8a5ad179a58173473ec Mon Sep 17 00:00:00 2001
+From: Thomas W Rodgers <[email protected]>
+Date: Tue, 31 Jan 2023 12:00:58 -0800
+Subject: [PATCH] Do not depend on <cstdint> via transitive inclusion
+
+Guitarix fails to compile with the upcoming version of GCC (GCC13) due
+to a change that removes the transitive inclusion of <cstdint> from
+other standard headers.
+
+See also -
+  
https://lists.fedoraproject.org/archives/list/[email protected]/message/HLHKK7P5RB3BLQ5CV4STJGUYBFPC2VTB/
+---
+ src/LV2/DSP/gx_common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/LV2/DSP/gx_common.h b/src/LV2/DSP/gx_common.h
+index 71108442..132a6839 100644
+--- a/src/LV2/DSP/gx_common.h
++++ b/src/LV2/DSP/gx_common.h
+@@ -22,7 +22,7 @@
+ #ifndef SRC_HEADERS_GX_COMMON_H_
+ #define SRC_HEADERS_GX_COMMON_H_
+ 
+-
++#include <cstdint>
+ #include <cstdlib>
+ #include <cmath>
+ #include <iostream>
+-- 
+2.39.3
+

diff --git a/media-sound/guitarix/guitarix-0.44.1.ebuild 
b/media-sound/guitarix/guitarix-0.44.1.ebuild
index 5529fdc46ede..14885014cd74 100644
--- a/media-sound/guitarix/guitarix-0.44.1.ebuild
+++ b/media-sound/guitarix/guitarix-0.44.1.ebuild
@@ -65,6 +65,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-0.41.0-nostrip.patch
        "${FILESDIR}"/${PN}-0.41.0-py3.11.patch
        "${FILESDIR}"/${PN}-0.44.1-zita-resampler-1.10.patch
+       "${FILESDIR}"/${P}-gcc-13.patch
 )
 
 src_configure() {

Reply via email to