Skip to content

redhat/configs/process_configs.sh: Fix race with tools generation

Kernel builds are occasionally failing with (for example):

Processing /home/prarit/rpmbuild/BUILD/kernel-5.17/linux-5.17.0-0.test.fc35.x86_64/configs/kernel-5.17.0-s390x.config ...
Processing /home/prarit/rpmbuild/BUILD/kernel-5.17/linux-5.17.0-0.test.fc35.x86_64/configs/kernel-5.17.0-x86_64-debug.config ...
Processing /home/prarit/rpmbuild/BUILD/kernel-5.17/linux-5.17.0-0.test.fc35.x86_64/configs/kernel-5.17.0-x86_64.config ...
/bin/sh: line 1: scripts/basic/fixdep: Text file busy
make[1]: *** [scripts/Makefile.host:95: scripts/basic/fixdep] Error 126
make[1]: *** Deleting file 'scripts/basic/fixdep'
make: *** [Makefile:559: scripts_basic] Error 2
/bin/sh: line 1: scripts/basic/fixdep: Text file busy
make[1]: *** [scripts/Makefile.host:95: scripts/basic/fixdep] Error 126
make[1]: *** Deleting file 'scripts/basic/fixdep'
make: *** [Makefile:559: scripts_basic] Error 2

This occurs because the makes are conflicting with one another to create
the same files. This can be fixed by having the first make run on it's
own, and then having the remainder run in parallel.

Signed-off-by: Prarit Bhargava prarit@redhat.com

Edited by Prarit Bhargava

Merge request reports