commit: 0e748c0d213d1fde1baa4cdbe01252c409d3341f Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Apr 15 00:45:02 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Apr 15 00:45:02 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e748c0d
media-sound/audacity: add partial GCC 13 fix Closes: https://bugs.gentoo.org/899764 Signed-off-by: Sam James <sam <AT> gentoo.org> media-sound/audacity/audacity-3.2.5.ebuild | 3 +++ .../audacity/files/audacity-3.2.5-gcc13.patch | 25 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/media-sound/audacity/audacity-3.2.5.ebuild b/media-sound/audacity/audacity-3.2.5.ebuild index 9b1ee5735698..0d2e26a3d311 100644 --- a/media-sound/audacity/audacity-3.2.5.ebuild +++ b/media-sound/audacity/audacity-3.2.5.ebuild @@ -122,6 +122,9 @@ PATCHES=( # For has_networking "${FILESDIR}/${PN}-3.2.3-remove-conan-threadpool.patch" "${FILESDIR}/${PN}-3.2.3-allow-finding-rapidjson-pkgconfig.patch" + + # GCC 13 + "${FILESDIR}/${PN}-3.2.5-gcc13.patch" ) src_prepare() { diff --git a/media-sound/audacity/files/audacity-3.2.5-gcc13.patch b/media-sound/audacity/files/audacity-3.2.5-gcc13.patch new file mode 100644 index 000000000000..265d73fd9e71 --- /dev/null +++ b/media-sound/audacity/files/audacity-3.2.5-gcc13.patch @@ -0,0 +1,25 @@ +https://github.com/audacity/audacity/issues/4489 +https://bugs.gentoo.org/899764 + +--- a/lib-src/libnyquist/nyquist/nyqstk/include/Stk.h ++++ b/lib-src/libnyquist/nyquist/nyqstk/include/Stk.h +@@ -47,6 +47,7 @@ + #endif + + #include <stddef.h> ++#include <stdint.h> + #include <string> + #include <iostream> + #include <sstream> +@@ -355,10 +356,6 @@ + typedef signed int SINT32; + typedef float FLOAT32; + typedef double FLOAT64; +-// added by RBD +-#ifdef __linux__ +-#define intptr_t long +-#endif + + // The default sampling rate. + const StkFloat SRATE = 44100.0; +