Hi,

   Someone must be doing something similar, but so far I am
unable to figure out a solution. I have a 'make release'
sitting at: /vol/vol0/work/4-stable-chrootdir

   If I do the following:

cd /vol/vol0/work/4-stable-chrootdir/usr/src && \
   make DESTDIR=/tmp/destdir

   It fails trying to locate the install program:

--------------------------------------------------------------
>>> Installing everything..
--------------------------------------------------------------
cd /vol/vol0/work/4-stable-chrootdir/usr/src; make -f Makefile.inc1 install
===> share/info
install -o root -g wheel -m 444  dir-tmpl /tmp/destdir/usr/share/info/dir
install:No such file or directory
*** Error code 1

   A ktrace shows the following:

 28682 make     GIO   fd 1 wrote 74 bytes
       "install -o root -g wheel -m 444  dir-tmpl /tmp/destdir/usr/share/info/\
        dir
       "
 28682 make     RET   write 74/0x4a
 28682 make     CALL  vfork
 28683 make     RET   fork 0
 28683 make     CALL  execve(0xbfbfe568,0x8083004,0x8081100)
 28683 make     NAMI  
"/usr/obj/vol/vol0/work/4-stable-chrootdir/usr/src/i386/usr/sbin/install"
 28683 make     RET   execve -1 errno 2 No such file or directory
 28683 make     CALL  execve(0xbfbfe568,0x8083004,0x8081100)
 28683 make     NAMI  
"/usr/obj/vol/vol0/work/4-stable-chrootdir/usr/src/i386/usr/bin/install"
 28683 make     RET   execve -1 errno 2 No such file or directory
 28683 make     CALL  execve(0xbfbfe568,0x8083004,0x8081100)
 28683 make     NAMI  
"/usr/obj/vol/vol0/work/4-stable-chrootdir/usr/src/i386/usr/games/install"
 28683 make     RET   execve -1 errno 2 No such file or directory
 28683 make     CALL  execve(0xbfbfe568,0x8083004,0x8081100)
 28683 make     NAMI  "/tmp/install.28281/install"
 28683 make     RET   execve -1 errno 2 No such file or directory
 28683 make     CALL  write(0x2,0x809b780,0x7)
 28683 make     GIO   fd 2 wrote 7 bytes
       "install"
 28683 make     RET   write 7
 28683 make     CALL  write(0x2,0x807126c,0x1)
 28683 make     GIO   fd 2 wrote 1 byte
       ":"
 28683 make     RET   write 1
 28683 make     CALL  write(0x2,0x80751b2,0x19)
 28683 make     GIO   fd 2 wrote 25 bytes
       "No such file or directory"


   It appears that the current working directory is not being
honored correctly. Looking into usr/src/Makefile.inc1 it appears
that the WORLDTMP macro is the problem, but I do not see an obvious
solution.

WORLDTMP=       ${OBJTREE}${.CURDIR}/${MACHINE_ARCH}

   I've played around with MAKEOBJDIRPREFIX, but it does not
interact nicely with .CURDIR.

   Any hints, pointers, or clue-bats are appreciated.

Thanks!
John


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to