NetBSD Problem Report #38106

From martin@duskware.de  Mon Feb 25 22:45:38 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 214DA63B853
	for <gnats-bugs@gnats.netbsd.org>; Mon, 25 Feb 2008 22:45:38 +0000 (UTC)
Message-Id: <20080225223456.703B963B853@narn.NetBSD.org>
Date: Mon, 25 Feb 2008 22:34:56 +0000 (UTC)
From: tnn@NetBSD.org
Reply-To: tnn@NetBSD.org
To: netbsd-bugs-owner@NetBSD.org
Subject: pkgsrc should not use ld(1) or as(1) in ${PREFIX} by default.
X-Send-Pr-Version: www-1.0

>Number:         38106
>Category:       pkg
>Synopsis:       pkgsrc should not use ld(1) or as(1) in ${PREFIX} by default.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 25 22:50:00 +0000 2008
>Closed-Date:    Tue Apr 24 05:14:05 +0000 2012
>Last-Modified:  Tue Apr 24 05:14:05 +0000 2012
>Originator:     Tobias Nygren
>Release:        current
>Organization:
>Environment:
i386
>Description:
If you by some freak accident have got devel/binutils installed,
then the pkgsrc wrapper framework will automatically prefer
the broken /usr/pkg/bin/ld over the native ld(1).


>How-To-Repeat:
# cd /usr/pkgsrc/pkgtools/digest
# touch /usr/pkg/bin/ld
# chmod +x /usr/pkg/bin/ld
# export PATH=/bin:/usr/bin
# make
[...]
configure: error: C compiler cannot create executables

grep "^cmd=" work/.wrapper/bin/ld
cmd="/usr/pkg/bin/ld"
cmd="$cmd $libs"

>Fix:
pkgsrc should probably not look in ${PREFIX} for toolchain components.
Also, devel/binutils should use GNU_PROGRAM_PREFIX="pkgsrc-" or something like that.






>Release-Note:

>Audit-Trail:
From: Tobias Nygren <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/38106 CVS commit: pkgsrc/devel/binutils
Date: Thu, 28 Feb 2008 19:06:34 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Thu Feb 28 19:06:34 UTC 2008

 Modified Files:
 	pkgsrc/devel/binutils: Makefile PLIST.common

 Log Message:
 Use GNU_PROGRAM_PREFIX?= gnu-
 This is a stopgap measure for PR pkg/38106.
 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -r1.33 -r1.34 pkgsrc/devel/binutils/Makefile
 cvs rdiff -r1.13 -r1.14 pkgsrc/devel/binutils/PLIST.common

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sun, 21 Feb 2010 16:49:02 +0000
State-Changed-Why:
What's left to do?


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 24 Apr 2012 05:14:05 +0000
State-Changed-Why:
Nothing left to do.

If you install binutils from pkgsrc, presumably it's because you meant to
use it. If it doesn't work, pkg_delete it. If something depends on it,
so you end up having it installed even though you don't particularly
want it, it needs to install in a way such that it doesn't break the
system.


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