Thank you ocicat and jggimi.
Quote:
Originally Posted by ocicat
.
Quote:
Originally Posted by comet--berkeley
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?