1 |
commit: b44325280357532c6f61a660d802c7545ef34252 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 26 01:21:47 2016 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 26 01:22:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4432528 |
7 |
|
8 |
app-emulation/open-vm-tools: fix mount.vmhgfs symlink |
9 |
|
10 |
https://github.com/vmware/open-vm-tools/pull/66 |
11 |
|
12 |
Package-Manager: portage-2.3.2_p8 |
13 |
|
14 |
.../open-vm-tools/files/10.1.0-mount.vmhgfs.patch | 33 ++++++++++++++++++++++ |
15 |
.../open-vm-tools/open-vm-tools-10.1.0.ebuild | 9 ++++-- |
16 |
2 files changed, 40 insertions(+), 2 deletions(-) |
17 |
|
18 |
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 |
19 |
new file mode 100644 |
20 |
index 00000000..bff9781 |
21 |
--- /dev/null |
22 |
+++ b/app-emulation/open-vm-tools/files/10.1.0-mount.vmhgfs.patch |
23 |
@@ -0,0 +1,33 @@ |
24 |
+From 1805ab024b10e8185175de7ce9c9b9db87fd0897 Mon Sep 17 00:00:00 2001 |
25 |
+From: Bernd Zeimetz <bernd@××××.de> |
26 |
+Date: Sun, 10 Jan 2016 22:18:04 +0100 |
27 |
+Subject: [PATCH] Fix mount.vmhgfs symlinks if DESTDIR is used |
28 |
+ |
29 |
+Without this change symlinks in the form of |
30 |
+sbin/mount.vmhgfs -> /build/open-vm-tools-10.0.5-3227872/debian/open-vm-tools/usr/sbin/mount.vmhgfs |
31 |
+are being produced, if DESTDIR was uset while running make install. |
32 |
+--- |
33 |
+ open-vm-tools/hgfsmounter/Makefile.am | 4 ++-- |
34 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
35 |
+ |
36 |
+diff --git a/open-vm-tools/hgfsmounter/Makefile.am b/open-vm-tools/hgfsmounter/Makefile.am |
37 |
+index e48417e..fe70892 100644 |
38 |
+--- a/open-vm-tools/hgfsmounter/Makefile.am |
39 |
++++ b/open-vm-tools/hgfsmounter/Makefile.am |
40 |
+@@ -33,14 +33,14 @@ install-exec-hook: |
41 |
+ mv $(DESTDIR)$(sbindir)/mount.vmhgfs \ |
42 |
+ $(DESTDIR)$(sbindir)/mount_vmhgfs |
43 |
+ -$(MKDIR_P) $(DESTDIR)/sbin |
44 |
+- -$(LN_S) $(DESTDIR)$(sbindir)/mount_vmhgfs \ |
45 |
++ -$(LN_S) $(sbindir)/mount_vmhgfs \ |
46 |
+ $(DESTDIR)/sbin/mount_vmhgfs &> /dev/null |
47 |
+ uninstall-hook: |
48 |
+ rm -f $(DESTDIR)$(sbindir)/mount_vmhgfs |
49 |
+ else |
50 |
+ install-exec-hook: |
51 |
+ -$(MKDIR_P) $(DESTDIR)/sbin |
52 |
+- -$(LN_S) $(DESTDIR)$(sbindir)/mount.vmhgfs \ |
53 |
++ -$(LN_S) $(sbindir)/mount.vmhgfs \ |
54 |
+ $(DESTDIR)/sbin/mount.vmhgfs &> /dev/null |
55 |
+ uninstall-hook: |
56 |
+ rm -f $(DESTDIR)/sbin/mount.vmhgfs |
57 |
|
58 |
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 |
59 |
index 6a3727d..3fdaed5 100644 |
60 |
--- a/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild |
61 |
+++ b/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild |
62 |
@@ -59,6 +59,11 @@ DEPEND="${RDEPEND} |
63 |
|
64 |
S="${WORKDIR}/${MY_P}/open-vm-tools" |
65 |
|
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}/10.1.0-mount.vmhgfs.patch" |
68 |
+ "${FILESDIR}/10.1.0-vgauth.patch" |
69 |
+) |
70 |
+ |
71 |
pkg_setup() { |
72 |
linux-info_get_any_version |
73 |
local CONFIG_CHECK="~VMWARE_BALLOON ~VMWARE_PVSCSI ~VMXNET3" |
74 |
@@ -73,8 +78,8 @@ pkg_setup() { |
75 |
} |
76 |
|
77 |
src_prepare() { |
78 |
- eapply -p2 "${FILESDIR}/10.1.0-vgauth.patch" |
79 |
- default |
80 |
+ eapply -p2 "${PATCHES[@]}" |
81 |
+ eapply_user |
82 |
eautoreconf |
83 |
} |