From owner-freebsd-ports@freebsd.org Fri Oct 13 22:54:37 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 6939EE2F534 for ; Fri, 13 Oct 2017 22:54:37 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 514047C54A for ; Fri, 13 Oct 2017 22:54:37 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id v9DMsZNZ098381 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 13 Oct 2017 15:54:35 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id v9DMsZDw098380; Fri, 13 Oct 2017 15:54:35 -0700 (PDT) (envelope-from sgk) Date: Fri, 13 Oct 2017 15:54:35 -0700 From: Steve Kargl To: Adam Weinberger Cc: freebsd-ports@freebsd.org Subject: Re: installing into alternate directory? Message-ID: <20171013225435.GB98224@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <20171013220845.GA97308@troutmask.apl.washington.edu> <2A851D87-275A-4858-8E32-D0CF55E45DF9@adamw.org> <20171013224113.GA98224@troutmask.apl.washington.edu> <4C8FE32D-AD3E-4F5C-9BEC-0DF228A46B15@adamw.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C8FE32D-AD3E-4F5C-9BEC-0DF228A46B15@adamw.org> User-Agent: Mutt/1.7.2 (2016-11-26) 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:54:37 -0000 On Fri, Oct 13, 2017 at 04:43:40PM -0600, Adam Weinberger wrote: > > On 13 Oct, 2017, at 16:41, Steve Kargl wrote: > > On Fri, Oct 13, 2017 at 04:29:39PM -0600, Adam Weinberger wrote: > >>> On 13 Oct, 2017, at 16:08, Steve Kargl wrote: > >>> 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 > >>> testing a new port, or in particular, an upgrade > >>> of an abandoned port. > >>> > >>> % cd /usr/ports/math/octave42 > >>> % make > >>> % setenv DESTDIR /usr/local/octave42 > >>> % make install > >>> ===> Creating some important subdirectories > >>> ===> /tmp subdirectory has been successfully created > >>> ===> /dev subdirectory has been successfully created > >>> ===> Starting chrooted make in /usr/local/octave42... > >>> chroot: /bin/sh: No such file or directory > >>> ===> Chrooted make in /usr/local/octave42 failed > >>> ===> Cleaning up... > >>> *** Error code 1 > >>> > >>> What? > >> > >> PREFIX > >> > > > > 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. > % setenv PREFIX /usr/local/octave42 % cd /usr/ports/math/octave42 % make install .... ===> octave-4.2.1 depends on file: /usr/local/octave42/lib/qt4/bin/linguist - not found qt4-linguist-4.8.7_2: Makefile warning: in desktop entry #1 (/usr/local/octave42/lib/qt4/bin/linguist): field 5 (Categories) must contain at least one main desktop category (make -VDESKTOP_CATEGORIES_MAIN) ===> License LGPL21 accepted by the user ===> qt4-linguist-4.8.7_2 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by qt4-linguist-4.8.7_2 for building ===> Extracting for qt4-linguist-4.8.7_2 => SHA256 Checksum OK for KDE/qt-everywhere-opensource-src-4.8.7.tar.gz. ===> Patching for qt4-linguist-4.8.7_2 ===> Applying extra patch /usr/ports/devel/qt4/files/extrapatch-configure ===> Applying extra patch /usr/ports/devel/qt4/files/extrapatch-config.tests-unix-compile.test ===> Applying extra patch /usr/ports/devel/qt4/files/extrapatch-src-corelib-global-qglobal.h ===> Applying extra patch /usr/ports/devel/qt4/files/extrapatch-libtool ===> Applying extra patch /usr/ports/devel/qt4/files/extrapatch-armv6 ===> Applying FreeBSD patches for qt4-linguist-4.8.7_2 ===> qt4-linguist-4.8.7_2 depends on file: /usr/local/octave42/lib/qt4/bin/designer - not found qt4-designer-4.8.7_1: Makefile warning: in desktop entry #1 (/usr/local/octave42/lib/qt4/bin/designer): field 5 (Categories) must contain at least one main desk If you have an empty /usr/local, then 'make && make install' in math/octave pulls in some 250 ports. -- Steve