]> git.proxmox.com Git - pve-kernel.git/commit - debian/rules
d/rules: close race between 'cp' and module handling
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 15 Jun 2021 11:27:29 +0000 (13:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 15 Jun 2021 12:31:10 +0000 (14:31 +0200)
commit5ca6d78da61779eabedba8c62f3c74bdc31b410e
tree4c18e774e0885e6258a937f3cfa9d427a7da5849
parentb5dd2682ff735b04b47c0dc1dd6dc2e7e0a7a103
d/rules: close race between 'cp' and module handling

sometimes the build would fail with

cp: cannot stat 'ubuntu-hirsute/.tmp_1987275': No such file or directory
make[1]: *** [debian/rules:181: .headers_prepare_mark] Error 1
make[1]: Leaving directory '/home/fgruenbichler/pve-kernel/build'
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
make: *** [Makefile:58: pve-kernel-5.11.21-1-pve_5.11.21-1_amd64.deb] Error 2

if copying was slow enough.

so let's do the copying first, then do the rest in parallel without
needing to worry about side-effects.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
debian/rules