NetBSD-Bugs archive

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

bin/39619: build.sh looks for nbmake in wrong place and rebuilds after was just built



>Number:         39619
>Category:       bin
>Synopsis:       build.sh looks for nbmake in wrong place and rebuilds after 
>was just built
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 24 03:00:00 +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:
I built the distribution with ./build.sh -U distribution
which said:
...
         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

and then immediately ran sudo ./build.sh -U install=/
which said:
===> No /usr/src/obj/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake, needs building.
===> Bootstrapping nbmake
checking for sh... /bin/sh

Notice nbmake is at:

-rwxr-xr-x  1 reed  wsrc  166197 Sep 23 14:41 
/usr/src/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake
-rwxr-xr-x  1 reed  wsrc     925 Sep 23 14:41 
/usr/src/tooldir.NetBSD-4.99.62-x86_64/bin/nbmake-amd64

But second run adds "obj" to directory it looks under.
>How-To-Repeat:
rm -rf /usr/obj/* /usr/src/obj
created /usr/obj and owned by me and then:
      time nice ./build.sh -U distribution
      time sudo ./build.sh -U install=/
>Fix:
Use same path as was previously installed. Don't rebuild.

(I understand that if I was to reboot with newer kernel
then I should use -T switch to point to previous tools directory.)

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index