Date: Fri, 13 Oct 2017 16:43:40 -0600 From: Adam Weinberger <adamw@adamw.org> To: sgk@troutmask.apl.washington.edu Cc: freebsd-ports@freebsd.org Subject: Re: installing into alternate directory? Message-ID: <4C8FE32D-AD3E-4F5C-9BEC-0DF228A46B15@adamw.org> In-Reply-To: <20171013224113.GA98224@troutmask.apl.washington.edu> References: <20171013220845.GA97308@troutmask.apl.washington.edu> <2A851D87-275A-4858-8E32-D0CF55E45DF9@adamw.org> <20171013224113.GA98224@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 13 Oct, 2017, at 16:41, Steve Kargl = <sgk@troutmask.apl.washington.edu> wrote: >=20 > On Fri, Oct 13, 2017 at 04:29:39PM -0600, Adam Weinberger wrote: >>> On 13 Oct, 2017, at 16:08, Steve Kargl = <sgk@troutmask.apl.washington.edu> wrote: >>>=20 >>> I suspect that this is documented someplace. >>> In the old days, one coudl install ports in >>> an directory hierarchy other than /usr/local >>> by setting DESTDIR. This is/was handy in=20 >>> testing a new port, or in particular, an upgrade >>> of an abandoned port. >>>=20 >>> % cd /usr/ports/math/octave42 >>> % make >>> % setenv DESTDIR /usr/local/octave42 >>> % make install >>> =3D=3D=3D> Creating some important subdirectories >>> =3D=3D=3D> /tmp subdirectory has been successfully created >>> =3D=3D=3D> /dev subdirectory has been successfully created >>> =3D=3D=3D> Starting chrooted make in /usr/local/octave42... >>> chroot: /bin/sh: No such file or directory >>> =3D=3D=3D> Chrooted make in /usr/local/octave42 failed >>> =3D=3D=3D> Cleaning up... >>> *** Error code 1 >>>=20 >>> What? >>=20 >> PREFIX >>=20 >=20 > Does not work. 'make install' will then look for dependencies > under PREFIX. It won't find the dependencies, and then dutifully > populate PREFIX with those dependencies. I want 'make install' to > install only the files that will be installed from the math/octave42 > port. No dependencies. The dependencies are available iin = /usr/local. Hrmmn. I thought that dependencies were searched in LOCALBASE, not = PREFIX. # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C8FE32D-AD3E-4F5C-9BEC-0DF228A46B15>