NetBSD Problem Report #42712

From jschauma@netmeister.org  Sun Jan 31 19:29:25 2010
Return-Path: <jschauma@netmeister.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id A68FB63B886
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 31 Jan 2010 19:29:25 +0000 (UTC)
Message-Id: <20100131185037.BE2CA356A3E@panix.netmeister.org>
Date: Sun, 31 Jan 2010 13:50:36 -0500 (EST)
From: jschauma@netmeister.org
Reply-To: jschauma@netmeister.org
To: gnats-bugs@gnats.NetBSD.org
Subject: bootstrap pkgsrc should check for required termcap
X-Send-Pr-Version: 3.95

>Number:         42712
>Category:       pkg
>Synopsis:       bootstrap pkgsrc should check for required termcap
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 31 19:30:00 +0000 2010
>Last-Modified:  Mon Feb 15 21:15:02 +0000 2010
>Originator:     Jan Schaumann
>Release:        Fedora release 8 (Werewolf)
>Organization:

>Environment:


Linux ip-10-242-46-86 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 19:22:36 EST 2009 i686 i686 i386 GNU/Linux
Architecture: x86_64
Machine: i386
>Description:

I created a Fedora Core 8 instance in Amazon's EC2, then fetched the latest pkgsrc tarball
and extracted it.  After bootstrapping, I tried to build misc/screen, but it failed saying
that no suitable termcap library was found.

The reson for that appears to be that this image does not by default provide the
ncurses-devel rpm.

If this is needed, then maybe bootstrap should detect this and complain?

Otherwise, it would be nice if misc/screen could just pull in devel/ncurses
or whatever it may need instead of leaving the user guessing what packages
he needs to install.

>How-To-Repeat:
	Install Fedora Core 8 without any -devel packages.
	download pkgsrc
	bootstrap
	cd misc/screen
	bmake
>Fix:


>Audit-Trail:
From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42712: bootstrap pkgsrc should check for required termcap
Date: Sun, 31 Jan 2010 14:40:57 -0500

 On Sun, 31 Jan 2010 19:30:01 +0000 (UTC)
 jschauma@netmeister.org wrote:

 > Otherwise, it would be nice if misc/screen could just pull in devel/ncurses
 > or whatever it may need instead of leaving the user guessing what packages
 > he needs to install.

 Does enabling the ncurses option (screen uses the options framework,
 see "bmake show-options") help any?  It seems that it would add the
 ncurses package dependency via buildlink...

 Thanks,
 -- 
 Matt

From: Jan Schaumann <jschauma@netmeister.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42712: bootstrap pkgsrc should check for required termcap
Date: Sun, 31 Jan 2010 15:20:15 -0500

 --fUYQa+Pmc3FrFX/N
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 Matthew Mondor <mm_lists@pulsar-zone.net> wrote:
 =20
 >  On Sun, 31 Jan 2010 19:30:01 +0000 (UTC) jschauma@netmeister.org
 >  wrote:
 > =20
 >  > Otherwise, it would be nice if misc/screen could just pull in
 >  > devel/ncurses or whatever it may need instead of leaving the user
 >  > guessing what packages he needs to install.
 > =20
 >  Does enabling the ncurses option (screen uses the options framework,
 >  see "bmake show-options") help any?  It seems that it would add the
 >  ncurses package dependency via buildlink...

 [root@domU-12-31-39-0C-26-48 screen]# bmake show-options
 Any of the following general options may be selected:
 At most one of the following curses options may be selected:
         curses   Enable curses support.
         ncurses  Enable ncurses support.
         pdcurses

 These options are enabled by default:

 These options are currently enabled:

 You can select which build options to use by setting PKG_DEFAULT_OPTIONS
 or PKG_OPTIONS.screen.
 [root@domU-12-31-39-0C-26-48 screen]# bmake
 ERROR: This package has set PKG_FAIL_REASON:
 ERROR: No usable termcap library found on the system.
 *** Error code 1

 Stop.
 bmake: stopped in /usr/pkgsrc/misc/screen
 [root@domU-12-31-39-0C-26-48 screen]# grep OPT /etc/mk.conf
 PKG_OPTIONS.screen=3D     ncurses
 PKG_DEFAULT_OPTIONS=3D    ncurses
 [root@domU-12-31-39-0C-26-48 screen]# bmake PKG_OPTIONS.screen=3Dncurses
 ERROR: This package has set PKG_FAIL_REASON:
 ERROR: No usable termcap library found on the system.
 *** Error code 1

 Stop.
 bmake: stopped in /usr/pkgsrc/misc/screen
 [root@domU-12-31-39-0C-26-48 screen]# bmake PKG_DEFAULT_OPTIONS=3Dncurses
 ERROR: This package has set PKG_FAIL_REASON:
 ERROR: No usable termcap library found on the system.
 *** Error code 1

 Stop.
 bmake: stopped in /usr/pkgsrc/misc/screen
 [root@domU-12-31-39-0C-26-48 screen]#=20

 -Jan

 --fUYQa+Pmc3FrFX/N
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (NetBSD)

 iD8DBQFLZeX5fFtkr68iakwRAmAoAKDSPeNJ6MlWPIKDT/6wC2SNpXFx/QCfUamD
 ++SI2I6FD045GS02lHzO0Bs=
 =WctM
 -----END PGP SIGNATURE-----

 --fUYQa+Pmc3FrFX/N--

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42712: bootstrap pkgsrc should check for required termcap
Date: Sun, 31 Jan 2010 21:58:32 +0100

 On Sun, Jan 31, 2010 at 07:30:01PM +0000, jschauma@netmeister.org wrote:
 > If this is needed, then maybe bootstrap should detect this and complain?

 No. Termcap is optional and should stay that way. E.g. with
 FETCH_USING=fetch, no termcap is required for the infrastructure,
 as well as most packages.

 Joerg

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/42712: bootstrap pkgsrc should check for required termcap
Date: Mon, 08 Feb 2010 21:53:39 +0900

 On Haiku (no builtin curses, termcap, terminfo),
 ncurses from pkgsrc is used automatically in misc/screen.
 I don't know why it does not work on Linux.

 But yes, pkg-options for screen is strange,
 because selecting curses type but include termcap.buildlink3.mk.
 and overwrite user settable variable in Makefile of pkg is bad idea.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/42712: bootstrap pkgsrc should check for required termcap
Date: Mon, 15 Feb 2010 21:10:33 +0000

 (not sent to gnats)

    ------

 From: Jan Schaumann <jschauma@netmeister.org>
 To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
 Subject: Re: pkg/42712: bootstrap pkgsrc should check for required termcap
 Date: Mon, 15 Feb 2010 15:47:51 -0500
 Mail-Followup-To: pkg-manager@netbsd.org, gnats-admin@netbsd.org,
 	pkgsrc-bugs@netbsd.org

 This PR should probably have the synopsis renamed to:

 default termcap options not set appropriately on linux


 I just boostrapped pkgsrc on:

 Gentoo 4Q2009
 Ubuntu 9.10 Karmic Base
 Fedora Core 8

 Neither appears to have gotten a functional pkgsrc -- they all three
 bail out when building tnftp with an error message that 'no usable
 termcap' was found.

 I had to manually install using whatever package management system the
 host provides a suitable termcap library.

 I thought pkgsrc would be smart enough to figure out that no termcap is
 present and pull in something?  Even if not, it'd be nice it would make
 a suggestion as to what the innocent user should do, such as setting
 certain options if those are possible to rectify the situation.

 -Jan

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.