commit:     afd95a80a9a520e52733cde4c682ac1bd1ecf852
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Sun Jul 27 15:02:38 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 28 16:26:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afd95a80

media-sound/mixxx: add missing include

Add missing cstdlib with libcxx-21

Closes: https://bugs.gentoo.org/960756
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43193
Closes: https://github.com/gentoo/gentoo/pull/43193
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../mixxx/files/mixxx-2.5.2-libcxx21_include.patch | 35 ++++++++++++++++++++++
 media-sound/mixxx/mixxx-2.5.2.ebuild               |  3 ++
 2 files changed, 38 insertions(+)

diff --git a/media-sound/mixxx/files/mixxx-2.5.2-libcxx21_include.patch 
b/media-sound/mixxx/files/mixxx-2.5.2-libcxx21_include.patch
new file mode 100644
index 000000000000..8318fe20d44f
--- /dev/null
+++ b/media-sound/mixxx/files/mixxx-2.5.2-libcxx21_include.patch
@@ -0,0 +1,35 @@
+https://github.com/mixxxdj/mixxx/pull/15132.patch
+From 9f9a7496f90fe7d1f153d2d62af4613b6d2f1d74 Mon Sep 17 00:00:00 2001
+From: Nicolas PARLANT <[email protected]>
+Date: Sun, 27 Jul 2025 16:06:26 +0200
+Subject: [PATCH] missing include cstdlib
+
+Error with libcxx-21
+
+>In file included from ./mixxx-2.5.2/lib/reverb/Reverb.cc:46:
+>In file included from ./mixxx-2.5.2/lib/reverb/Reverb.h:54:
+>./mixxx-2.5.2/lib/reverb/dsp/Delay.h:51:14: error: use of undeclared 
identifier 'free'
+>   51 |                 ~Delay() { free (data); }
+>      |                            ^~~~
+>./mixxx-2.5.2/work/mixxx-2.5.2/lib/reverb/dsp/Delay.h:57:25: error: use of 
undeclared identifier 'calloc'
+>   57 |                                 data = (sample_t *) calloc (sizeof 
(sample_t), size);
+>      |                                                     ^~~~~~
+>2 errors generated.
+
+Signed-off-by: Nicolas PARLANT <[email protected]>
+---
+ lib/reverb/dsp/Delay.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/reverb/dsp/Delay.h b/lib/reverb/dsp/Delay.h
+index d530fee58a1c..a560b7552446 100644
+--- a/lib/reverb/dsp/Delay.h
++++ b/lib/reverb/dsp/Delay.h
+@@ -32,6 +32,7 @@
+ #ifndef _DSP_DELAY_H_
+ #define _DSP_DELAY_H_
+ 
++#include <cstdlib> // for free and calloc
+ #include <cstring> // for memset
+ 
+ #include "util.h"

diff --git a/media-sound/mixxx/mixxx-2.5.2.ebuild 
b/media-sound/mixxx/mixxx-2.5.2.ebuild
index 5f426916db7f..9a59b8c485d4 100644
--- a/media-sound/mixxx/mixxx-2.5.2.ebuild
+++ b/media-sound/mixxx/mixxx-2.5.2.ebuild
@@ -101,6 +101,9 @@ PATCHES=(
        "${FILESDIR}"/${PN}-2.5.2-x11_opt.patch
        # Fix colum header text asignment. From upstream.
        "${FILESDIR}"/${P}-fix_col_headers.patch
+       # Fix build with libcxx-21
+       # https://github.com/mixxxdj/mixxx/pull/15132.patch
+       "${FILESDIR}"/${P}-libcxx21_include.patch
 )
 
 CMAKE_SKIP_TESTS=(

Reply via email to