pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/shells/zsh Fix compile on NetBSD with terminfo, pkg/42...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/91ba0178c6af
branches:  trunk
changeset: 571035:91ba0178c6af
user:      roy <roy%pkgsrc.org@localhost>
date:      Sun Feb 07 09:53:20 2010 +0000

description:
Fix compile on NetBSD with terminfo, pkg/42762.

diffstat:

 shells/zsh/Makefile.common  |  24 +++++++++++----------
 shells/zsh/distinfo         |   4 ++-
 shells/zsh/patches/patch-ba |  49 +++++++++++++++++++++++++++++++++++++++++++++
 shells/zsh/patches/patch-bb |  25 ++++++++++++++++++++++
 4 files changed, 90 insertions(+), 12 deletions(-)

diffs (143 lines):

diff -r 040328e2a937 -r 91ba0178c6af shells/zsh/Makefile.common
--- a/shells/zsh/Makefile.common        Sun Feb 07 09:46:13 2010 +0000
+++ b/shells/zsh/Makefile.common        Sun Feb 07 09:53:20 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.55 2010/02/07 07:22:08 obache Exp $
+# $NetBSD: Makefile.common,v 1.56 2010/02/07 09:53:20 roy Exp $
 
 DISTNAME=      zsh-${ZSH_VERSION}
 CATEGORIES=    shells
@@ -38,15 +38,15 @@
 
 ################################################################################
 
-_ZSH_OPSYS.OpenBSD=            ldflags tcsetpgrp   -
-_ZSH_OPSYS.Linux=              ldflags tcsetpgrp   terminfo
-_ZSH_OPSYS.IRIX=               ldflags tcsetpgrp   -
-_ZSH_OPSYS.Interix=            ldflags notcsetpgrp -
-_ZSH_OPSYS.DragonFly=          ldflags tcsetpgrp   terminfo
-_ZSH_OPSYS.FreeBSD=            ldflags tcsetpgrp   terminfo
-_ZSH_OPSYS.SunOS=              -       tcsetpgrp   -
+_ZSH_OPSYS.OpenBSD=            ldflags tcsetpgrp
+_ZSH_OPSYS.Linux=              ldflags tcsetpgrp
+_ZSH_OPSYS.IRIX=               ldflags tcsetpgrp
+_ZSH_OPSYS.Interix=            ldflags notcsetpgrp
+_ZSH_OPSYS.DragonFly=          ldflags tcsetpgrp
+_ZSH_OPSYS.FreeBSD=            ldflags tcsetpgrp
+_ZSH_OPSYS.SunOS=              -       tcsetpgrp
 
-_ZSH_OPSYS.${OPSYS}?=          ldflags tcsetpgrp   -
+_ZSH_OPSYS.${OPSYS}?=          ldflags tcsetpgrp
 
 ################################################################################
 
@@ -74,8 +74,10 @@
 _ZSH_OPSYS_VARS.tcsetpgrp=     --with-tcsetpgrp
 _ZSH_OPSYS_VARS.notcsetpgrp=   --without-tcsetpgrp
 
-### terminfo (ncurses)
-.if !empty(_ZSH_OPSYS.${OPSYS}:Mterminfo)
+### terminfo
+CHECK_BUILTIN.terminfo=        yes
+.include "../../mk/terminfo.builtin.mk"
+.if !empty(IS_BUILTIN.terminfo:M[Yy][Ee][Ss])
 PLIST.terminfo=        yes
 .endif
 
diff -r 040328e2a937 -r 91ba0178c6af shells/zsh/distinfo
--- a/shells/zsh/distinfo       Sun Feb 07 09:46:13 2010 +0000
+++ b/shells/zsh/distinfo       Sun Feb 07 09:53:20 2010 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.28 2008/12/21 16:53:31 uebayasi Exp $
+$NetBSD: distinfo,v 1.29 2010/02/07 09:53:20 roy Exp $
 
 SHA1 (zsh-4.2.7.tar.bz2) = 64c598cd48b78dff9d29341ea0cd904e7aa49541
 RMD160 (zsh-4.2.7.tar.bz2) = 454339205c78393cbb9460aa10f37fa341a40b59
@@ -6,3 +6,5 @@
 SHA1 (patch-ab) = b446fd8138f18113c17cee43cd11a5f458b1db40
 SHA1 (patch-ac) = c80876a222ff9584bc53ec807ee2a8bc2b003cd1
 SHA1 (patch-ae) = ac77147eebfebcd042f93a71bb13f9c0be8de211
+SHA1 (patch-ba) = 7b7342edd7aea377eaa967afa145c008a336dbcf
+SHA1 (patch-bb) = 74acb2a597fcdefbb26f79ab62915a5a75663b9c
diff -r 040328e2a937 -r 91ba0178c6af shells/zsh/patches/patch-ba
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/zsh/patches/patch-ba       Sun Feb 07 09:53:20 2010 +0000
@@ -0,0 +1,49 @@
+termcap does not require curses.
+
+--- Src/Modules/termcap.c.orig 2010-02-07 08:52:07.000000000 +0000
++++ Src/Modules/termcap.c      2010-02-07 08:54:03.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(HAVE_CURSES_H) && defined(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"
+@@ -51,19 +39,7 @@
+ static char termcap_nam[] = "termcap";
+ 
+ #ifdef HAVE_TGETENT
+-# ifdef USES_TERM_H
+-#  ifdef HAVE_TERMIO_H
+-#   include <termio.h>
+-#  endif
+-#  ifdef TERM_H_NEEDS_CURSES_H
+-#   include <curses.h>
+-#  endif
+-#  include <term.h>
+-# else
+-#  ifdef USES_TERMCAP_H
+-#   include <termcap.h>
+-#  endif
+-# endif
++# include <termcap.h>
+ 
+ static Param termcap_pm;
+ 
diff -r 040328e2a937 -r 91ba0178c6af shells/zsh/patches/patch-bb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/zsh/patches/patch-bb       Sun Feb 07 09:53:20 2010 +0000
@@ -0,0 +1,25 @@
+terminfo does not require curses.
+
+--- Src/Modules/terminfo.c.orig        2010-02-07 08:54:08.000000000 +0000
++++ Src/Modules/terminfo.c     2010-02-07 08:55:11.000000000 +0000
+@@ -30,7 +30,7 @@
+ #define USES_TERM_H 1
+ #include "terminfo.mdh"
+ 
+-#if defined(HAVE_TIGETFLAG) && defined(HAVE_CURSES_H)
++#if defined(HAVE_TIGETFLAG) && defined(HAVE_TERM_H)
+ # define USE_TERMINFO_MODULE 1
+ #else
+ # undef USE_TERMINFO_MODULE
+@@ -50,10 +50,7 @@
+ #  undef offsetof
+ # endif
+ 
+-# include <curses.h>
+-# ifdef HAVE_TERM_H
+-#  include <term.h>
+-# endif
++#include <term.h>
+ 
+ static Param terminfo_pm;
+ 



Home | Main Index | Thread Index | Old Index