View Single Post
  #7   (View Single Post)  
Old 16th May 2012
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default

Thank you ocicat and jggimi.

Quote:
Originally Posted by ocicat View Post
.

Quote:
Originally Posted by comet--berkeley View Post
The DESTDIR is a possible issue. Before building 5.1-stable, I successfully built 5.0-stable and left two exports in the root .profile from building the 5.0-stable distribution:

export DESTDIR=/usr/dest
export RELEASEDIR=/usr/rel
Don't make these values persist in ~/.profile. I have made this mistake before, & it will wreck havoc in very subtle ways if present when building ports. DESTDIR & RELEASEDIR should only be set when building userland, & never elsewhere. Once userland is finished building, make sure these variables are no longer set.
I believe that the DESTDIR and/or RELEASEDIR environment variables are the issue.

As a new step in my userland build process I now do this:

unset DESTDIR
unset RELEASEDIR

And I am now able to build userland without modifying any makefiles.

(I just built the kernel and userland from sources with a manual patch.)

This bug has caught others in the past as well:

http://www.monkey.org/openbsd/archiv.../msg00346.html

http://www.mail-archive.com/misc@ope.../msg54292.html

And Amaud who created a work-around:

http://permalink.gmane.org/gmane.os.openbsd.tech/16531

After searching Google, Amaud's fix worked for me.

But perhaps the 'unset DESTDIR' and 'unset RELEASEDIR' commands should be put into
the FAQ?

Or even better yet put into the userland 'make build' process itself?

Last edited by comet--berkeley; 17th May 2012 at 05:53 AM. Reason: spelling
Reply With Quote