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



> On Apr 2, 2024, at 1:40 PM, Taylor R Campbell <riastradh%NetBSD.org@localhost> wrote:
> 
> The following reply was made to PR misc/58098; it has been noted by GNATS.
> 
> From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
> To: Martin Husemann <martin%duskware.de@localhost>
> Cc: Rob Whitlock <rwhitlock22%gmail.com@localhost>,
> 	gnats-bugs%NetBSD.org@localhost, netbsd-bugs%NetBSD.org@localhost
> Subject: Re: misc/58098: build.sh release fails due to missing METALOG entries
> Date: Tue, 2 Apr 2024 17:37:30 +0000
> 
> This issue isn't about the order of operations for building and
> installing an updated NetBSD -- the issue is that build.sh modules
> leaves a broken METALOG file lying around, which causes other build.sh
> operations to fail.
> 
> Just doing
> 
> ./build.sh -u ... tools
> ./build.sh -u ... modules
> ./build.sh -u ... release
> 
> is probably enough to reproduce the problem, without any install
> steps.
> 

Assuming that you meant that deleting -U would reproduce the problem, this is incorrect. Removing -U requires the build to be done as root. Building as an unprivileged user without -U fails with an error saying as such. When -U is removed and the commands are run as root with fresh -O and -D directories, they complete successfully. This makes sense because METALOG is only generated in the case of an unprivileged build because the build system can't set permissions willy nilly.


Home | Main Index | Thread Index | Old Index