Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jan 2017 07:43:34 -0500
From:      scrat <baho-utot@columbus.rr.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Building base, other than by default
Message-ID:  <cfd27e99-0be4-40a6-4f65-344cc3e83d7c@columbus.rr.com>
In-Reply-To: <9e99b996-360d-2a9f-a5fc-5e2da45c551a@ShaneWare.Biz>
References:  <586D66D6.5070901@columbus.rr.com> <9e99b996-360d-2a9f-a5fc-5e2da45c551a@ShaneWare.Biz>

next in thread | previous in thread | raw e-mail | index | archive | help


On 01/05/17 00:49, Shane Ambler wrote:
> On 05/01/2017 07:49, Baho Utot wrote:
>> I am working on a script to build base and I want to build it in another
>> directory other than /usr/src.
>> I would also like to place the result binaries in another directory
>> other than /usr/obj.
>> I also would like to build as a non-root user.
>>
>> Is this possible and can I install base from the build.
>
> You can checkout the source code anywhere you want. The permissions on
> the directories should be the only factor preventing a user from compiling.
>
> In your environment set MAKEOBJDIRPREFIX to the path you want the
> buildworld binaries while compiling, you can pass DESTDIR to
> installworld to install into a different directory.
>
> env MAKEOBJDIRPREFIX=~/mybuild make buildworld
> make installworld DESTDIR=~/myworld
>
> You can also set __MAKE_CONF and SRCCONF to use different settings for
> each build.
>
>

Ok thanks I will try that



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cfd27e99-0be4-40a6-4f65-344cc3e83d7c>