NetBSD-Bugs archive

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

Re: misc/58098: build.sh release fails due to missing METALOG entries



The following reply was made to PR misc/58098; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: Rob Whitlock <rwhitlock22%gmail.com@localhost>
Cc: gnats-bugs%netbsd.org@localhost
Subject: Re: misc/58098: build.sh release fails due to missing METALOG entries
Date: Tue, 2 Apr 2024 16:59:18 +0200

 The METALOG file will not be cleaned if you use -u for different targets.
 This is not supported (and in general not needed).
 
 You need to drop -u from your scripts or combine them into a single build.sh
 invocation.
 
 See this section in the top level Makefile:
 
 ---8<---
 # Delete or sanitise a leftover METALOG from a previous build.
 clean_METALOG: .PHONY .MAKE
 .if ${MKUPDATE} != "no"
         ${MAKEDIRTARGET} distrib/sets clean_METALOG
 .endif
 --->8---
 
 So instead of doing it in tiny pieces, combine the whole invocation into
 something like:
 
 
 ./build.sh -U -O /usr/src_netbsd-10_buildsh/build1-amd64-thinkpad -j2 -D /usr/src_netbsd-10_buildsh/destdir -x -X /usr/src_netbsd-10_buildsh/xsrc release kernel=THINKPAD_BUILDSH
 
 
 When something goes wrong and you want to re-try, you can add -u.
 
 When it works, copy the kernel to /netbsd and do the "installmodules" step
 with -u.
 
 You should not reboot with new kernel but modules not yet updated (usually
 harmless, but in general not).
 
 Martin
 


Home | Main Index | Thread Index | Old Index