You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-emulation/open-vm-tools/files/10.1.0-mount.vmhgfs.patch

34 lines
1.3 KiB

From 1805ab024b10e8185175de7ce9c9b9db87fd0897 Mon Sep 17 00:00:00 2001
From: Bernd Zeimetz <bernd@bzed.de>
Date: Sun, 10 Jan 2016 22:18:04 +0100
Subject: [PATCH] Fix mount.vmhgfs symlinks if DESTDIR is used
Without this change symlinks in the form of
sbin/mount.vmhgfs -> /build/open-vm-tools-10.0.5-3227872/debian/open-vm-tools/usr/sbin/mount.vmhgfs
are being produced, if DESTDIR was uset while running make install.
---
open-vm-tools/hgfsmounter/Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/open-vm-tools/hgfsmounter/Makefile.am b/open-vm-tools/hgfsmounter/Makefile.am
index e48417e..fe70892 100644
--- a/open-vm-tools/hgfsmounter/Makefile.am
+++ b/open-vm-tools/hgfsmounter/Makefile.am
@@ -33,14 +33,14 @@ install-exec-hook:
mv $(DESTDIR)$(sbindir)/mount.vmhgfs \
$(DESTDIR)$(sbindir)/mount_vmhgfs
-$(MKDIR_P) $(DESTDIR)/sbin
- -$(LN_S) $(DESTDIR)$(sbindir)/mount_vmhgfs \
+ -$(LN_S) $(sbindir)/mount_vmhgfs \
$(DESTDIR)/sbin/mount_vmhgfs &> /dev/null
uninstall-hook:
rm -f $(DESTDIR)$(sbindir)/mount_vmhgfs
else
install-exec-hook:
-$(MKDIR_P) $(DESTDIR)/sbin
- -$(LN_S) $(DESTDIR)$(sbindir)/mount.vmhgfs \
+ -$(LN_S) $(sbindir)/mount.vmhgfs \
$(DESTDIR)/sbin/mount.vmhgfs &> /dev/null
uninstall-hook:
rm -f $(DESTDIR)/sbin/mount.vmhgfs