From owner-freebsd-questions@freebsd.org Sat Jun 10 13:40:40 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 0BD99B9516A for ; Sat, 10 Jun 2017 13:40:40 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cdptpa-oedge", Issuer "cdptpa-oedge" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C62C4784E1 for ; Sat, 10 Jun 2017 13:40:38 +0000 (UTC) (envelope-from baho-utot@columbus.rr.com) Received: from [65.186.81.207] ([65.186.81.207:40677] helo=raspberrypi.bildanet.com) by cdptpa-omsmta03 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id 70/2E-00833-5D6FB395; Sat, 10 Jun 2017 13:40:37 +0000 Received: from [192.168.1.143] (helo=desktop.example.com) by raspberrypi.bildanet.com with esmtp (Exim 4.84) (envelope-from ) id 1dJgd3-0003gG-9n for freebsd-questions@freebsd.org; Sat, 10 Jun 2017 09:40:37 -0400 Subject: Re: Building base source To: FreeBSD Questions References: <44y3t19e5i.fsf@lowell-desk.lan> <872fe20f-fece-9980-2c8f-10e9492ab786@columbus.rr.com> <20170610052351.000ca108.freebsd@edvax.de> From: Baho Utot Message-ID: Date: Sat, 10 Jun 2017 09:40:37 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170610052351.000ca108.freebsd@edvax.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.88:25 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 13:40:40 -0000 On 06/09/17 23:23, Polytropon wrote: > 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. > > > I want to build with a user so if I make a mistake ( very likely ) it will not damage the running system. I have found that make installkernel and installworld requires root user because it sets the user as root perms regardless of where the install is going. This is a bit odd for me ( I was LFS and building and packaging my own linux ).