Subject: pkg/37496: bmake bootstrap machine_arch
To: None <,,>
From: Gilles Dauphin <>
List: pkgsrc-bugs
Date: 12/07/2007 10:40:00
>Number:         37496
>Category:       pkg
>Synopsis:       bmake bootstrap machine_arch
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 07 10:40:00 +0000 2007
>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.