Subject: misc/32345: BUILDING information loss
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <andre@fc.unesp.br>
List: netbsd-bugs
Date: 12/20/2005 20:25:00
>Number:         32345
>Category:       misc
>Synopsis:       BUILDING information loss
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 20 20:25:00 +0000 2005
>Originator:     André Luiz de Oliveira
>Release:        2.1
>Organization:
>Environment:
NetBSD tanenbaum 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec  1 10:58:25 UTC 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
while trying to generate some builds from the 2.1 source, i've found that 
the DESTDIR, RELEASEDIR and TOOLDIR variables should be set with absolute 
pathnames, if not, the build just fails.
attached follows a patch to BUILDING, needs to be ported to the mdoc source.
>How-To-Repeat:
uncompress the source sets and get into the source directory (usually 
/usr/src):

   $ cd /usr/src
   
so build with the following:

   $ make NOCLEANDIR=yes MKUPDATE=yes TOOLDIR=../tooldir DESTDIR=../dest RELEASEDIR=../release MKUNPRIVED=yes MKX11=no release
>Fix:
Index: BUILDING
===================================================================
RCS file: /cvsroot/src/BUILDING,v
retrieving revision 1.50
diff -u -p -r1.50 BUILDING
--- BUILDING    19 Mar 2004 12:34:39 -0000      1.50
+++ BUILDING    20 Dec 2005 20:02:50 -0000
@@ -128,7 +128,8 @@ CONFIGURATION
                  their default use of the host system's /usr/include,
                  /usr/lib, and so forth.  This pathname should not end with a
                  slash (/) character (for installation into the system's root
-                 directory, set DESTDIR to an empty string).  The directory
+                 directory, set DESTDIR to an empty string), it also can't be a
+                 relative pathname, use an absolute one.  The directory
                  must reside on a file system which supports long file names
                  and hard links.
 
@@ -276,12 +277,13 @@ CONFIGURATION
 
                  Default: ``no''
 
-     TOOLDIR     Directory to hold the host tools, once built.  This directory
-                 should be unique to a given host system and NetBSD source
-                 tree.  (However, multiple targets may share the same TOOLDIR;
-                 the target-dependent files have unique names.)  If unset, a
-                 default based on the uname(1) information of the host plat-
-                 form will be created in the .OBJDIR of src.
+     TOOLDIR     Directory to hold the host tools, once built.  The path 
+                 should be absolute. This directory should be unique to a
+                 given host system and NetBSD source tree.  (However, multiple
+                 targets may share the same TOOLDIR; the target-dependent
+                 files have unique names.)  If unset, a default based on the
+                 uname(1) information of the host plat- form will be created
+                 in the .OBJDIR of src.
 
                  Default: Unset.
 
@@ -367,6 +369,7 @@ CONFIGURATION
 
      RELEASEDIR       If set, specifies the directory to which a release(7)
                       layout will be written at the end of a ``make release''.
+                      Use an absolute path.
 
                       Default: Unset.