From owner-freebsd-questions@freebsd.org Sat Jun 10 03:23:57 2017 Return-Path: Delivered-To: freebsd-questions@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 19151C78430 for ; Sat, 10 Jun 2017 03:23:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay13.qsc.de (mailrelay13.qsc.de [212.99.187.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3C69E3BBF for ; Sat, 10 Jun 2017 03:23:55 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay13.qsc.de; Sat, 10 Jun 2017 05:23:53 +0200 Received: from r56.edvax.de (port-92-195-58-9.dynamic.qsc.de [92.195.58.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 670EB3CBF9; Sat, 10 Jun 2017 05:23:52 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v5A3NpOG002232; Sat, 10 Jun 2017 05:23:51 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 10 Jun 2017 05:23:51 +0200 From: Polytropon To: Baho Utot Cc: FreeBSD Questions Subject: Re: Building base source Message-Id: <20170610052351.000ca108.freebsd@edvax.de> In-Reply-To: <872fe20f-fece-9980-2c8f-10e9492ab786@columbus.rr.com> References: <44y3t19e5i.fsf@lowell-desk.lan> <872fe20f-fece-9980-2c8f-10e9492ab786@columbus.rr.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay13.qsc.de with D035F6834B3 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1248 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2017 03:23:57 -0000 On Fri, 9 Jun 2017 16:01:25 -0400, Baho Utot wrote: > > > On 06/09/17 15:03, Lowell Gilbert wrote: > > Baho Utot writes: > > > >> I am experimenting with building the base source. > >> > >> What do I need to set (which knobs) to be able to build the base > >> source and have the binaries built into a home directory. > >> > >> The source will be in /usr/src but I want all the binaries and all > >> other files produced by the build to goto in > >> /usr/home/FreeBSD/base/target. > >> > >> Will it be a copy of want is installed in the / (root) filesystem? > > > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html > > > > I have already looked at that. That is why I have the questions. I > want to build the base as a user and have it install its stuff into a > subdirectory. There are two variables that you will need to set: the directory where the build happens, and the one where the result from that build will be written to. The solution is quite simple, and of course already present in the build infrastructure: Set MAKEOBJDIRPREFIX and DESTDIR to locations where your $USER has write access. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...