Subject: toolchain/33837: crossbuild of release fails because $MAKE not passed
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Bucky Katz <bucky@picovex.com>
List: netbsd-bugs
Date: 06/27/2006 03:25:00
>Number: 33837
>Category: toolchain
>Synopsis: crossbuild of release fails because $MAKE not passed
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 27 03:25:00 +0000 2006
>Originator: Bucky Katz
>Release: NetBSD 3.99.20
>Organization:
picovex
>Environment:
Linux Crossdevelopment on Fedora Core 5
>Description:
release calls sets/makesums to build the checksums for the release
tarballs, but doesn't pass MAKE as a variable, so sets/makesums
uses the native make, which is gnu make of FC5.
>How-To-Repeat:
check out a pristine copy of netbsd 3.0-current
use build.sh to build a tool chain, distribution and kernel
use build.sh to build release. The last steps will fail
because the makesums will fail.
>Fix:
Index: netbsd_quilt/src/etc/Makefile
===================================================================
--- netbsd_quilt.orig/src/etc/Makefile
+++ netbsd_quilt/src/etc/Makefile
@@ -46,7 +46,7 @@
TZDIR= /usr/share/zoneinfo
LOCALTIME?= UTC
CKSUM?= ${TOOL_CKSUM}
-MAKESUMS= CKSUM=${CKSUM:Q} ${HOST_SH} ${NETBSDSRCDIR}/distrib/sets/makesums
+MAKESUMS= MAKE=${MAKE:Q} CKSUM=${CKSUM:Q} ${HOST_SH} ${NETBSDSRCDIR}/distrib/sets/makesums
DISTRIBVER!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh
# Flags for creating ISO CDROM image
Index: netbsd_quilt/src/distrib/common/Makefile.distrib
===================================================================
--- netbsd_quilt.orig/src/distrib/common/Makefile.distrib
+++ netbsd_quilt/src/distrib/common/Makefile.distrib
@@ -25,7 +25,7 @@
DISTRIBVERDEP= ${NETBSDSRCDIR}/sys/sys/param.h \
${NETBSDSRCDIR}/sys/conf/osrelease.sh
-MAKESUMS= CKSUM=${TOOL_CKSUM:Q} ${HOST_SH} ${DISTRIBDIR}/sets/makesums
+MAKESUMS= MAKE=${MAKE:Q} CKSUM=${TOOL_CKSUM:Q} ${HOST_SH} ${DISTRIBDIR}/sets/makesums
RELEASE_INSTALL=${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE}