5.3 and DESTDIR

Gary bsdmail at project415.org
Wed Jan 5 10:41:19 GMT 2005


Guys,

Sorry, this was on 'world' not buildworld.
In the end I just did a buildworld and then did the installworld DESTDIR 
option.

The main idea was to build a reliable set of binaries that could be 
replaced if, heaven forbid, a jailed machine got compromised. Also this 
had to be separate from the current system's binaries. (I know that the 
kernel/userland stuff should match).

I have just chugged on without the DESTDIR, although it would have been 
nice to do it as all my previous notes on this had said.

I got my jails rebuilt, now to just make sure I can successfully upgrade 
them.

Many thanks for the help.

=Gary


Paul Richards wrote:
> On Tue, Jan 04, 2005 at 09:48:21PM +0000, Gary wrote:
> 
>>Hi
>>
>>There seems to be something broken using DESTDIR when using buildworld.
>>
>>The command 'make buildworld DESTDIR=/opt/somewhere KERNCONF=MYKERNEL' 
>>fails with something looking like this..
>>
>> cc -O -pipe  -I/usr/obj/usr/src/i386/legacy/usr/include -c
>> /usr/src/games/fortune/strfile/strfile.c
>> make: don't know how to make /data/jail/172.16.1.99/usr/lib/libc.a. Stop
>>*** Error code 2
> 
> 
> I don't know what's causing this, it's going to be something local
> to your env. Building with DESTDIR works fine.
> 
> 
>>Making the command 'make buildworld KERNCONF=MYKERNEL'  works fine.
> 
> 
> buildworld doesn't build the kernel, so specifying KERNCONF is
> redundant in this case. There's a buildkernel target if you want to
> build the kernel. You can also put KERNCONF in /etc/make.conf to
> save you specifying it each time.
> 
> 
>>However, from the /usr/src/Makefile it notes the following
>>'@echo "Define DESTDIR to where you want to install FreeBSD,"'
>>
>>So I did.
>>
>>trinity# echo $DESTDIR
>>/opt/jails/jails.buildworld
>>
>>However this did not put anything in where I requested it should go.
> 
> 
> DESTDIR is not used during buildworld, only installworld, it
> determines where the newly built OS gets installed to. Therefore,
> you wouldn't see anything in the area you've specified until you
> run installworld.
> 
> It's MAKEOBJDIRPREFIX that determines where the build files go and
> by default that's /usr/obj/
> 





More information about the Ukfreebsd mailing list