Skip to contentSkip to conversation

ioemu-stubdom: don't link *-softmmu* and *-linux-user*

PATCH In review Wei Liu 3 participants 4 messages May 12, 2017 – May 16, 2017

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 ioemu-stubdom: don't link *-softmmu* and *-linux-user*

They are generated by ./configure. Having them linked can cause race between tools build and stubdom build.

---
Cc: Ian Jackson <[email protected]>
Cc: Juergen Gross <[email protected]>
Cc: Julien Grall <[email protected]>

Should fix
http://logs.test-lab.xenproject.org/osstest/logs/109330/build-amd64/5.ts-xen-build.log

---
 stubdom/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
stubdom/Makefile +5 -3
index 54a2bdda0e..aef705dd1e 100644
@@ -295,10 +295,12 @@ ioemu/linkfarm.stamp: $(XEN_ROOT)/tools/qemu-xen-traditional-dir
 	$(buildmakevars2shellvars);						\
 	cd ioemu;								\
 	src="$$XEN_ROOT/tools/qemu-xen-traditional-dir"; export src;		\
-	(cd $$src && find * -type d -print) | xargs mkdir -p;			\
-	(cd $$src && find *	! -type l  -type f  $(addprefix ! -name ,	\
+	(cd $$src && find * -type d						\
+		$(addprefix ! -path , '*-softmmu*' '*-linux-user*') -print)	\
+		| xargs mkdir -p;						\
+	(cd $$src && find *	! -type l  -type f  $(addprefix ! -path ,	\
 			'*.[oda1]' 'config-*' config.mak qemu-dm qemu-img-xen	\
-			'*.html' '*.pod'					\
+			'*.html' '*.pod' '*-softmmu*' '*-linux-user*'		\
 			)) >linkfarm.stamp.tmp;				\
 	cmp -s linkfarm.stamp.tmp linkfarm.stamp &&			\
 		rm linkfarm.stamp.tmp || {				\
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw

Hi,

Quoted 9 lines · Wei Liu
Quoted 4 lines · Wei Liu

They are generated by ./configure. Having them linked can cause race between tools build and stubdom build.

FTR Juergen told me on IRC:

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by
#3 lore raw

Julien Grall writes ("Re: [PATCH for-4.9] ioemu-stubdom: don't link *-softmmu* and *-linux-user*"):

Quoted 5 lines · Wei Liu
Quoted 4 lines · Wei Liu
Quoted 3 lines

They are generated by ./configure. Having them linked can cause race between tools build and stubdom build.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

FTR Juergen told me on IRC:

I haven't analysed the race in detail but the explanation is plausible and the change is at worst harmless.

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel