[UNSTABLE][PATCH 2/2] UBUNTU: [Packaging] force creation of headers directory
Shrirang Bagul
shrirang.bagul at canonical.com
Wed Oct 23 04:07:25 UTC 2019
BugLink: https://bugs.launchpad.net/bugs/1847969
Due to a race condition, some times the headers directory already
exists when running the install-arch-headers rule. Make sure we do
not fail in that case.
Based on commit (in Bionic):
bb372cae8201: UBUNTU: [Packaging] force creation of headers directory
Signed-off-by: Alfonso Sánchez-Beato <alfonso.sanchez-beato at canonical.com>
Signed-off-by: Shrirang Bagul <shrirang.bagul at canonical.com>
---
debian/rules.d/2-binary-arch.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index f3279369c3a7..bd86d7b71fad 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -522,7 +522,8 @@ endif
find . -name '.' -o -name '.*' -prune -o -print | \
cpio -pvd --preserve-modification-time \
$(headers_dir)/usr/include/ )
- mkdir $(headers_dir)/usr/include/$(DEB_HOST_MULTIARCH)
+ mkdir -p $(headers_dir)/usr/include/$(DEB_HOST_MULTIARCH)
+ rm -rf $(headers_dir)/usr/include/$(DEB_HOST_MULTIARCH)/asm
mv $(headers_dir)/usr/include/asm $(headers_dir)/usr/include/$(DEB_HOST_MULTIARCH)/
rm -rf $(headers_tmp)
--
2.17.1
More information about the kernel-team
mailing list