Re: openbsd.org/faq/faq5.html#BldUserland - env DESTDIR="" make build

Joachim Schipper <[email protected]>
Newsgroups gmane.os.openbsd.www
Message-ID <[email protected]>
On Mon, May 17, 2010 at 10:22:11AM +0200, MERIGHI Marcus wrote:
> Hello www@ (nick?), 
> 
> under 5.3.5 (http://www.openbsd.org/faq/faq5.html#BldUserland), 
> it says 
> <bullet> Build the system:
> # cd /usr/src
> # make build
> 
> and should read
> <bullet> Build the system:
> # cd /usr/src
> # env DESTDIR="" make build
> 
> according to my experience. I created a script to run cvs/build/release
> and had 
> # export DESTDIR="/usr/dest" right at the top, which leads to the above
> "make build" to fail. I have no idea whether DESTDIR="" is correct, but
> make build works this way (again).
> 
> the use of env DESTDIR is documented only for the release process, in
> faq5 as well as in release(8). 
> 
> the only hint would be 
> # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs
> which could lead the considerate reader (apparently not me :) to
> recognise its use in the userland build process. 

The FAQ does not direct you to set DESTDIR to anything; if you leave it
unset, everything works fine.

I see no need to put this in the FAQ - there are plenty of environment
variables that, if messed with, can completely mess up the build. (E.g.
PATH, LD_PRELOAD, ...)

In short, don't do that.

		Joachim

-- 
PotD: x11/xfce4/xfce4-modemlights - Xfce4 ppp connection monitor panel
plugin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.