Subject: Re: pkg/36983: news/tin: add ncurses and ncursesw options
To: None <,,>
From: Thomas Klausner <>
List: pkgsrc-bugs
Date: 09/13/2007 21:05:08
The following reply was made to PR pkg/36983; it has been noted by GNATS.

From: Thomas Klausner <>
Subject: Re: pkg/36983: news/tin: add ncurses and ncursesw options
Date: Thu, 13 Sep 2007 23:03:12 +0200

 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 On Thu, Sep 13, 2007 at 11:40:01AM +0000, wrote:
 > >Number:         36983
 > >Category:       pkg
 > >Synopsis:       news/tin: add ncurses and ncursesw options
 I modified your patch to use option groups, which solves the problem
 you mention.
 However, on NetBSD-4.99.31/amd64 with the ncursesw option, configuring
 fails with:
 configure:6838: cc -c -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -
 I/usr/pkg/include/ncursesw -I/usr/pkg/include -I/usr/include conftest.c 1>&5
 configure: In function 'main':
 configure:6822: error: 'make' undeclared (first use in this function)
 configure:6822: error: (Each undeclared identifier is reported only once
 configure:6822: error: for each function it appears in.)
 configure:6822: error: expected ';' before 'an'
 configure: failed program was:
 #line 6809 "configure"
 #include "confdefs.h"
 #undef  HAVE_LIBUTF8_H  /* in case we used CF_UTF8_LIB */
 #define HAVE_LIBUTF8_H  /* to force ncurses' header file to use cchar_t */
 #include <curses.h>
 int main() {
 #ifndef WACS_BSSB
         make an error
 printf("%s\n", NCURSES_VERSION);
 #ifdef __NCURSES_H
         make an error
 ; return 0; }
 I guess it pulls in the NetBSD curses.h instead of the ncurses one.
 Where did you test this and why did it work for you?
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="tin.diff"
 RCS file: /cvsroot/pkgsrc/news/tin/,v
 retrieving revision 1.6
 diff -u -r1.6
 ---	30 Jan 2007 07:11:46 -0000	1.6
 +++	13 Sep 2007 21:00:21 -0000
 @@ -1,16 +1,31 @@
  # $NetBSD:,v 1.6 2007/01/30 07:11:46 wiz Exp $
 -.include "../../mk/"
 -PKG_SUPPORTED_OPTIONS=	curses icu inet6 tin-use-inn-spool
 +PKG_SUPPORTED_OPTIONS=		icu inet6 tin-use-inn-spool
 +PKG_OPTIONS_GROUP.display=	curses ncurses ncursesw
  # untested
  .include "../../mk/"
  .if !empty(PKG_OPTIONS:Mcurses)
 +.  include "../../mk/"
  CONFIGURE_ARGS+=	--with-screen=curses
 +CONFIGURE_ARGS+=	--with-curses-dir=${BUILDLINK_PREFIX.curses}
 +.if !empty(PKG_OPTIONS:Mncurses)
 +.  include "../../devel/ncurses/"
 +CONFIGURE_ARGS+=	--with-screen=ncurses
 +CONFIGURE_ARGS+=	--with-curses-dir=${BUILDLINK_PREFIX.ncurses}
 +.if !empty(PKG_OPTIONS:Mncursesw)
 +.  include "../../devel/ncursesw/"
 +CONFIGURE_ARGS+=	--with-screen=ncursesw
 +CONFIGURE_ARGS+=	--with-curses-dir=${BUILDLINK_PREFIX.ncursesw}
  .if !empty(PKG_OPTIONS:Micu)