pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/news/tin fix a configure check which could easily get ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7f7d36a6ec9a
branches:  trunk
changeset: 572409:7f7d36a6ec9a
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Thu Feb 25 16:05:57 2010 +0000

description:
fix a configure check which could easily get into an endless loop,
and remove a pointless test for a __NCURSES_H symbol in the curses header,
now this can build against NetBSD's wide curses

diffstat:

 news/tin/distinfo         |   3 ++-
 news/tin/options.mk       |   8 +-------
 news/tin/patches/patch-am |  22 ++++++++++++++++++++++
 3 files changed, 25 insertions(+), 8 deletions(-)

diffs (62 lines):

diff -r 5554346fe0fe -r 7f7d36a6ec9a news/tin/distinfo
--- a/news/tin/distinfo Thu Feb 25 16:01:47 2010 +0000
+++ b/news/tin/distinfo Thu Feb 25 16:05:57 2010 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2009/10/22 22:01:25 wiz Exp $
+$NetBSD: distinfo,v 1.18 2010/02/25 16:05:57 drochner Exp $
 
 SHA1 (tin-1.9.4.tar.bz2) = e1f5ff2f04923137f43119b144f8a20e733eea23
 RMD160 (tin-1.9.4.tar.bz2) = 6a85e47ea06f2e86f2b8f688df137432ecb7c4e9
@@ -15,3 +15,4 @@
 SHA1 (patch-aj) = db18012097b3f7fbc1108c1ec530658dc2d3ff1d
 SHA1 (patch-ak) = 746c6edfef424e8ccfd93f945e51eea4b93f4f1c
 SHA1 (patch-al) = f17d06620d7556f90cd72de443ac27fe91604896
+SHA1 (patch-am) = 86c465ae0571076b32f9b682f3daf320126280b7
diff -r 5554346fe0fe -r 7f7d36a6ec9a news/tin/options.mk
--- a/news/tin/options.mk       Thu Feb 25 16:01:47 2010 +0000
+++ b/news/tin/options.mk       Thu Feb 25 16:05:57 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.10 2008/07/14 10:09:56 wiz Exp $
+# $NetBSD: options.mk,v 1.11 2010/02/25 16:05:57 drochner Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.tin
 PKG_SUPPORTED_OPTIONS=         icu inet6 tin-use-inn-spool
@@ -28,12 +28,6 @@
 .  include "../../devel/ncursesw/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-screen=ncursesw
 CONFIGURE_ARGS+=       --with-curses-dir=${BUILDLINK_PREFIX.ncursesw}
-# XXX: NetBSD's wide curses are not accepted, because the configure
-# script doesn't find the proper headers.
-# This could be a bug in the buildlink framework for wide curses.
-# The next line is a workaround until someone(TM) finds time to
-# investigate this.
-USE_BUILTIN.ncursesw=  no
 .endif
 
 .if !empty(PKG_OPTIONS:Micu)
diff -r 5554346fe0fe -r 7f7d36a6ec9a news/tin/patches/patch-am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/tin/patches/patch-am Thu Feb 25 16:05:57 2010 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-am,v 1.1 2010/02/25 16:05:57 drochner Exp $
+
+--- configure.orig     2009-02-11 20:29:48.000000000 +0000
++++ configure
+@@ -7996,6 +7996,9 @@ test "$cf_cv_curses_dir" != "no" && { \
+ if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
+   for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
+   do
++    if ! [ -d $cf_add_incdir ]; then
++      continue;
++    fi
+       while test $cf_add_incdir != /usr/include
+       do
+         if test -d $cf_add_incdir
+@@ -8093,7 +8096,6 @@ printf("%s\n", NCURSES_VERSION);
+ #ifdef __NCURSES_H
+ printf("old\n");
+ #else
+-      make an error
+ #endif
+ #endif
+       



Home | Main Index | Thread Index | Old Index