Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Simon J. Gerraty
Mark Millard wrote: > > I think you could use something like this, which should be safe to > > commit: > > I do not have a commit bit. Should I submit a bugzilla > entry or something for its eventual commit? That's ok. Confirm it works for you and I'll see if I can break anything with it > >

Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Mark Millard
On May 6, 2025, at 16:07, Simon J. Gerraty wrote: > Mark Millard wrote: >> Yes, if the value of MAKEOBJDIRPREFIX isn't consistent that's going to >> cause problems (I'd call it a bug). If so don't use MAKEOBJDIRPREFIX >> directly, set some other variable and export that. >> Hmm src.sys.obj.mk pl

Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Simon J. Gerraty
Mark Millard wrote: > Yes, if the value of MAKEOBJDIRPREFIX isn't consistent that's going to > cause problems (I'd call it a bug). If so don't use MAKEOBJDIRPREFIX > directly, set some other variable and export that. > Hmm src.sys.obj.mk plays games with MAKEOBJDIRPREFIX so that's > probably not a

Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Mark Millard
On May 6, 2025, at 13:14, Simon J. Gerraty wrote: > Mark Millard wrote: >>> Of course trying to get too clever can end up being counter productive, >>> but the tools are there... >> >> I still have the addition that we found was needed >> in my experiments years ago (white space details >> belo

Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Simon J. Gerraty
Mark Millard wrote: > > Of course trying to get too clever can end up being counter productive, > > but the tools are there... > > I still have the addition that we found was needed > in my experiments years ago (white space details > below may not have been preserved): IIRC there are a few prob

Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Nuno Teixeira
Same context of WITH_META_MODE, it will speed up for sure my builds, tunning what parts/targets of llvm will be built: > WITH_LLVM_TARGET_AARCH64= > WITH_LLVM_TARGET_ARM= > WITHOUT_LLVM_TARGET_MIPS= > WITHOUT_LLVM_TARGET_POWERPC= > WITHOUT_LLVM_TARGET_RISCV= > WITHOUT_LLVM_TARGET_X86= > I will u

Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Mark Millard
On May 6, 2025, at 11:09, Simon J. Gerraty wrote: > Mark Millard wrote: # cd /usr/src # make buildworld-jobs buildkernel-jobs >> >> The above used older commands and files from before >> the following install. META_MODE recorded the use of >> those commands. > > I'm sure you are awar

Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Mark Millard
On May 6, 2025, at 10:47, Nuno Teixeira wrote: > I use CURRENT on my laptop and rpi4 for some time now. > I like to see changes in src tree and then rebuild world and test for myself. > One of the things that attracts me is building and rebuilding stuff and maybe > that's why I'm so happy as a p

Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Simon J. Gerraty
Mark Millard wrote: > > > # cd /usr/src > > > # make buildworld-jobs buildkernel-jobs > > The above used older commands and files from before > the following install. META_MODE recorded the use of > those commands. I'm sure you are aware, but maybe not everyone is, that bmake contains a number o

Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Nuno Teixeira
Hello! I use CURRENT on my laptop and rpi4 for some time now. I like to see changes in src tree and then rebuild world and test for myself. One of the things that attracts me is building and rebuilding stuff and maybe that's why I'm so happy as a ports committer :) The only "change" that I do in

Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Mark Millard
On May 6, 2025, at 08:15, Nuno Teixeira wrote: > Hello Mark, > > Definitely I'm not getting the results I want with WITH_META_MODE using BEs > since most of the times I end up rebuilding almost everything in new BE. > > Should I stop using WITH_META_MODES a go straight to clean builds (clean

Re: incremental bulds from scratch with beinstall.sh

2025-05-06 Thread Nuno Teixeira
Hello Mark, Definitely I'm not getting the results I want with WITH_META_MODE using BEs since most of the times I end up rebuilding almost everything in new BE. Should I stop using WITH_META_MODES a go straight to clean builds (clean /usr/obj) instead? My first concern is to speed up builds expec

Re: incremental bulds from scratch with beinstall.sh

2025-05-05 Thread Nuno Teixeira
(...) This way i did have less compiling expecially on buildworld. My rpi4 is recompiling allmost everything in buildworld phase using beinstall.sh. I will use this mehod from now on. Thanks very much for your great explanation! Cheers, Nuno Teixeira escreveu (segunda, 5/05/2025 à(s) 23:36):

Re: incremental bulds from scratch with beinstall.sh

2025-05-05 Thread Nuno Teixeira
Hello Mark, Minutes ago I used a more tradicional way: # make buildworld-jobs buildkernel-jobs ``` RELEASE=Whatever > bectl create ${RELEASE} > bectl mount ${RELEASE} BASEDIR=/tmp/be_mount. # Use mount point returned by bectl mount > make DESTDIR=${BASEDIR} installkernel > etcupdate -p -D $

Re: incremental bulds from scratch with beinstall.sh

2025-05-05 Thread Mark Millard
Nuno Teixeira wrote on Date: Mon, 05 May 2025 20:37:09 UTC : > (...) > > Don't forget to `env NO_PKG_UPGRADE=yes beinstall.sh` to not mess with > ports and stuff. > > Nuno Teixeira escreveu (segunda, 5/05/2025 à(s) > 21:34): > > > Hello, > > > > Using incremental WITH_META_MODE builds, after

Re: incremental bulds from scratch with beinstall.sh

2025-05-05 Thread Nuno Teixeira
(...) Don't forget to `env NO_PKG_UPGRADE=yes beinstall.sh` to not mess with ports and stuff. Nuno Teixeira escreveu (segunda, 5/05/2025 à(s) 21:34): > Hello, > > Using incremental WITH_META_MODE builds, after installation with > beinstall.sh, building same src, a complete compilation happens.