File xen-destdir.patch of Package xen.33142

Index: xen-4.17.0-testing/tools/xenstore/Makefile
===================================================================
--- xen-4.17.0-testing.orig/tools/xenstore/Makefile
+++ xen-4.17.0-testing/tools/xenstore/Makefile
@@ -42,7 +42,7 @@ xenstored: $(XENSTORED_OBJS-y)
 	$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(APPEND_LDFLAGS)
 
 $(CLIENTS): xenstore
-	ln -f xenstore $@
+	ln -sf xenstore $@
 
 xenstore: xenstore_client.o xs_lib.o
 	$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(APPEND_LDFLAGS)
@@ -70,11 +70,12 @@ install: all
 ifeq ($(XENSTORE_XENSTORED),y)
 	$(INSTALL_DIR) $(DESTDIR)$(sbindir)
 	$(INSTALL_PROG) xenstored $(DESTDIR)$(sbindir)
+	$(INSTALL_DIR) $(DESTDIR)$(bindir)
 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 -sf xenstore $(DESTDIR)$(bindir)/$${c} ; \
 	done
 
 .PHONY: uninstall
openSUSE Build Service is sponsored by