NetBSD Problem Report #37496

From  Fri Dec  7 10:37:49 2007
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id A98EF63B946
	for <>; Fri,  7 Dec 2007 10:37:49 +0000 (UTC)
Message-Id: <>
Date: Wed, 28 Nov 2007 14:49:02 +0100
From: "Gilles Dauphin" <>
To: "gnats bugs" <>
Subject: bmake bootstrap machine_arch
X-Send-Pr-Version: gtk-send-pr 0.4.8 

>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

System: SunOS 5.10 Generic_120012-14 i86pc


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



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

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

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.



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


NetBSD Home
NetBSD PR Database Search

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