Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2008 00:09:21 +0930
From:      Wayne Sierke <ws@au.dyndns.ws>
To:        freebsd-gnats-submit <freebsd-gnats-submit@FreeBSD.org>
Subject:   ports/126099: emulators/open-vm-tools fails to create symbolic link /etc/vmware-tools -> share/vmware-tools
Message-ID:  <1217428761.4383.40.camel@predator-ii.buffyverse>
Resent-Message-ID: <200807301500.m6UF03to074350@freefall.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help

>Number:         126099
>Category:       ports
>Synopsis:       emulators/open-vm-tools fails to create symbolic link /etc/vmware-tools -> share/vmware-tools
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 30 15:00:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Wayne Sierke
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD freebsd7stable-1.vmware 7.0-STABLE FreeBSD 7.0-STABLE #0: Fri Jun 20 20:16:55 CST 2008 root@freebsd7stable-1.vmware:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	open-vm-tools doesn't link /etc/vmware-tools to the directory where the scripts get installed with the result that certain vmware facilities such as updating the guest system's clock on resume are rendered inoperative.
>How-To-Repeat:
	Install emulators/open-vm-tools in a pristine FreeBSD guest VMware environment.
No /etc/vmware-tools entry is created - apparently where the vmware tools expect to find the scripts installed instead in share/vmware-tools/.
Attempting to suspend the vm results in vmware-player issuing error dialogs about being unable to execute scripts.
>Fix:

	
Take our lead from emulators/vmware-guestd6, however my ports-fu is weak so I recommend these changes be reviewed.

--- Makefile.orig       2008-07-09 01:33:31.000000000 +0930
+++ Makefile    2008-07-23 22:14:02.000000000 +0930
@@ -85,6 +85,7 @@
        ${INSTALL_SCRIPT} ${WRKSRC}/scripts/freebsd/poweron-vm-default ${PREFIX}/share/vmware-tools/poweron-vm-default
        ${INSTALL_SCRIPT} ${WRKSRC}/scripts/freebsd/resume-vm-default ${PREFIX}/share/vmware-tools/resume-vm-default
        ${INSTALL_SCRIPT} ${WRKSRC}/scripts/freebsd/suspend-vm-default ${PREFIX}/share/vmware-tools/suspend-vm-default
+       ${LN} -sfh ${PREFIX}/share/vmware-tools /etc/vmware-tools
 .if !defined(WITHOUT_X11)
        ${INSTALL} ${WRKSRC}/toolbox/vmware-toolbox ${LOCALBASE}/sbin/vmware-toolbox
        ${INSTALL} ${WRKSRC}/vmware-user/vmware-user ${LOCALBASE}/sbin/vmware-user


--- pkg-plist.orig      2008-07-09 01:33:48.000000000 +0930
+++ pkg-plist   2008-07-24 03:49:37.000000000 +0930
@@ -22,3 +22,5 @@
 @unexec if test -f %D/share/vmware-tools/tools.conf; then rm -f %D/share/vmware-tools/tools.conf; fi
 @dirrmtry lib/vmware-tools/modules
 @dirrmtry lib/vmware-tools
+@cwd /
+etc/vmware-tools


--- pkg-plist-x11.orig  2008-07-09 01:33:48.000000000 +0930
+++ pkg-plist-x11       2008-07-24 03:48:24.000000000 +0930
@@ -24,3 +24,5 @@
 @unexec if test -f %D/share/vmware-tools/tools.conf; then rm -f %D/share/vmware-tools/tools.conf; fi
 @dirrmtry lib/vmware-tools/modules
 @dirrmtry lib/vmware-tools
+@cwd /
+etc/vmware-tools



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?1217428761.4383.40.camel>