From owner-freebsd-ports@FreeBSD.ORG Wed Aug 16 17:36:30 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 5842D16A4E1; Wed, 16 Aug 2006 17:36:30 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13F2543D4C; Wed, 16 Aug 2006 17:36:30 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id F17641A3C1E; Wed, 16 Aug 2006 10:36:29 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 0CF8C52135; Wed, 16 Aug 2006 13:36:29 -0400 (EDT) Date: Wed, 16 Aug 2006 13:36:28 -0400 From: Kris Kennaway To: John E Hein Message-ID: <20060816173628.GA14848@xor.obsecurity.org> References: <20060814234414.GA57035@hades.panopticon> <44E194BA.2020507@FreeBSD.org> <17634.5246.887894.836856@gromit.timing.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline In-Reply-To: <17634.5246.887894.836856@gromit.timing.com> User-Agent: Mutt/1.4.2.2i 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 17:36:30 -0000 --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 15, 2006 at 12:37:50PM -0600, John E Hein wrote: > The hard part is to get ports writers to think the right way about > DESTDIR after ignoring it for so many years. And once you decide to > go about fixing it, there's no way around that problem. My preferred solution involves a couple of shell commands, along the lines of the following: 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. Kris --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE41ecWry0BWjoQKURAqPIAJ0c05UFjJZKidsAyJtgBA3SlyuGtwCg4SsA 5Q1lJ29ihKYORGJ1Y5Kzm6I= =FdN9 -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q--