Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH] build-sys: fix parallel builds w/setarch links
@ 2015-05-04  3:51 Mike Frysinger
  2015-05-05 10:37 ` Pádraig Brady
  2015-05-05 10:47 ` Karel Zak
  0 siblings, 2 replies; 9+ messages in thread
From: Mike Frysinger @ 2015-05-04  3:51 UTC (permalink / raw)
  To: util-linux

From: Mike Frysinger <vapier@chromium.org>

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>
---
 sys-utils/Makemodule.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am
index a1dc042..08bb6ce 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:
-- 
2.4.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-05-17  5:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-04  3:51 [PATCH] build-sys: fix parallel builds w/setarch links Mike Frysinger
2015-05-05 10:37 ` Pádraig Brady
2015-05-10 15:28   ` Mike Frysinger
2015-05-10 17:20     ` Bruce Dubbs
2015-05-10 20:38   ` Isaac Dunham
2015-05-11  8:05     ` Karel Zak
2015-05-16 17:50       ` Peter Cordes
2015-05-17  5:53         ` Mike Frysinger
2015-05-05 10:47 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox