Subject: Can't Build release for 2.99.16
To: None <port-hpcmips@netbsd.org>
From: Chris Jepeway <jepeway@blasted-heath.com>
List: port-hpcmips
Date: 03/02/2005 17:36:47
Trying to build.sh a release of 2.99.16 for hpcmips bombs out
attempting to install the various booters into 
$RELEASEDIR/hpcmips/installation.
Errors like these show up:

	#    create  hpcmips/netbsd.gz
	rm -f netbsd.gz
	gzip -9c netbsd > netbsd.gz
	STRIP=/Volumes/NetBSD/tools/2.99/bin/mipsel--netbsd-strip 
/Volumes/NetBSD/tools/2.99/bin/nbinstall -r -p -c -m 444 netbsd.gz 
netbsd.symbols.gz  /Volumes/NetBSD/relse/2.99/hpcmips/installation
	cp pbsdboot1.exe /Volumes/NetBSD/relse/2.99/hpcmips/installation;  
chmod 444 /Volumes/NetBSD/relse/2.99/hpcmips/installation/pbsdboot1.exe
	cp: pbsdboot1.exe: No such file or directory
	chmod: /Volumes/NetBSD/relse/2.99/hpcmips/installation/pbsdboot1.exe: 
No such file or directory

	*** Failed target:  release

I invoked build.sh as

===> build.sh command: ./build.sh -o -u -U -T 
/Volumes/NetBSD/tools/2.99 -O /Volumes/NetBSD/obj/2.99.hpcmips -m 
hpcmips -D /Volumes/NetBSD/obj/2.99.hpcmips/Root -R 
/Volumes/NetBSD/relse/2.99 release kernel=GENERIC releasekernel=GENERIC

My belief is that the appended patch cleared up these problems.
I think only the UUDECODE_FILES_RENAME_* additions are necessary.
It's pretty much a "monkey see, monkey do" patch, and I don't
claim to know what the proper fix should be.

And, not to carp, but shouldn't the *.exe files be installed
via some invocation of $(INSTALL)?  The cp's will fail the
second time a release is built, since the files' modes are
set to 0444.

I'll send a PR if anybody wants one.

Chris <jepeway@blasted-heath.com>.

Index: distrib/hpcmips/Makefile
===================================================================
RCS file: /cvsroot/src/distrib/hpcmips/Makefile,v
retrieving revision 1.26
diff -u -r1.26 Makefile
--- distrib/hpcmips/Makefile    19 Mar 2004 08:07:28 -0000      1.26
+++ distrib/hpcmips/Makefile    2 Mar 2005 22:21:12 -0000
@@ -22,15 +22,17 @@

  UUDECODE_FILES=        ${PBSDBOOT1} ${PBSDBOOT} ${HPCBOOT}
  UUDECODE_FILES_RENAME_${HPCBOOT}= ${HPCBOOT}
+UUDECODE_FILES_RENAME_${PBSDBOOT1}= ${PBSDBOOT1}
+UUDECODE_FILES_RENAME_${PBSDBOOT}= ${PBSDBOOT}

  .include "${DISTRIBDIR}/common/Makefile.mdset"

  release:: check_RELEASEDIR .WAIT ${PBSDBOOT1} ${PBSDBOOT} ${HPCBOOT}
-       cp pbsdboot1.exe ${RELEASEDIR}/${MACHINE}/installation; \
+       cp ${PBSDBOOT1} ${RELEASEDIR}/${MACHINE}/installation; \
         chmod ${NONBINMODE} 
${RELEASEDIR}/${MACHINE}/installation/pbsdboot1.exe
-       cp pbsdboot.exe ${RELEASEDIR}/${MACHINE}/installation; \
+       cp ${PBSDBOOT} ${RELEASEDIR}/${MACHINE}/installation; \
         chmod ${NONBINMODE} 
${RELEASEDIR}/${MACHINE}/installation/pbsdboot.exe
-       cp hpcboot.exe ${RELEASEDIR}/${MACHINE}/installation; \
+       cp ${HPCBOOT} ${RELEASEDIR}/${MACHINE}/installation; \
         chmod ${NONBINMODE} 
${RELEASEDIR}/${MACHINE}/installation/hpcboot.exe
         ${MAKESUMS} -t ${RELEASEDIR}/${MACHINE}/installation '*.gz' 
'*.exe'