Re: make buildworls over NFS

From: Masachika ISHIZUKA <ish_at_amail.plala.or.jp>
Date: Wed, 23 Jun 2021 00:11:35 UTC
>   I want to 'make buildworld' over NFS and they could.
>   Recently, I changed to zfs from ufs, and many file are set
> uarch (archive flag). (ex. /usr/bin/bzip2)
> 
> % make -j4 buildworld
> (snip)
> --------------------------------------------------------------
>>>> Rebuilding the temporary build tree
> --------------------------------------------------------------
> (snip)
> --- host-symlinks ---
> Linking host tools into /usr/obj/usr/src/amd64.amd64/tmp/legacy/bin
> cp: chflags: /usr/obj/usr/src/amd64.amd64/tmp/legacy/bin/bzip2: Operation not supported
> *** [host-symlinks] Error code 1
> 
>   I can 'make buildworld' after clear uarch flags on all files in
> /bin, /sbin, /usr/bin and /usr/sbin.
>   Is there any way to 'make buildworld' easier ?

  My workaround is:

(1) edit /usr/src/tools/build/Makefile
  [old] _COPY_HOST_TOOL=cp -pf
  [new] _COPY_HOST_TOOL=ln -sfn

(2) edit /usr/src/Makefile.inc1
  [old] cp -pf ${.CURDIR}/sys ${WORLDTMP}
  [new] ln -sfn ${.CURDIR}/sys ${WORLDTMP}
-- 
Masachika ISHIZUKA