pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/tmux



Module Name:    pkgsrc
Committed By:   js
Date:           Sat Oct 24 22:49:12 UTC 2026

Modified Files:
        pkgsrc/misc/tmux: Makefile

Log Message:
Fix building misc/tmux on macOS

Fixes configure failing with:

configure:         macOS calloc(3) appears not to correctly
configure:         zero allocations in some circumstances;
configure:         to avoid this, configuring with
configure:         --enable-jemalloc is recommended. To build
configure:         without anyway, use --disable-jemalloc

Personally, I'm a bit skeptical of that claim and think this is not
calloc misbehaving, but memory corruption.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 pkgsrc/misc/tmux/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/tmux/Makefile
diff -u pkgsrc/misc/tmux/Makefile:1.71 pkgsrc/misc/tmux/Makefile:1.72
--- pkgsrc/misc/tmux/Makefile:1.71      Wed Oct 21 19:22:45 2026
+++ pkgsrc/misc/tmux/Makefile   Sat Oct 24 22:49:12 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2026/10/21 19:22:45 ktnb Exp $
+# $NetBSD: Makefile,v 1.72 2026/10/24 22:49:12 js Exp $
 
 DISTNAME=      tmux-3.8
 CATEGORIES=    misc
@@ -40,6 +40,16 @@ BUILDLINK_TRANSFORM+=        opt:-D_XPG4_2:-D_X
 CPPFLAGS+=     -D__DARWIN_VERS_1050=0
 .endif
 
+.if ${OPSYS} == "Darwin"
+# configure:      macOS calloc(3) appears not to correctly
+# configure:      zero allocations in some circumstances;
+# configure:      to avoid this, configuring with
+# configure:      --enable-jemalloc is recommended. To build
+# configure:      without anyway, use --disable-jemalloc
+CONFIGURE_ARGS+=       --enable-jemalloc
+.include "../../devel/jemalloc/buildlink3.mk"
+.endif
+
 .if ${OPSYS} == "Darwin" || ${OPSYS} == "QNX"
 CONFIGURE_ARGS+=       --enable-utf8proc
 .include "../../converters/utf8proc/buildlink3.mk"



Home | Main Index | Thread Index | Old Index