From owner-freebsd-current Mon Oct 30 0:18: 1 2000 Delivered-To: freebsd-current@freebsd.org Received: from roaming.cacheboy.net (gate.interxion.com [194.153.74.13]) by hub.freebsd.org (Postfix) with ESMTP id BF69437B479 for ; Mon, 30 Oct 2000 00:17:56 -0800 (PST) Received: (from adrian@localhost) by roaming.cacheboy.net (8.11.0/8.11.0) id e9U8GLt29810 for freebsd-current@freebsd.org; Mon, 30 Oct 2000 09:16:21 +0100 (CET) (envelope-from adrian) Date: Mon, 30 Oct 2000 09:15:00 +0100 From: Adrian Chadd To: freebsd-current@freebsd.org Subject: make DESTDIR=foo failing in installkernel ? Message-ID: <20001030091500.A29598@roaming.cacheboy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I can't be the only person who is trying to do this :) I have my laptop with two BSD partitions - one active, and one for the most current -current. (Its running -current from a couple months ago.) So, I do the following: roaming# cat crash-buildworld.sh #!/bin/sh DESTDIR=/crash ; export DESTDIR MAKEOBJDIRPREFIX=/crash ; export MAKEOBJDIRPREFIX cd /crash/usr/src make buildworld && make installworld make buildkernel && make installkernel now, besides needing to copy GENERIC.hints to /crash/boot/device.hints, this should work, right ? Unfortunately, I get this error: mkdir -p /crash/boot/kernel install -c -m 555 -o root -g wheel -fschg kernel /crash/boot/kernel cd /crash/usr/src/sys/modules && env MAKEOBJDIRPREFIX=/usr/obj/crash/usr/src/sys/GENERIC/modules KMODDIR=/crash/boot/kernel make install ===> 3dfx install -c -o root -g wheel -m 555 3dfx.ko /crash/crash/boot/kernel install: /crash/crash/boot/kernel: No such file or directory *** Error code 71 Now, in src/sys/conf/kmod.mk, is this bit of magic: realinstall: _SUBDIR ${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \ ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR} KMODDIR includes DESTDIR from what I can see, in /usr/obj/crash/usr/src/sys/GENERIC/Makefile : MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${DESTDIR}${KODIR} To be triple-sure, i did a make install in /usr/src/share/mk/ to update my mkfiles, but that still hasn't helped. Any clues? Adrian -- Adrian Chadd "Programming is like sex: One mistake and you have to support for a lifetime." -- rec.humor.funny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message