Subject: install/8131: vnconfig vs. cross-distribution building problem
To: None <gnats-bugs@gnats.netbsd.org>
From: None <is@jocelyn.rhein.de>
List: netbsd-bugs
Date: 08/02/1999 03:06:20
>Number:         8131
>Category:       install
>Synopsis:       vnconfig vs. cross-distribution building problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager (NetBSD system installation bug manager)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Aug  2 02:35:00 1999
>Last-Modified:
>Originator:     Ignatios Souvatzis
>Organization:
	
>Release:        1.4.1 branch
>Environment:
	
System: NetBSD jocelyn 1.4.1 NetBSD 1.4.1 (ISDN12) #0: Thu Jul 29 01:25:02 MEST 1999 is@jocelyn:/build2/i4b/ISDN12 amiga


>Description:
	When trying to cross-compile the mvme68k distribution on a NetBSD/Amiga 
	machine, I noticed that
	- make in distrib/mvme68k/ramdisk didn't find the disk type entry for
	  ramdisk, because vnconfig searched it in the building, not target
	  /etc/disktab
	- make in distrib/miniroot used the wrong geometry for the "miniroot"
	  disk image, because vnconfig searched it in the building, not target
	  /etc/disktab
>How-To-Repeat:
	cd /usr/src/distrib/mvme68k/ramdisk
	make DESTDIR=/mnt4 MACHINE=mvme68k
	cd /usr/src/distrib/miniroot
	make DESTDIR=/mnt4 MACHINE=mvme68k
>Fix:
	Fix: Either
	* add a disktab argument to vnconfig, which would be set by
	the relevant Makefiles to ${DESTDIR}/etc/disktab, 

	or
	* use command-line geometry specifications in the relevant Makefiles.

	Workaround:
	* when cross-building releases, replace your disktab with
	the target disktab.

>Audit-Trail:
>Unformatted: