Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2006 13:36:28 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        John E Hein <jhein@timing.com>
Cc:        babak@farrokhi.net, amdmi3@mail.ru, G??bor K??vesd??n <gabor@FreeBSD.org>, freebsd-ports@FreeBSD.org
Subject:   Re: DESTDIR implementation [Was:: ATTENTION: is the way DESTDIR was introduced completely wrong?]
Message-ID:  <20060816173628.GA14848@xor.obsecurity.org>
In-Reply-To: <17634.5246.887894.836856@gromit.timing.com>
References:  <20060814234414.GA57035@hades.panopticon> <44E194BA.2020507@FreeBSD.org> <17634.5246.887894.836856@gromit.timing.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060816173628.GA14848>