Re: "etcupdate extract" -- Failed to build new tree.
- Reply: Dag-Erling_Smørgrav : "Re: "etcupdate extract" -- Failed to build new tree."
- Reply: Marek Zarychta : "Re: "etcupdate extract" -- Failed to build new tree."
- In reply to: Dag-Erling_Smørgrav : "Re: "etcupdate extract" -- Failed to build new tree."
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Oct 2025 13:37:23 UTC
On Tue, Oct 28, 2025 at 1:35 PM Dag-Erling Smørgrav <des@freebsd.org> wrote: > Thomas Schweikle <tschweikle@gmail.com> writes: > > Dag-Erling Smørgrav <des@freebsd.org> writes: > > > Thomas Schweikle <tschweikle@gmail.com> writes: > > > > Dag-Erling Smørgrav <des@freebsd.org> writes: > > > > > How was this system installed? > > > > By compiling 15-STABLE from latest available 14.3 getting sources > via > > > How did you install 14.3? > > Same way. It was Upgraded from 13-STABLE. And this was upgraded from > > 12-STABLE. If I remember it right, the system installed from > > disquettes was 5.0-RELEASE some way back in time ... > > Do you understand the difference between the words “install” and > “upgrade”? > > What did you use prior to etcupdate? When was /etc last updated? The last time mergemaster was available. Later on it was done manually, since etcupdate did not work. My findings: etcupdate just does not work, because right after cloning etc is not in a working state. It is, after running make _legacy in "/usr/src". Then it runs etcupdate extract etcupdate diff without this "Failed to build new tree.", but it then fails run etcupdate -p right after building world, kernel and installkernel, exhausting: "No previous tree to compare against, a sane comparison is not possible." just because there is no tree to compare against, or better: "etcupdate extract" created an empty tree without any files within.It is just "make _legacy" creates all the folders, etcupdate expects, but not the files. It seems all those advices given within the handbook or at various places within the internet all give it the wrong way: clone ettupdate extract etcupdate diff make buildworld make buildkernel make installkernel etcupdate -p reboot make installworld etcupdate -B reboot But clone make buildworld make buildkernel etcupdate extract etcupdate diff make installkernel etcupdate -p make installworld etcupdate -B reboot because you will never have a working etc before building world and kernel. And in tune you'd never will have anything you could extract. You are assuming something to extract, but there isn't anything before building. mergemaster did get this right (comparing the fresh build /usr/src etc against /etc). etcupdate does not -- at least if it is used the way the handbook advises. It would only work this way, if you did not clone the working tree right fresh into an empty directory (or after "git reset hard" -- removing anything from /usr/src what was created after the last "git pull" simulating "git clone" as far as possible). -- Thomas