Re: [libcxx22] fallout

Rafael Sadowski <[email protected]>
Newsgroups gmane.os.openbsd.ports
Message-ID <[email protected]>
On Fri Aug 21, 2026 at 02:15:34PM +0200, Theo Buehler wrote:
> Here is the directly libcxx22-related breakage of my first bulk.
> 
> There may be a few more because mono got stuck with a weird error.  And
> I did not try to build the V8 monsters: codex, deno, chromiums and a few
> others because my machine isn't beefy enough. I don't think anything
> super important is directly affected or hiding behind those. So as far
> as ports are concerned, I think we can land libcxx22 whenever we want:
> 
> audio/ncmpcpp
> audio/rubberband
> cad/freecad
> databases/mongodb/44
> games/cataclysm-dda
> games/dxx-rebirth
> games/flightgear/base
> games/keeperrl
> mail/kopano/core
> misc/subsurface
> shells/fish/v3
> textproc/lttoolbox
> 
> There are basically two main classes of failures: comparison operators
> and locale things and a few odd ones like fish/v3 and 
> 
> audio/ncmpcpp
> /usr/include/c++/v1/__algorithm/sift_down.h:49:39: error: no matching function for call to object of type 'LocaleBasedSorting'
>    49 |   } else if ((__child + 1) < __len && __comp(__first[__child], __first[__child + 1])) {
>       |                                       ^~~~~~
> 
> audio/rubberband
> ../rubberband-4.0.0/src/common/mathmisc.h:58:1: error: unknown type name 'size_t'; did you mean 'std::size_t'?
>    58 | size_t roundUp(size_t value); // to nearest power of two
>       | ^~~~~~
>       | std::size_t
> 

OK?

diff --git a/audio/rubberband/patches/patch-src_common_mathmisc_h b/audio/rubberband/patches/patch-src_common_mathmisc_h
new file mode 100644
index 00000000000..5a88eaabba4
--- /dev/null
+++ b/audio/rubberband/patches/patch-src_common_mathmisc_h
@@ -0,0 +1,12 @@
+Index: src/common/mathmisc.h
+--- src/common/mathmisc.h.orig
++++ src/common/mathmisc.h
+@@ -26,6 +26,8 @@
+ 
+ #include "sysutils.h"
+ 
++#include <stddef.h>
++
+ #ifndef M_PI
+ #define M_PI 3.14159265358979323846
+ #endif // M_PI
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.