commit:     b44325280357532c6f61a660d802c7545ef34252
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 26 01:21:47 2016 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Nov 26 01:22:57 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4432528

app-emulation/open-vm-tools: fix mount.vmhgfs symlink

https://github.com/vmware/open-vm-tools/pull/66

Package-Manager: portage-2.3.2_p8

 .../open-vm-tools/files/10.1.0-mount.vmhgfs.patch  | 33 ++++++++++++++++++++++
 .../open-vm-tools/open-vm-tools-10.1.0.ebuild      |  9 ++++--
 2 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/app-emulation/open-vm-tools/files/10.1.0-mount.vmhgfs.patch 
b/app-emulation/open-vm-tools/files/10.1.0-mount.vmhgfs.patch
new file mode 100644
index 00000000..bff9781
--- /dev/null
+++ b/app-emulation/open-vm-tools/files/10.1.0-mount.vmhgfs.patch
@@ -0,0 +1,33 @@
+From 1805ab024b10e8185175de7ce9c9b9db87fd0897 Mon Sep 17 00:00:00 2001
+From: Bernd Zeimetz <[email protected]>
+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

diff --git a/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild 
b/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild
index 6a3727d..3fdaed5 100644
--- a/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild
+++ b/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild
@@ -59,6 +59,11 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}/${MY_P}/open-vm-tools"
 
+PATCHES=(
+       "${FILESDIR}/10.1.0-mount.vmhgfs.patch"
+       "${FILESDIR}/10.1.0-vgauth.patch"
+)
+
 pkg_setup() {
        linux-info_get_any_version
        local CONFIG_CHECK="~VMWARE_BALLOON ~VMWARE_PVSCSI ~VMXNET3"
@@ -73,8 +78,8 @@ pkg_setup() {
 }
 
 src_prepare() {
-       eapply -p2 "${FILESDIR}/10.1.0-vgauth.patch"
-       default
+       eapply -p2 "${PATCHES[@]}"
+       eapply_user
        eautoreconf
 }
 

Reply via email to