NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/39618: build.sh changes location of DESTDIR



>Number:         39618
>Category:       bin
>Synopsis:       build.sh changes location of DESTDIR
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 24 01:40:01 +0000 2008
>Originator:     reed%reedmedia.net@localhost
>Release:        NetBSD 4.99.62
>Organization:
  Jeremy C. Reed
>Environment:
        
        
System: NetBSD tx.reedmedia.net 4.99.62 NetBSD 4.99.62 (GENERIC) #13: Wed Aug 6 
17:23:27 CDT 2008 
reed%tx.reedmedia.net@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Following BUILDING examples, I ran ./build.sh -U distribution followed
by sudo ./build.sh -U install=/

The DESTDIR changed so it errored due to missing METALOG.

No mk.conf other than for BSD_PKG_MK.

The ./build.sh -U distribution said:

===> Successful make distribution
===> build.sh ended:   Tue Sep 23 16:45:49 CDT 2008
===> Summary of results:
         build.sh command: ./build.sh -U distribution
         build.sh started: Tue Sep 23 14:40:57 CDT 2008
         NetBSD version:   4.99.72
         MACHINE:          amd64
         MACHINE_ARCH:     x86_64
         Build platform:   NetBSD 4.99.62 amd64
         HOST_SH:          /bin/sh
         No /usr/src/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake, needs 
building.
         Bootstrapping nbmake
         TOOLDIR path:     /usr/src/tooldir.NetBSD-4.99.62-x86_64
         DESTDIR path:     /usr/src/destdir.amd64
         RELEASEDIR path:  /usr/src/releasedir
         Created /usr/src/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake
         makewrapper:      
/usr/src/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake-amd64
         Updated /usr/src/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake-amd64
         Successful make distribution
         build.sh ended:   Tue Sep 23 16:45:49 CDT 2008
===> .


But notice that the TOOLDIR, DESTDIR and RELEASEDIR are wrong for 
./build.sh -U install=/


===> build.sh command: ./build.sh -U install=/
===> build.sh started: Tue Sep 23 16:57:37 CDT 2008
===> NetBSD version:   4.99.72
===> MACHINE:          amd64
===> MACHINE_ARCH:     x86_64
===> Build platform:   NetBSD 4.99.62 amd64
===> HOST_SH:          /bin/sh
===> No /usr/src/obj/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake, needs 
building.
===> Bootstrapping nbmake
checking for sh... /bin/sh
...
#    objdir  /usr/obj/tools
===> TOOLDIR path:     /usr/src/obj/tooldir.NetBSD-4.99.62-x86_64
===> DESTDIR path:     /usr/src/obj/destdir.amd64
===> RELEASEDIR path:  /usr/src/obj/releasedir
===> Created /usr/src/obj/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake
===> makewrapper:      
/usr/src/obj/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake-amd64
===> Updated /usr/src/obj/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake-amd64
installsets ===> distrib/sets   (with: INSTALLDIR=/ INSTALLSETS=)
nbmake: don't know how to make /usr/src/obj/destdir.amd64/METALOG. Stop

Also why do I have both /usr/src/obj/ and /usr/obj/ directories?
I makde sure I removed both before starting. And then created a /usr/obj
to build the distribution because it failed because it was missing.

>How-To-Repeat:
18      time nice ./build.sh -U distribution
19      time sudo ./build.sh -U install=/
>Fix:
Sorry don't know yet.

Please don't tell me to set something in mk.conf, make a custom
wrapper script around build.sh, or add command line switches.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index