NetBSD Problem Report #37496

From dauphin@enst.fr  Fri Dec  7 10:37:49 2007
Return-Path: <dauphin@enst.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id A98EF63B946
	for <gnats-bugs@gnats.netbsd.org>; Fri,  7 Dec 2007 10:37:49 +0000 (UTC)
Message-Id: <1196257742.26090@bi.enst.fr>
Date: Wed, 28 Nov 2007 14:49:02 +0100
From: "Gilles Dauphin" <dauphin@enst.fr>
To: "gnats bugs" <gnats-bugs@NetBSD.org>
Subject: bmake bootstrap machine_arch
X-Send-Pr-Version: gtk-send-pr 0.4.8 
X-GNATS-Notify:


>Number:         37496
>Category:       pkg
>Synopsis:       bmake bootstrap machine_arch
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    joerg
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 07 10:40:00 +0000 2007
>Last-Modified:  Sat Sep 19 12:25:04 +0000 2009
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:




System: SunOS bi.enst.fr 5.10 Generic_120012-14 i86pc




>Description:




bmake is called twice by bootstrap in pkgsrc.
Once for Boostrapping bmake, once for Installing packages.


Probleme is with my own achitecture x86_64 on solaris, i patch bootstrap with the following at the
 "Boostrapping bmake" stage and add "--with-machine_arch=$machine_arch"


But on second call, the build of bmake is not correct because of missing the parameter"--with-machine_arch"
in the Makefile of devel/bmake


see fix




>How-To-Repeat:










>Fix:




I fix Makefile's bmake like that:
.if ${OPSYS} == "SunOS" && exists(/usr/xpg4/bin/sh)
BOOTSTRAP_ARGS+=        --with-defshell=/usr/xpg4/bin/sh
.endif


#must be same as first bootstrap
.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "x86_64"
BOOTSTRAP_ARGS+=        --with-machine_arch=x86_64
.endif


BUT it would be
BOOTSTRAP_ARGS+=        --with-machine_arch=${MACHINE_ARCH}


the result is:
MACHINE_ARCH MUST not be changed beetween bootstrap and install/package.




>Release-Note:


>Audit-Trail:


Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sat, 19 Sep 2009 12:25:04 +0000
Responsible-Changed-Why:
Over to maintainer.




>Unformatted:

 



NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.36 2007/11/24 03:27:39 kano 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.