Subject: toolchain/16009: make sets prob
To: None <gnats-bugs@gnats.netbsd.org>
From: None <prlw1@cam.ac.uk>
List: netbsd-bugs
Date: 03/22/2002 15:06:18
>Number:         16009
>Category:       toolchain
>Synopsis:       make sets fails with USETOOLS=no
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 22 07:07:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Welche
>Release:        NetBSD 1.5ZC
>Organization:
	
>Environment:
>Description:
make release fails on acorn32 or with USETOOLS in make sets as MTREE and
PAX are defined and empty. ${PAX} -w then doesn't mean much..
>How-To-Repeat:
On acorn32
# cd src/distrib/sets
# make sets
DESTDIR=/destdir/acorn32  MACHINE=acorn32 MACHINE_ARCH=arm32  MAKE=make MTREE= PAX= sh /usr/src/distrib/sets/maketars   -d /destdir/acorn32 -t /usr/src/trash/release/acorn32/binary/sets
making base.tgz
-w: not found
...
(Can recreate on other archs with USETOOLS=no)
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/basesrc/distrib/sets/Makefile,v
retrieving revision 1.7
diff -p -r1.7 Makefile
*** Makefile	2002/03/05 03:51:22	1.7
--- Makefile	2002/03/22 14:59:02
*************** all:
*** 11,19 ****
  
  .include <bsd.own.mk>
  
! SETSENV=	DESTDIR=${DESTDIR:Q} \
! 		MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
! 		MAKE=${MAKE:Q} MTREE=${MTREE:Q} PAX=${PAX:Q} 
  
  print_machine: .PHONY
  	@echo ${MACHINE}
--- 11,21 ----
  
  .include <bsd.own.mk>
  
! .for i in DESTDIR MACHINE MACHINE_ARCH MAKE MTREE PAX
! .ifdef ${i}
! SETSENV+=	${i}=${${i}:Q}
! .endif
! .endfor
  
  print_machine: .PHONY
  	@echo ${MACHINE}
>Release-Note:
>Audit-Trail:
>Unformatted:
 20 March 2002 19:30 GMT source