From owner-freebsd-hackers Wed Dec 18 16:35:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 019AC37B401 for ; Wed, 18 Dec 2002 16:35:09 -0800 (PST) Received: from bsdone.bsdwins.com (www.bsdwins.com [192.58.184.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAE9143ED8 for ; Wed, 18 Dec 2002 16:35:07 -0800 (PST) (envelope-from jwd@bsdwins.com) Received: from bsdone.bsdwins.com (localhost [127.0.0.1]) by bsdone.bsdwins.com (8.12.5/8.12.5) with ESMTP id gBJ0E3W2045538 for ; Wed, 18 Dec 2002 19:14:03 -0500 (EST) (envelope-from jwd@www.bsdwins.com) Received: (from jwd@localhost) by bsdone.bsdwins.com (8.12.5/8.12.5/Submit) id gBJ0E37D045537 for freebsd-hackers@freebsd.org; Wed, 18 Dec 2002 19:14:03 -0500 (EST) Date: Wed, 18 Dec 2002 19:14:03 -0500 From: John D To: Hackers List Subject: make installworld from non-default /usr/obj? Message-ID: <20021219001403.GA45419@BSDWins.Com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Someone must be doing something similar, but so far I am unable to figure out a solution. I have a 'make release' sitting at: /vol/vol0/work/4-stable-chrootdir If I do the following: cd /vol/vol0/work/4-stable-chrootdir/usr/src && \ make DESTDIR=/tmp/destdir It fails trying to locate the install program: -------------------------------------------------------------- >>> Installing everything.. -------------------------------------------------------------- cd /vol/vol0/work/4-stable-chrootdir/usr/src; make -f Makefile.inc1 install ===> share/info install -o root -g wheel -m 444 dir-tmpl /tmp/destdir/usr/share/info/dir install:No such file or directory *** Error code 1 A ktrace shows the following: 28682 make GIO fd 1 wrote 74 bytes "install -o root -g wheel -m 444 dir-tmpl /tmp/destdir/usr/share/info/\ dir " 28682 make RET write 74/0x4a 28682 make CALL vfork 28683 make RET fork 0 28683 make CALL execve(0xbfbfe568,0x8083004,0x8081100) 28683 make NAMI "/usr/obj/vol/vol0/work/4-stable-chrootdir/usr/src/i386/usr/sbin/install" 28683 make RET execve -1 errno 2 No such file or directory 28683 make CALL execve(0xbfbfe568,0x8083004,0x8081100) 28683 make NAMI "/usr/obj/vol/vol0/work/4-stable-chrootdir/usr/src/i386/usr/bin/install" 28683 make RET execve -1 errno 2 No such file or directory 28683 make CALL execve(0xbfbfe568,0x8083004,0x8081100) 28683 make NAMI "/usr/obj/vol/vol0/work/4-stable-chrootdir/usr/src/i386/usr/games/install" 28683 make RET execve -1 errno 2 No such file or directory 28683 make CALL execve(0xbfbfe568,0x8083004,0x8081100) 28683 make NAMI "/tmp/install.28281/install" 28683 make RET execve -1 errno 2 No such file or directory 28683 make CALL write(0x2,0x809b780,0x7) 28683 make GIO fd 2 wrote 7 bytes "install" 28683 make RET write 7 28683 make CALL write(0x2,0x807126c,0x1) 28683 make GIO fd 2 wrote 1 byte ":" 28683 make RET write 1 28683 make CALL write(0x2,0x80751b2,0x19) 28683 make GIO fd 2 wrote 25 bytes "No such file or directory" It appears that the current working directory is not being honored correctly. Looking into usr/src/Makefile.inc1 it appears that the WORLDTMP macro is the problem, but I do not see an obvious solution. WORLDTMP= ${OBJTREE}${.CURDIR}/${MACHINE_ARCH} I've played around with MAKEOBJDIRPREFIX, but it does not interact nicely with .CURDIR. Any hints, pointers, or clue-bats are appreciated. Thanks! John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message