Thu Mar 14 09:45:25 2019 UTC ()
zsh: add debug option, default off

This makes zsh much more stable on -current for me.


(wiz)
diff -r1.2 -r1.3 pkgsrc/shells/zsh/options.mk

cvs diff -r1.2 -r1.3 pkgsrc/shells/zsh/options.mk (expand / switch to unified diff)

--- pkgsrc/shells/zsh/options.mk 2017/10/13 09:35:19 1.2
+++ pkgsrc/shells/zsh/options.mk 2019/03/14 09:45:25 1.3
@@ -1,20 +1,30 @@ @@ -1,20 +1,30 @@
1# $NetBSD: options.mk,v 1.2 2017/10/13 09:35:19 jperkin Exp $ 1# $NetBSD: options.mk,v 1.3 2019/03/14 09:45:25 wiz Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.zsh 3PKG_OPTIONS_VAR= PKG_OPTIONS.zsh
4PKG_SUPPORTED_OPTIONS= static 4PKG_SUPPORTED_OPTIONS= debug static
5 5
6.include "../../mk/bsd.options.mk" 6.include "../../mk/bsd.options.mk"
7 7
 8.if !empty(PKG_OPTIONS:Mdebug)
 9CONFIGURE_ARGS+= --enable-zsh-debug
 10CONFIGURE_ARGS+= --enable-zsh-hash-debug
 11CONFIGURE_ARGS+= --enable-zsh-heap-debug
 12CONFIGURE_ARGS+= --enable-zsh-mem
 13CONFIGURE_ARGS+= --enable-zsh-mem-debug
 14CONFIGURE_ARGS+= --enable-zsh-mem-warning
 15CONFIGURE_ARGS+= --enable-zsh-secure-free
 16.endif
 17
8PLIST_VARS+= dynamic 18PLIST_VARS+= dynamic
9.if !empty(PKG_OPTIONS:Mstatic) 19.if !empty(PKG_OPTIONS:Mstatic)
10CONFIGURE_ARGS+= --disable-dynamic 20CONFIGURE_ARGS+= --disable-dynamic
11. if ${OPSYS} != "Darwin" && ${OPSYS} != "SunOS" 21. if ${OPSYS} != "Darwin" && ${OPSYS} != "SunOS"
12LDFLAGS+= -static 22LDFLAGS+= -static
13. endif 23. endif
14.else 24.else
15PLIST.dynamic= yes 25PLIST.dynamic= yes
16.endif 26.endif
17PRINT_PLIST_AWK+= {if ($$0 ~ /\.so$$/) {$$0 = "$${PLIST.dynamic}" $$0;}} 27PRINT_PLIST_AWK+= {if ($$0 ~ /\.so$$/) {$$0 = "$${PLIST.dynamic}" $$0;}}
18PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/tcp/) {$$0 = "$${PLIST.dynamic}" $$0;}} 28PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/tcp/) {$$0 = "$${PLIST.dynamic}" $$0;}}
19PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/zf/) {$$0 = "$${PLIST.dynamic}" $$0;}} 29PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/zf/) {$$0 = "$${PLIST.dynamic}" $$0;}}
20PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/zsh-newuser/) {$$0 = "$${PLIST.dynamic}" $$0;}} 30PRINT_PLIST_AWK+= {if ($$0 ~ /functions\/zsh-newuser/) {$$0 = "$${PLIST.dynamic}" $$0;}}