From owner-freebsd-ports@FreeBSD.ORG Wed Aug 16 17:55:43 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 747F016A4E6; Wed, 16 Aug 2006 17:55:43 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 141B643D9D; Wed, 16 Aug 2006 17:55:27 +0000 (GMT) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id 7D48299C7E0; Wed, 16 Aug 2006 19:55:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WGQumTrPWSMk; Wed, 16 Aug 2006 19:55:25 +0200 (CEST) Received: from [192.168.2.186] (catv-50635cb6.catv.broadband.hu [80.99.92.182]) by server.t-hosting.hu (Postfix) with ESMTP id 4D13399C7DD; Wed, 16 Aug 2006 19:55:25 +0200 (CEST) Message-ID: <44E35C08.3020502@FreeBSD.org> Date: Wed, 16 Aug 2006 19:55:20 +0200 From: =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Kris Kennaway References: <20060814234414.GA57035@hades.panopticon> <44E194BA.2020507@FreeBSD.org> <17634.5246.887894.836856@gromit.timing.com> <20060816173628.GA14848@xor.obsecurity.org> In-Reply-To: <20060816173628.GA14848@xor.obsecurity.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: babak@farrokhi.net, amdmi3@mail.ru, John E Hein , freebsd-ports@FreeBSD.org, Erwin Lansing 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:55:43 -0000 Kris Kennaway wrote: > 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 > This makes sense, but I did not succeed to use mount_nullfs on an 5.3-RELEASE/amd64 machine, while the same worked well on my 6.1/i386 computer, so I'm not sure mount_nullfs is reliable enough on older systems. Also, other targets should be supported as well, and the nullmounted directory should be umounted after he run. Anyway, I find this solution very good, if we can work this out a bit better, my progress so far would become pointless... -- Cheers, Gabor