NetBSD Problem Report #33799

From roland@roland-illig.de  Fri Jun 23 07:33:18 2006
Return-Path: <roland@roland-illig.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1862A63B8B4
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 23 Jun 2006 07:33:18 +0000 (UTC)
Message-Id: <20060623052803.2AFB5F3FA@baccf5ee.roland-illig.de>
Date: Fri, 23 Jun 2006 07:28:03 +0200 (CEST)
From: rillig@NetBSD.org
Reply-To: rillig@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: ar, as, ld and similar should be integrated into the TOOLS framework
X-Send-Pr-Version: 3.95

>Number:         33799
>Category:       pkg
>Synopsis:       ar, as, ld and similar should be integrated into the TOOLS framework
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 23 07:35:00 +0000 2006
>Last-Modified:  Fri Jun 23 20:40:01 +0000 2006
>Originator:     Roland Illig
>Release:        any
>Organization:

>Environment:
>Description:

The toolchain utilities like ar, as, ld, strip, size should be
integrated into the tools framework. This makes it possible to install
binutils on Solaris and keep pkgsrc working.

Currently, the GNU binutils are not supported on Solaris by pkgsrc, and
indeed they do not work. But if they are installed and ${LOCALBASE}/bin
is before /usr/ccs/bin in the path, most packages will use them instead
of the native ones, leading to build failure.

>How-To-Repeat:

>Fix:


>Audit-Trail:
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
To: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
	gnats-bugs@NetBSD.org
Cc: tech-pkg@NetBSD.org
Subject: Re: pkg/33799: ar, as, ld and similar should be integrated into the TOOLS framework
Date: Fri, 23 Jun 2006 17:16:29 +0200 (CEST)

 > From: rillig@NetBSD.org
 > 
 > The toolchain utilities like ar, as, ld, strip, size should be
 > integrated into the tools framework. This makes it possible to install
 > binutils on Solaris and keep pkgsrc working.
 > 
 > Currently, the GNU binutils are not supported on Solaris by pkgsrc, and
 > indeed they do not work. But if they are installed and ${LOCALBASE}/bin
 > is before /usr/ccs/bin in the path, most packages will use them instead
 > of the native ones, leading to build failure.
 > 

 And what about a kind of second stage of boostrap for all tools
  needed by Solaris.
 maybe a meta-pkg or somethings like xpkgwedge or x11-links

 And tools.SunOS.mk could be write like:

 ...
 .if exists(/usr/pkg/bin/ggrep)
 TOOLS_PLATFORM.egrep?=          /usr/pkg/bin/gegrep
 TOOLS_PLATFORM.fgrep?=          /usr/pkg/bin/gfgrep
 TOOLS_PLATFORM.grep?=           /usr/pkg/bin/ggrep
 .endif
 TOOLS_PLATFORM.egrep?=          /usr/xpg4/bin/grep -E
 TOOLS_PLATFORM.fgrep?=          /usr/xpg4/bin/fgrep
 TOOLS_PLATFORM.grep?=           /usr/xpg4/bin/grep
 ...

 Just an idea.
 Gilles

From: Klaus Heinz <k.heinz.jun.sechs@onlinehome.de>
To: gnats-bugs@NetBSD.org
Cc: rillig@NetBSD.org
Subject: Re: pkg/33799: ar, as, ld and similar should be integrated into the TOOLS framework
Date: Fri, 23 Jun 2006 22:38:15 +0200

 rillig@NetBSD.org wrote:

 > The toolchain utilities like ar, as, ld, strip, size should be
 > integrated into the tools framework. This makes it possible to install
 > binutils on Solaris and keep pkgsrc working.

 Let me add a vote for diff3 (and maybe sdiff) from the diffutils
 package. Pkgsrc already handles cmp and diff from this package and at
 least diff3 is needed for devel/rcs. NetBSD contains a usable diff3 in
 the base system (DragonFlyBSD probably as well) but Solaris does not.

 ciao
      Klaus

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.