summaryrefslogtreecommitdiffstats
path: root/sys-utils/Makemodule.am
diff options
context:
space:
mode:
authorMike Frysinger2015-05-04 05:51:04 +0200
committerKarel Zak2015-05-05 12:40:54 +0200
commit1eb19118939857152a63629dd85ed7a3f91dced8 (patch)
tree75fe3884ede702dcfa56c82863bd0d4fdbb1cdf3 /sys-utils/Makemodule.am
parentlibfdisk: (gpt) add API for raw partition attributes (diff)
downloadkernel-qcow2-util-linux-1eb19118939857152a63629dd85ed7a3f91dced8.tar.gz
kernel-qcow2-util-linux-1eb19118939857152a63629dd85ed7a3f91dced8.tar.xz
kernel-qcow2-util-linux-1eb19118939857152a63629dd85ed7a3f91dced8.zip
build-sys: fix parallel builds w/setarch links
The symlink generation tries to write to the sys-utils/ subdir but does not make sure that dir exists. This can sometimes lead to parallel build failures when building out-of-tree like: ... echo ".so man8/setarch.8" > sys-utils/linux64.8 /bin/bash: sys-utils/linux64.8: No such file or directory Makefile:11503: recipe for target 'sys-utils/linux64.8' failed make: *** [sys-utils/linux64.8] Error 1 References: https://bugs.gentoo.org/511812 Signed-off-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'sys-utils/Makemodule.am')
-rw-r--r--sys-utils/Makemodule.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am
index a1dc042d6..08bb6cea0 100644
--- a/sys-utils/Makemodule.am
+++ b/sys-utils/Makemodule.am
@@ -152,6 +152,7 @@ man_MANS += $(SETARCH_MAN_LINKS)
CLEANFILES += $(SETARCH_MAN_LINKS)
$(SETARCH_MAN_LINKS):
+ $(AM_V_at) test -d $(dir $@) || mkdir -p $(dir $@)
$(AM_V_GEN)echo ".so man8/setarch.8" > $@
install-exec-hook-setarch: