Re: git: 65c603ed65c7 - main - release: distributekernel before packagekernel

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 10 Apr 2024 15:29:05 UTC
On 4/9/24 11:29 PM, Colin Percival wrote:
> The branch main has been updated by cperciva:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=65c603ed65c700d6eacdf9e1e94dc42fd70fb0b7
> 
> commit 65c603ed65c700d6eacdf9e1e94dc42fd70fb0b7
> Author:     Colin Percival <cperciva@FreeBSD.org>
> AuthorDate: 2024-04-10 03:26:51 +0000
> Commit:     Colin Percival <cperciva@FreeBSD.org>
> CommitDate: 2024-04-10 03:29:16 +0000
> 
>      release: distributekernel before packagekernel
>      
>      With these as a single make command, `make -j` breaks when it tries to
>      package up a kernel which hasn't been distributed yet.
>      
>      MFC after:      1 week

Hmm, should this section of the toplevel Makefile be updated instead?

.ORDER: buildworld installworld
.ORDER: buildworld distrib-dirs
.ORDER: buildworld distribution
.ORDER: buildworld distribute
.ORDER: buildworld distributeworld
.ORDER: buildworld buildkernel
.ORDER: distrib-dirs distribute
.ORDER: distrib-dirs distributeworld
.ORDER: distrib-dirs installworld
.ORDER: distribution distribute
.ORDER: distributeworld distribute
.ORDER: distributeworld distribution
.ORDER: installworld distribute
.ORDER: installworld distribution
.ORDER: installworld installkernel
.ORDER: buildkernel installkernel
.ORDER: buildkernel installkernel.debug
.ORDER: buildkernel reinstallkernel
.ORDER: buildkernel reinstallkernel.debug
.ORDER: kernel-toolchain buildkernel

Seems like explicit .ORDER's for the various package* targets might be useful in
general.

-- 
John Baldwin