Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145261361
D26355.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26355.id.diff
View Options
Index: head/shells/zsh/Makefile
===================================================================
--- head/shells/zsh/Makefile
+++ head/shells/zsh/Makefile
@@ -88,6 +88,10 @@
CONFIGURE_ENV+= ac_cv_lib_iconv_libiconv=no
.endif
+.if ${ncurses_ARGS} == port
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-Src_Modules_curses__keys.awk
+.endif
+
post-patch:
# FreeBSD's clock_gettime(2) is in libc, not librt; see PR 167857
@${REINPLACE_CMD} -e '/LIBS/s|-lrt||' ${WRKSRC}/configure
Index: head/shells/zsh/files/extra-patch-Src_Modules_curses__keys.awk
===================================================================
--- head/shells/zsh/files/extra-patch-Src_Modules_curses__keys.awk
+++ head/shells/zsh/files/extra-patch-Src_Modules_curses__keys.awk
@@ -0,0 +1,18 @@
+https://sourceforge.net/p/zsh/code/ci/c6a85163619ed1cee89ab047a0d98108ed46828d/
+--- Src/Modules/curses_keys.awk.orig 2017-12-04 14:09:36 UTC
++++ Src/Modules/curses_keys.awk
+@@ -12,8 +12,13 @@ BEGIN {nkeydefs = 0}
+
+ END {
+ printf("static const struct zcurses_namenumberpair keypad_names[] = {\n")
+- for (i = 0; i < 0 + nkeydefs; i++)
++ for (i = 0; i < 0 + nkeydefs; i++) {
++ if (name[i] == "EVENT")
++ printf("#ifdef KEY_EVENT\n")
+ printf(" {\"%s\", KEY_%s},\n", name[i], name[i])
++ if (name[i] == "EVENT")
++ printf("#endif\n")
++ }
+ printf(" {NULL, 0}\n")
+ printf("};\n")
+ }
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 18, 5:47 PM (12 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28826890
Default Alt Text
D26355.id.diff (1 KB)
Attached To
Mode
D26355: shells/zsh: Fix build with devel/ncurses 6.2
Attached
Detach File
Event Timeline
Log In to Comment