Skip to content

Fix file listing logic for top-level parallel build

Thomas Petazzoni buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2package/pkg-generic.mk: simplify step_pkg_sizepackage/pkg-generic.mk+6 -61 reply
1/2package/pkg-generic.mk: simplify step_pkg_size+0 -01 reply
2/2package/pkg-generic: make file list logic parallel build compatibleMakefile package/pkg-generic.mk+33 -411 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/2] Fix file listing logic for top-level parallel build

Hello,

The current logic in pkg-generic.mk that calculates the list of files installed by packages is not compatible with top-level parallel build. Indeed, when package N-1 has been finished installing, we keep a file that is then used after package N is installed to calculate which files were installed by package N. This is inherently broken for top-level parallel build, and we have seen build failures caused by this in top-level parallel build mode.

For example:

http://autobuild.buildroot.net/results/4e6/4e60fa31b1cd08bc7fdf9c5dd3a3f4941e029ba3/build-end.log

shows:

Quoted 1 line
Quoted 1 line
Quoted 1 line

capnproto 0.7.0 Installing to staging directory

comm: /home/giuliobenetti/autobuild/run/instance-0/output-1/build/.files-list-staging.new: No such file or directory package/pkg-generic.mk:311: recipe for target '/home/giuliobenetti/autobuild/run/instance-0/output-1/build/c-ares-1.15.0/.stamp_staging_installed' failed

which is an example of that: the .new file has been deleted in the mean time by another package being built.

This paytch series fixes that by making the installed file calculation a per-package logic, until target-finalize which will use the per-package file lists and gather them in a single global file list.

Thanks!

Thomas

Thomas Petazzoni (2):
package/pkg-generic.mk: simplify step_pkg_size package/pkg-generic: make file list logic parallel build compatible

 Makefile               | 15 ++++------
 package/pkg-generic.mk | 65 +++++++++++++++++++-----------------------
 2 files changed, 36 insertions(+), 44 deletions(-)
Signature · 1 line
2.24.1