Commit 28cd481a authored by Shrirang Bagul's avatar Shrirang Bagul Committed by Khalid Elmously

UBUNTU: [Packaging] force creation of headers directory

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.
Signed-off-by: default avatarAlfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>
Signed-off-by: default avatarShrirang Bagul <shrirang.bagul@canonical.com>
Acked-by: default avatarKleber Souza <kleber.souza@canonical.com>
Acked-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 57daeee4
......@@ -491,7 +491,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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment