NetBSD Problem Report #29432

From reed@rainier.reedmedia.net  Thu Feb 17 19:48:27 2005
Return-Path: <reed@rainier.reedmedia.net>
Received: from pilchuck.reedmedia.net (pilchuck.reedmedia.net [209.166.74.74])
	by narn.netbsd.org (Postfix) with ESMTP id 3885F63B844
	for <gnats-bugs@gnats.netbsd.org>; Thu, 17 Feb 2005 19:48:27 +0000 (UTC)
Message-Id: <3854-1108669704@rainier.reedmedia.net>
Date: Thu, 17 Feb 2005 11:48:24 -0800
From: reed@reedmedia.net
Reply-To: reed@reedmedia.net
To: gnats-bugs@netbsd.org
Subject: tools.mk should check for available tools and more
X-Send-Pr-Version: 3.95

>Number:         29432
>Category:       pkg
>Synopsis:       tools.mk should check for available tools and more
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 17 19:49:00 +0000 2005
>Closed-Date:    Sat Jul 04 16:31:24 +0000 2015
>Last-Modified:  Sat Jul 04 16:31:24 +0000 2015
>Originator:     reed@reedmedia.net
>Release:        NetBSD 1.6.2_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:


System: NetBSD rainier.reedmedia.net 1.6.2_STABLE NetBSD 1.6.2_STABLE (MYKERNEL) #1: Tue Jun 1 12:16:43 PDT 2004 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/MYKERNEL i386
Architecture: i386
Machine: i386
>Description:
tools.mk needs to be improved.
Also see PR  #26070: pkgsrc doesn't know about tools versions

A few problems:

Expects tools to be installed on certain platforms for some
operating systems. For example, it assumes that yacc is available
for Linux -- really it is not and in some cases bison is.
And it will not check first. And it does not install package
if needed.

When you tell a package that you need some tool for the build,
it uses misnamed "USE_GNU_TOOLS". So if you need a generic yacc,
then this means on NetBSD that it will use "bison -y" instead
of its own native yacc.
>How-To-Repeat:

>Fix:
Don't assume tools are there.

Add a USE_TOOLS which doesn't mean GNU version.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jlam
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Mon, 06 Jun 2005 09:39:56 +0000
Responsible-Changed-Why:

The USE_TOOLS variable exists, but currently tooks.mk does not check
whether the tools really exist. Handed over to jlam, who wrote the
new tools framework.

State-Changed-From-To: open->analyzed
State-Changed-By: jlam@netbsd.org
State-Changed-When: Tue, 07 Jun 2005 18:30:08 +0000
State-Changed-Why:
This is not a tools framework issue.  I consider this a bootstrap problem,
where the bootstrap step should probe the system and set up an mk.conf
file with correct variable definitions sufficient to tell the tools
framework what's on the system.  Doing the same checks over and over
again is expensive and needless.  This PR can be closed when the
bootstrap process in pkgsrc has been improved.


Responsible-Changed-From-To: jlam->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 21 Mar 2010 16:07:47 +0000
Responsible-Changed-Why:
Back to role account, jlam lost his commit bit.


State-Changed-From-To: analyzed->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 04 Jul 2015 16:31:24 +0000
State-Changed-Why:
This is not really an issue anymore with the current tools framework.


>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.