File tmp_build.patch of Package xen.7314

---
 tools/xenstore/Makefile |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Index: xen-4.7.2-testing/tools/xenstore/Makefile
===================================================================
--- xen-4.7.2-testing.orig/tools/xenstore/Makefile
+++ xen-4.7.2-testing/tools/xenstore/Makefile
@@ -89,6 +89,7 @@ $(CLIENTS_DOMU): xenstore
 
 xenstore: xenstore_client.o $(LIBXENSTORE)
 	$(CC) $< $(LDFLAGS) $(LDLIBS_libxenstore) $(SOCKET_LIBS) -o $@ $(APPEND_LDFLAGS)
+	$(CC) $< $(CFLAGS) $(LDFLAGS) -Wl,--build-id=uuid -L. -lxenstore $(SOCKET_LIBS) -o domu-$@
 
 xenstore-control: xenstore_control.o $(LIBXENSTORE)
 	$(CC) $< $(LDFLAGS) $(LDLIBS_libxenstore) $(SOCKET_LIBS) -o $@ $(APPEND_LDFLAGS)
@@ -142,10 +143,11 @@ endif
 	$(INSTALL_PROG) xenstore-control $(DESTDIR)$(bindir)
 	$(INSTALL_PROG) xenstore $(DESTDIR)$(bindir)
 	set -e ; for c in $(CLIENTS) ; do \
-		ln -f $(DESTDIR)$(bindir)/xenstore $(DESTDIR)$(bindir)/$${c} ; \
+		ln -fs xenstore $(DESTDIR)/usr/bin/$${c} ; \
 	done
+	$(INSTALL_PROG) domu-xenstore $(DESTDIR)/bin
 	for client in $(CLIENTS_DOMU); do \
-	    $(INSTALL_PROG) $$client $(DESTDIR)$(bindir)/$${client/domu-}; \
+	    ln -fs domu-xenstore $(DESTDIR)/bin/$${client/domu-}; \
 	done
 	$(INSTALL_DIR) $(DESTDIR)$(libdir)
 	$(INSTALL_SHLIB) libxenstore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)
openSUSE Build Service is sponsored by