From owner-freebsd-ports@FreeBSD.ORG Wed Aug 16 18:15:48 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7601F16A4EA; Wed, 16 Aug 2006 18:15:48 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (w.timing.com [206.168.13.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id F063243D53; Wed, 16 Aug 2006 18:15:47 +0000 (GMT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id k7GIEVJQ072892; Wed, 16 Aug 2006 12:14:31 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.13.6/8.13.6) with ESMTP id k7GIEUSZ098197; Wed, 16 Aug 2006 12:14:30 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.13.6/8.13.6/Submit) id k7GIEUQT098194; Wed, 16 Aug 2006 12:14:30 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17635.24709.983143.540440@gromit.timing.com> Date: Wed, 16 Aug 2006 12:14:29 -0600 From: John E Hein To: Kris Kennaway In-Reply-To: <20060816173628.GA14848@xor.obsecurity.org> References: <20060814234414.GA57035@hades.panopticon> <44E194BA.2020507@FreeBSD.org> <17634.5246.887894.836856@gromit.timing.com> <20060816173628.GA14848@xor.obsecurity.org> X-Mailer: VM 7.19 under Emacs 21.3.1 X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on Daffy.timing.com X-Virus-Status: Clean Cc: babak@farrokhi.net, amdmi3@mail.ru, G??bor K??vesd??n , freebsd-ports@FreeBSD.org Subject: Re: DESTDIR implementation [Was:: ATTENTION: is the way DESTDIR was introduced completely wrong?] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2006 18:15:48 -0000 Kris Kennaway wrote at 13:36 -0400 on Aug 16, 2006: > mount_nullfs ${PORTSDIR} ${DESTDIR}${PORTSDIR} > mount_nullfs ${WRKDIR} ${DESTDIR}${WRKDIR} > mount_devfs foo ${DESTDIR}/dev > chroot ${DESTDIR} cd ${.CURDIR} && make install > > A suitable version of the above should allow all ports to be installed > into a jail-ready filesystem hierarchy, while requiring 0 port > changes. I do that, too - we _have_ to since DESTDIR never worked right. That's more heavyweight than a DESTDIR chroot (which doesn't need to have much more than pkg* tools & libc & a few others), but that's a very minor advantage over a full chroot (and probably not worth trying to special case). My original DESTDIR "fix" didn't involve a chroot at all, but runs into problems with pkg management. Note that if we go that route (just run completely within a chroot), we might as well just rip DESTDIR support out of Mk/*.mk altogether. That would be better than the "fake" support for DESTDIR.