From f9bfbdd2bfda33643aeca034dd28b84acabeb9bc Mon Sep 17 00:00:00 2001 From: Violet Purcell Date: Thu, 7 Aug 2025 13:06:13 -0400 Subject: [PATCH] media-libs/rubberband: fix building w/ libc++ 21 libc++ 21 shuffled some internal includes around, so cstdlib now needs to be explicitly included here. Closes: https://bugs.gentoo.org/960754 Signed-off-by: Violet Purcell Part-of: https://github.com/gentoo/gentoo/pull/43371 Closes: https://github.com/gentoo/gentoo/pull/43371 Signed-off-by: Sam James --- .../rubberband-4.0.0-cstdlib-include.patch | 23 +++++++++++++++++++ .../rubberband/rubberband-4.0.0-r1.ebuild | 6 ++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 media-libs/rubberband/files/rubberband-4.0.0-cstdlib-include.patch diff --git a/media-libs/rubberband/files/rubberband-4.0.0-cstdlib-include.patch b/media-libs/rubberband/files/rubberband-4.0.0-cstdlib-include.patch new file mode 100644 index 000000000000..92d57da2d174 --- /dev/null +++ b/media-libs/rubberband/files/rubberband-4.0.0-cstdlib-include.patch @@ -0,0 +1,23 @@ +From https://github.com/breakfastquay/rubberband/pull/126 Mon Sep 17 00:00:00 2001 +From: Nicolas PARLANT +Date: Sun, 27 Jul 2025 15:53:17 +0200 +Subject: [PATCH] missing include cstdlib + +Fix an error with libcxx-21 + +>In file included from ../rubberband-4.0.0/src/common/mathmisc.cpp:24: +>../rubberband-4.0.0/src/common/mathmisc.h:58:1: +>error: unknown type name 'size_t'; did you mean 'std::size_t'? + +Signed-off-by: Nicolas PARLANT +--- a/src/common/mathmisc.h ++++ b/src/common/mathmisc.h +@@ -26,6 +26,8 @@ + + #include "sysutils.h" + ++#include ++ + #ifndef M_PI + #define M_PI 3.14159265358979323846 + #endif // M_PI diff --git a/media-libs/rubberband/rubberband-4.0.0-r1.ebuild b/media-libs/rubberband/rubberband-4.0.0-r1.ebuild index f2fdb557964f..bcfede8849ac 100644 --- a/media-libs/rubberband/rubberband-4.0.0-r1.ebuild +++ b/media-libs/rubberband/rubberband-4.0.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -33,6 +33,10 @@ BDEPEND=" test? ( dev-libs/boost[${MULTILIB_USEDEP}] ) " +PATCHES=( + "${FILESDIR}/rubberband-4.0.0-cstdlib-include.patch" +) + EMESON_BUILDTYPE=release src_prepare() {