Subject: install/24392: cd src/etc && make iso-image fails on -current
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jukka-netbsd@2004.salmi.ch>
List: netbsd-bugs
Date: 02/11/2004 21:10:11
>Number:         24392
>Category:       install
>Synopsis:       make iso-image fails on -current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 11 20:11:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jukka Salmi
>Release:        NetBSD 1.6ZJ
>Organization:
>Environment:
System: NetBSD himo.salmi.ch 1.6ZJ NetBSD 1.6ZJ (HIMO) #0: Wed Feb 11 00:57:01 CET 2004 root@himo.salmi.ch:/opt/src/nbsd/current/sys/arch/i386/compile/HIMO i386
Architecture: i386
Machine: i386
>Description:
Building a stable NetBSD release on a -current host system works fine;
however, creating the ISO image fails.
>How-To-Repeat:
$ cd $stable_src/etc && make DESTDIR=... RELEASEDIR=... iso-image
make: no target to make.
make: "/usr/share/mk/bsd.kernobj.mk" line 25: warning: "cd /opt/src/nbsd/stable/sys/arch/i386/compile && make -V .OBJDIR" returned non-zero status
echo iso-image_md_pre i386
iso-image_md_pre i386
mkisofs 2.0.3 (i386-unknown-netbsd1.6ZJ)
[...mkisofs output...]
141824 extents written (277 Mb)
-o1: not found
netbsd-i386.iso: not found
-m: not found
-o2: not found
*** Error code 127

Stop.
make: stopped in /opt/src/nbsd/stable/etc


There are two problems: one at the beginning and one during checksum creation
(after the image is built) which makes the target fail.
>Fix:
To fix problem #1 I copied $current_src/sys/arch/i386/compile/Makefile to
$stable_src/sys/arch/i386/compile/. Would it be a bad idea to include the
src/sys/arch/*/compile/Makefiles in the netbsd-1-6 branch? It would fix
this problem.

Problem #2 is fixed by the following patch for
$stable_src/distrib/sets/makesums:

--- makesums.bak        2002-09-30 14:55:24.000000000 +0200
+++ makesums    2004-02-11 20:05:25.000000000 +0100
@@ -18,7 +18,7 @@
 #
  
 # set defaults
-: ${CKSUM=cksum}
+: ${CKSUM:=cksum}
 tars=$RELEASEDIR
 dash_all=no
 

This shouldn't hurt and fixes the problem. (It applies to -current and
netbsd-1-6 makesums.)
>Release-Note:
>Audit-Trail:
>Unformatted: