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 <vimproved@inventati.org>
Part-of: https://github.com/gentoo/gentoo/pull/43371
Closes: https://github.com/gentoo/gentoo/pull/43371
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Violet Purcell 2025-08-07 13:06:13 -04:00 committed by Sam James
parent d96426e827
commit f9bfbdd2bf
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,23 @@
From https://github.com/breakfastquay/rubberband/pull/126 Mon Sep 17 00:00:00 2001
From: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
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 <nicolas.parlant@parhuet.fr>
--- a/src/common/mathmisc.h
+++ b/src/common/mathmisc.h
@@ -26,6 +26,8 @@
#include "sysutils.h"
+#include <cstdlib>
+
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif // M_PI

View File

@ -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() {