Sun Feb 7 10:07:10 2010 UTC ()
Add patches to fix building on NetBSD with terminfo, fixes PR pkg/42761.


(roy)
diff -r1.14 -r1.15 pkgsrc/shells/zsh-current/distinfo
diff -r0 -r1.1 pkgsrc/shells/zsh-current/patches/patch-ba
diff -r0 -r1.1 pkgsrc/shells/zsh-current/patches/patch-bb

cvs diff -r1.14 -r1.15 pkgsrc/shells/zsh-current/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/shells/zsh-current/Attic/distinfo 2008/12/22 02:18:51 1.14
+++ pkgsrc/shells/zsh-current/Attic/distinfo 2010/02/07 10:07:10 1.15
@@ -1,10 +1,12 @@ @@ -1,10 +1,12 @@
1$NetBSD: distinfo,v 1.14 2008/12/22 02:18:51 uebayasi Exp $ 1$NetBSD: distinfo,v 1.15 2010/02/07 10:07:10 roy Exp $
2 2
3SHA1 (zsh-4.3.9.tar.bz2) = 7c80e1ad6b311ee5877172a1a7e0161a9a60da70 3SHA1 (zsh-4.3.9.tar.bz2) = 7c80e1ad6b311ee5877172a1a7e0161a9a60da70
4RMD160 (zsh-4.3.9.tar.bz2) = 2c88347fa357e3624f000721963749c6ccb4e129 4RMD160 (zsh-4.3.9.tar.bz2) = 2c88347fa357e3624f000721963749c6ccb4e129
5Size (zsh-4.3.9.tar.bz2) = 2659602 bytes 5Size (zsh-4.3.9.tar.bz2) = 2659602 bytes
6SHA1 (patch-ab) = 4fc9ef0aa307a794fddf018a7888ac8b0073a13a 6SHA1 (patch-ab) = 4fc9ef0aa307a794fddf018a7888ac8b0073a13a
7SHA1 (patch-ac) = b586fcb6ab7d831a3490077f84fe170969905c26 7SHA1 (patch-ac) = b586fcb6ab7d831a3490077f84fe170969905c26
8SHA1 (patch-af) = c78fa8e786d3ae2e3b15a9587f2a7b6e64891778 8SHA1 (patch-af) = c78fa8e786d3ae2e3b15a9587f2a7b6e64891778
9SHA1 (patch-ag) = 2fe6b7f0a76ca7e5d341fda408f3ab5443d09cbc 9SHA1 (patch-ag) = 2fe6b7f0a76ca7e5d341fda408f3ab5443d09cbc
10SHA1 (patch-ah) = 561132abcd56df88d7ed3da4bca5f172ca341439 10SHA1 (patch-ah) = 561132abcd56df88d7ed3da4bca5f172ca341439
 11SHA1 (patch-ba) = 8b62a94af40b619c46f9da4b89bd678833600f7a
 12SHA1 (patch-bb) = 9638cb7f10a30dad7f0dd5d413aa9796a0ef07f7

File Added: pkgsrc/shells/zsh-current/patches/Attic/patch-ba
termcap does not require curses.

--- Src/Modules/termcap.c.orig	2010-02-07 08:23:33.000000000 +0000
+++ Src/Modules/termcap.c	2010-02-07 08:34:57.000000000 +0000
@@ -27,22 +27,10 @@
  *
  */
 
-/*
- * We need to include the zsh headers later to avoid clashes with
- * the definitions on some systems, however we need the configuration
- * file to decide whether we should avoid curses.h, which clashes
- * with several zsh constants on some systems (e.g. SunOS 4).
- */
 #include "../../config.h"
 
 #ifdef HAVE_TGETENT
-# if defined(ZSH_HAVE_CURSES_H) && defined(ZSH_HAVE_TERM_H)
-#  define USES_TERM_H 1
-# else
-#  ifdef HAVE_TERMCAP_H
-#   define USES_TERMCAP_H 1
-#  endif
-# endif
+# define USES_TERMCAP_H 1
 #endif
 
 #include "termcap.mdh"
@@ -50,19 +38,7 @@
 
 /**/
 #ifdef HAVE_TGETENT
-# ifdef USES_TERM_H
-#  ifdef HAVE_TERMIO_H
-#   include <termio.h>
-#  endif
-#  ifdef ZSH_HAVE_CURSES_H
-#   include "../zshcurses.h"
-#  endif
-#  include "../zshterm.h"
-# else
-#  ifdef USES_TERMCAP_H
-#   include <termcap.h>
-#  endif
-# endif
+# include <termcap.h>
 
 #ifndef HAVE_BOOLCODES
 static char *boolcodes[] = {

File Added: pkgsrc/shells/zsh-current/patches/Attic/patch-bb
terminfo does not require curses.

--- Src/Modules/terminfo.c.orig	2010-02-07 08:31:07.000000000 +0000
+++ Src/Modules/terminfo.c	2010-02-07 08:31:30.000000000 +0000
@@ -49,10 +49,6 @@
 #  undef offsetof
 # endif
 
-#ifdef ZSH_HAVE_CURSES_H
-# include "../zshcurses.h"
-#endif
-
 # ifdef ZSH_HAVE_TERM_H
 #  include "../zshterm.h"
 # endif