Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2024 08:12:57 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Mark Johnston <markj@FreeBSD.org>, dev-commits-src-main@freebsd.org
Subject:   RE: git: d7d5c9efef03 - main - pkgbase: Let source packages be built in parallel
Message-ID:  <7B9F6ED4-4906-43CC-860F-DB4AA3FD44D9@yahoo.com>
References:  <7B9F6ED4-4906-43CC-860F-DB4AA3FD44D9.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mark Johnston <markj_at_FreeBSD.org> wrote on
Date: Mon, 19 Aug 2024 14:37:37 UTC :

> The branch main has been updated by markj:
>=20
> URL: =
https://cgit.FreeBSD.org/src/commit/?id=3Dd7d5c9efef031aa11a841d1836f7c937=
dcbe4ec8
>=20
> commit d7d5c9efef031aa11a841d1836f7c937dcbe4ec8
> Author: Mark Johnston <markj@FreeBSD.org>
> AuthorDate: 2024-08-19 14:08:05 +0000
> Commit: Mark Johnston <markj@FreeBSD.org>
> CommitDate: 2024-08-19 14:37:27 +0000
>=20
> pkgbase: Let source packages be built in parallel
>=20
> To build the packages target, we build src and src-sys packages
> containing the source code from which the repo was built. These
> packages take significantly longer than the others, presumably because
> they contain many more files. Because both source packages are built
> to satisfy the same target, they end up being built serially. Split
> them into separate subtargets so that they can run in parallel. This
> saves a couple of minutes on my build machine.
. . .

For parallel execution of the 2 targets below, aren't
the following "rm -f" commands racy relative to the
later *.plist generation activity in each of the
". . ." sections of code ?

create-source-src-package: _pkgbootstrap .PHONY
	rm -f ${SSTAGEDIR}/*.plist 2>/dev/null || :
	. . .
	. . . > ${SSTAGEDIR}/src.plist
	. . .

create-source-src-sys-package: _pkgbootstrap .PHONY
	rm -f ${SSTAGEDIR}/*.plist 2>/dev/null || :
	. . .
	. . . > ${SSTAGEDIR}/src-sys.plist
	. . .

=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7B9F6ED4-4906-43CC-860F-DB4AA3FD44D9>