Subject: Re: misc/55: bootblocks 'make install' should create the target directory
To: Kim Andersen <>
From: J.T. Conklin <>
List: netbsd-bugs
Date: 01/07/1994 12:27:35
>> The 'make install' step copies the boot block images to the target
>> directory /usr/mdec. If the directory does not exist, the operation
>> fails.

Kim> Shouldn't it be made when going to src/etc and make-ing
Kim> distrib-dirs ?  I guess this little directory is mostly
Kim> overlooked.

Actually, I think that we should remove all the mkdirs/chowns/chmods
from the distrib-dirs target, update the mtree datafiles, and use
mtree to create them.

Kim> Note that doing:
Kim>     make distribution
Kim> with $DESTDIR set will fail when executing this line:
Kim>     (cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd)

Kim> Anyone having ideas as how to get around this ?

If we break the distribution-building process into these steps.

	1. make directories with mtree

	2. install binaries into ${DESTDIR}

	3. install source into ${DESTDIR}

	4. install /etc config files

We could change that line to:
	(chroot ${DESTDIR}/etc pwd_mkdb -p master.passwd)

The binaries have to be installed before the chroot, because pwd_mkdb
has to be found within the chroot'ed environment.

Chris, could you comment on how you make the official distributions?
You have a unique perspective on this, since you've actually done it.