From owner-freebsd-ports@freebsd.org Fri Oct 13 22:50:58 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BF9B1E2F321 for ; Fri, 13 Oct 2017 22:50:58 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from apnoea.adamw.org (apnoea.adamw.org [104.225.5.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "apnoea.adamw.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 178CD7C23B for ; Fri, 13 Oct 2017 22:50:57 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by apnoea.adamw.org (OpenSMTPD) with ESMTPSA id 20f6adf1 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Fri, 13 Oct 2017 16:50:56 -0600 (MDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: installing into alternate directory? From: Adam Weinberger In-Reply-To: <20171013224113.GA98224@troutmask.apl.washington.edu> Date: Fri, 13 Oct 2017 16:50:54 -0600 Cc: freebsd-ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <38457A3C-7FA0-427E-92E9-84B5CF5A5177@adamw.org> References: <20171013220845.GA97308@troutmask.apl.washington.edu> <2A851D87-275A-4858-8E32-D0CF55E45DF9@adamw.org> <20171013224113.GA98224@troutmask.apl.washington.edu> To: sgk@troutmask.apl.washington.edu X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2017 22:50:58 -0000 > On 13 Oct, 2017, at 16:41, Steve Kargl = wrote: >=20 > On Fri, Oct 13, 2017 at 04:29:39PM -0600, Adam Weinberger wrote: >>> On 13 Oct, 2017, at 16:08, Steve Kargl = 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. >=20 > --=20 > Steve Ah. I just actually read the error message you printed, which is from = octave42, not the ports system. DESTDIR is set very intentionally by the = ports system, and is essential for staging. It is not meant to be = overridden. Given that the error comes from the port's build and not bsd.port.mk, = and given that there is no math/octave42 in the ports tree, all I can = tell you is that PREFIX is how you specify where things get installed. = Don't set it in the environment, pass it directly to make as an argument = or in make.conf. If things are being searched for in PREFIX instead of = LOCALBASE, that sounds to me like a bug. # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org