All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/hotplug/Linux: Fix build
@ 2014-10-09 16:35 Anthony PERARD
  2014-10-09 16:53 ` Olaf Hering
  2014-10-09 16:54 ` Olaf Hering
  0 siblings, 2 replies; 20+ messages in thread
From: Anthony PERARD @ 2014-10-09 16:35 UTC (permalink / raw)
  To: Xen Devel; +Cc: Anthony PERARD, Olaf Hering, Ian Jackson, Ian Campbell

When building, it might happen that xen.conf in
tools/hotplug/Linux/systemd/Makefile is done twice, at the same time,
which leads to a not found file when calling move-if-changed.

Relevent part of an actual failed build:

make[6]: Entering directory '/build/xen-unstable/src/xen-unstable/tools/hotplug/Linux'
[...]
make -C systemd all
make -C systemd install
make[7]: Entering directory '/build/xen-unstable/src/xen-unstable/tools/hotplug/Linux/systemd'
make[7]: Entering directory '/build/xen-unstable/src/xen-unstable/tools/hotplug/Linux/systemd'
mv -f compat/.xlat/grant_table.h.new compat/.xlat/grant_table.h
rm -f xen.conf.tmp
for mod in xen-evtchn xen-gntdev xen-gntalloc xen-blkback xen-netback xen-pciback evtchn gntdev netbk blkbk xen-scsibk usbbk pciback xen-acpi-processor blktap2 blktap ; do \
  echo $mod ; \
  done > xen.conf.tmp
rm -f xen.conf.tmp
if ! cmp -s xen.conf.tmp xen.conf; then mv -f xen.conf.tmp xen.conf; else rm -f xen.conf.tmp; fi
for mod in xen-evtchn xen-gntdev xen-gntalloc xen-blkback xen-netback xen-pciback evtchn gntdev netbk blkbk xen-scsibk usbbk pciback xen-acpi-processor blktap2 blktap ; do \
  echo $mod ; \
  done > xen.conf.tmp
if ! cmp -s xen.conf.tmp xen.conf; then mv -f xen.conf.tmp xen.conf; else rm -f xen.conf.tmp; fi
[ -d /build/xen-unstable/src/xen-unstable/dist/install/usr/lib/systemd/system/ ] || \
  /build/xen-unstable/src/xen-unstable/tools/hotplug/Linux/systemd/../../../../tools/cross-install -d -m0755 -p /build/xen-unstable/src/xen-unstable/dist/install/usr/lib/systemd/system/
mv: cannot stat 'xen.conf.tmp': No such file or directory
Makefile:42: recipe for target 'xen.conf' failed
make[7]: *** [xen.conf] Error 1
make[7]: Leaving directory '/build/xen-unstable/src/xen-unstable/tools/hotplug/Linux/systemd'
/build/xen-unstable/src/xen-unstable/tools/hotplug/Linux/../../../tools/Rules.mk:116: recipe for target 'subdir-install-systemd' failed
make[6]: *** [subdir-install-systemd] Error 2
make[6]: Leaving directory '/build/xen-unstable/src/xen-unstable/tools/hotplug/Linux'
/build/xen-unstable/src/xen-unstable/tools/hotplug/Linux/../../../tools/Rules.mk:111: recipe for target 'subdirs-install' failed
make[5]: *** [subdirs-install] Error 2

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>

---
build have been done with `make -j24`. Without the patch, the problem
always shows.
---
 tools/hotplug/Linux/systemd/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/hotplug/Linux/systemd/Makefile b/tools/hotplug/Linux/systemd/Makefile
index 6950d24..2b3c559 100644
--- a/tools/hotplug/Linux/systemd/Makefile
+++ b/tools/hotplug/Linux/systemd/Makefile
@@ -21,7 +21,7 @@ ALL_XEN_SYSTEMD =	$(XEN_SYSTEMD_MODULES)  \
 			$(XEN_SYSTEMD_SERVICE)
 
 .PHONY: all
-all:	install
+all:
 
 .PHONY: clean
 clean:
-- 
Anthony PERARD

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

end of thread, other threads:[~2014-10-14  9:59 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09 16:35 [PATCH] tools/hotplug/Linux: Fix build Anthony PERARD
2014-10-09 16:53 ` Olaf Hering
2014-10-09 16:54 ` Olaf Hering
2014-10-09 16:58   ` Andrew Cooper
2014-10-10  8:35     ` Ian Campbell
2014-10-10  8:44       ` Ian Campbell
2014-10-10  9:19         ` Wei Liu
2014-10-10  9:20           ` Ian Campbell
2014-10-10 10:03             ` Olaf Hering
2014-10-10  9:59         ` Olaf Hering
2014-10-10 10:42           ` Anthony PERARD
2014-10-10 11:19             ` Olaf Hering
2014-10-10 14:20               ` Anthony PERARD
2014-10-10 14:28                 ` Olaf Hering
2014-10-10 14:31                   ` Ian Campbell
2014-10-10 15:34                     ` Anthony PERARD
2014-10-13 14:31                       ` [PATCH V2] tools/hotplug: Removing of "all" dependency from "install" rule Anthony PERARD
2014-10-13 15:26                         ` Ian Jackson
2014-10-14  9:58                           ` Ian Campbell
2014-10-14  9:59                           ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.