aboutsummaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorJosh Paetzel <jpaetzel@FreeBSD.org>2018-09-29 05:29:28 +0000
committerJosh Paetzel <jpaetzel@FreeBSD.org>2018-09-29 05:29:28 +0000
commita9164c0a1c7be6a4bb30d8512d47057ddd61f50c (patch)
treeda1feb6df1709a81b65bd5dfbf0ce0347c97f503 /emulators
parent6e980f58a100e38138e31f1dcb657a54833c753d (diff)
downloadports-a9164c0a1c7be6a4bb30d8512d47057ddd61f50c.tar.gz
ports-a9164c0a1c7be6a4bb30d8512d47057ddd61f50c.zip
Update to 10.3.0
PR: 229985 Submitted by: John Wolfe <jwolfe@vmware.com>
Notes
Notes: svn path=/head/; revision=480889
Diffstat (limited to 'emulators')
-rw-r--r--emulators/open-vm-tools/Makefile11
-rw-r--r--emulators/open-vm-tools/distinfo6
-rw-r--r--emulators/open-vm-tools/files/patch-configure.ac20
-rw-r--r--emulators/open-vm-tools/files/patch-lib_auth_authPosix.c45
-rw-r--r--emulators/open-vm-tools/files/patch-lib_file_fileTempPosix.c21
-rw-r--r--emulators/open-vm-tools/files/patch-lib_guestApp_guestApp.c4
-rw-r--r--emulators/open-vm-tools/files/patch-lib_include_vm__basic__types.h10
-rw-r--r--emulators/open-vm-tools/files/patch-lib_vmCheck_vmcheck.c4
-rw-r--r--emulators/open-vm-tools/files/patch-modules_Makefile.am4
-rw-r--r--emulators/open-vm-tools/files/patch-modules_freebsd_vmmemctl_os.c122
-rw-r--r--emulators/open-vm-tools/files/patch-services_plugins_vix_vixTools.c37
11 files changed, 25 insertions, 259 deletions
diff --git a/emulators/open-vm-tools/Makefile b/emulators/open-vm-tools/Makefile
index 2df5927d97eb..755bbb2cdc0b 100644
--- a/emulators/open-vm-tools/Makefile
+++ b/emulators/open-vm-tools/Makefile
@@ -4,7 +4,6 @@
PORTNAME= open-vm-tools
PORTVERSION= ${RELEASE_VER}
DISTVERSIONPREFIX= stable-
-PORTREVISION= 4
PORTEPOCH= 2
CATEGORIES= emulators
@@ -18,8 +17,8 @@ ONLY_FOR_ARCHS= amd64 i386
LIB_DEPENDS= libmspack.so:archivers/libmspack
-RELEASE_VER= 10.2.5
-BUILD_VER= 8068406
+RELEASE_VER= 10.3.0
+BUILD_VER= 8931395
OPTIONS_DEFINE= DNET LIBNOTIFY OPENSSL X11
OPTIONS_DEFAULT= DNET LIBNOTIFY OPENSSL X11
@@ -42,7 +41,7 @@ OPENSSL_CONFIGURE_WITH= ssl
WRKSRC_SUBDIR= open-vm-tools
GNU_CONFIGURE= yes
-USES= autoreconf fuse gettext-runtime kmod libtool localbase pathfix pkgconfig
+USES= autoreconf fuse gettext-runtime kmod libtool localbase pathfix pkgconfig gnome
USE_GNOME= glib20
USE_GITHUB= yes
@@ -65,6 +64,10 @@ INSTALL_TARGET= install-strip
.include <bsd.port.options.mk>
+.if ${OSVERSION} < 1100000
+CFLAGS+= -Wno-unknown-warning-option
+.endif
+
.if ${PORT_OPTIONS:MX11}
CONFLICTS= open-vm-tools-nox11-[0-9]*
.else
diff --git a/emulators/open-vm-tools/distinfo b/emulators/open-vm-tools/distinfo
index 96122eec6922..bf3d0fe4bcbc 100644
--- a/emulators/open-vm-tools/distinfo
+++ b/emulators/open-vm-tools/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1524018090
-SHA256 (vmware-open-vm-tools-stable-10.2.5_GH0.tar.gz) = c0f182c0c422fca8f8b3e5c21802f724256dfe5907383db28ec7e4d5b6d52b0f
-SIZE (vmware-open-vm-tools-stable-10.2.5_GH0.tar.gz) = 3207633
+TIMESTAMP = 1533858593
+SHA256 (vmware-open-vm-tools-stable-10.3.0_GH0.tar.gz) = b3d0b5fd272a8dc35cab1ddd732f9d436f72682925212a6cdeccdab283e2f5ec
+SIZE (vmware-open-vm-tools-stable-10.3.0_GH0.tar.gz) = 3498624
diff --git a/emulators/open-vm-tools/files/patch-configure.ac b/emulators/open-vm-tools/files/patch-configure.ac
deleted file mode 100644
index ad600145426b..000000000000
--- a/emulators/open-vm-tools/files/patch-configure.ac
+++ /dev/null
@@ -1,20 +0,0 @@
---- configure.ac.orig 2018-03-30 18:44:35 UTC
-+++ configure.ac
-@@ -1095,7 +1095,7 @@ AC_CHECK_HEADERS([sys/user.h],
- ])
- AC_CHECK_HEADERS([sys/vfs.h])
- AC_CHECK_HEADERS([syslimits.h])
--AC_CHECK_HEADERS([unwind.h])
-+#AC_CHECK_HEADERS([unwind.h])
-
- AC_CHECK_HEADER(
- [wchar.h],
-@@ -1142,7 +1142,7 @@ AC_C_VOLATILE
-
- ### General flags / actions
- CFLAGS="$CFLAGS -Wall"
--CFLAGS="$CFLAGS -Werror"
-+CFLAGS="$CFLAGS -Werror -Wno-unused-function -Wno-address-of-packed-member -Wno-unknown-warning-option"
-
- # -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident'
- # in Xlib.h on OpenSolaris.
diff --git a/emulators/open-vm-tools/files/patch-lib_auth_authPosix.c b/emulators/open-vm-tools/files/patch-lib_auth_authPosix.c
deleted file mode 100644
index db4755c91c88..000000000000
--- a/emulators/open-vm-tools/files/patch-lib_auth_authPosix.c
+++ /dev/null
@@ -1,45 +0,0 @@
---- lib/auth/authPosix.c.orig 2017-12-15 21:11:49 UTC
-+++ lib/auth/authPosix.c
-@@ -1,5 +1,5 @@
- /*********************************************************
-- * Copyright (C) 2003-2017 VMware, Inc. All rights reserved.
-+ * Copyright (C) 2003-2018 VMware, Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as published
-@@ -19,6 +19,7 @@
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-+#include <errno.h>
- #include <unistd.h> // for access, crypt, etc.
- #if !defined USE_PAM && !defined __APPLE__
- #include <shadow.h>
-@@ -262,8 +263,8 @@ static struct pam_conv PAM_conversation = {
- static AuthTokenInternal *
- AuthAllocateToken(void)
- {
-+ long bufSize;
- AuthTokenInternal *ati;
-- size_t bufSize;
-
- /*
- * We need to get the maximum size buffer needed by getpwuid_r from
-@@ -271,9 +272,15 @@ AuthAllocateToken(void)
- * by the Posix_Get*_r() wrappers.
- */
-
-- bufSize = (size_t) sysconf(_SC_GETPW_R_SIZE_MAX) * 4;
-+ errno = 0;
-+ bufSize = sysconf(_SC_GETPW_R_SIZE_MAX);
-+ if ((errno != 0) || (bufSize <= 0)) {
-+ bufSize = 16 * 1024; // Unlimited; pick something reasonable
-+ }
-
-- ati = Util_SafeMalloc(sizeof *ati + bufSize);
-+ bufSize *= 4;
-+
-+ ati = Util_SafeMalloc(sizeof *ati + (size_t) bufSize);
- ati->bufSize = bufSize;
-
- return ati;
diff --git a/emulators/open-vm-tools/files/patch-lib_file_fileTempPosix.c b/emulators/open-vm-tools/files/patch-lib_file_fileTempPosix.c
deleted file mode 100644
index bdc9f32a5f71..000000000000
--- a/emulators/open-vm-tools/files/patch-lib_file_fileTempPosix.c
+++ /dev/null
@@ -1,21 +0,0 @@
---- lib/file/fileTempPosix.c.orig 2017-12-15 21:11:49 UTC
-+++ lib/file/fileTempPosix.c
-@@ -203,12 +203,17 @@ FileGetUserName(uid_t uid) // IN:
- #if defined(__APPLE__)
- memPoolSize = _PASSWORD_LEN;
- #else
-+ errno = 0;
- memPoolSize = sysconf(_SC_GETPW_R_SIZE_MAX);
-
-- if (memPoolSize <= 0) {
-+ if ((errno != 0) || (memPoolSize == 0)) {
- Warning("%s: sysconf(_SC_GETPW_R_SIZE_MAX) failed.\n", __FUNCTION__);
-
- return NULL;
-+ }
-+
-+ if (memPoolSize == -1) { // Unlimited; pick something reasonable
-+ memPoolSize = 16 * 1024;
- }
- #endif
-
diff --git a/emulators/open-vm-tools/files/patch-lib_guestApp_guestApp.c b/emulators/open-vm-tools/files/patch-lib_guestApp_guestApp.c
index ae4210de1d50..c9f225e1dc6b 100644
--- a/emulators/open-vm-tools/files/patch-lib_guestApp_guestApp.c
+++ b/emulators/open-vm-tools/files/patch-lib_guestApp_guestApp.c
@@ -1,11 +1,11 @@
---- lib/guestApp/guestApp.c.orig 2018-03-30 18:44:35 UTC
+--- lib/guestApp/guestApp.c.orig 2018-07-13 18:54:23 UTC
+++ lib/guestApp/guestApp.c
@@ -63,7 +63,7 @@
#elif defined __APPLE__
# define GUESTAPP_TOOLS_INSTALL_PATH "/Library/Application Support/VMware Tools"
#else
-# define GUESTAPP_TOOLS_INSTALL_PATH "/etc/vmware-tools"
-+# define GUESTAPP_TOOLS_INSTALL_PATH "%%PREFIX%%/share/vmware-tools"
++# define GUESTAPP_TOOLS_INSTALL_PATH "/usr/local/share/vmware-tools"
#endif
#if defined _WIN32
diff --git a/emulators/open-vm-tools/files/patch-lib_include_vm__basic__types.h b/emulators/open-vm-tools/files/patch-lib_include_vm__basic__types.h
deleted file mode 100644
index 52834a0f7e93..000000000000
--- a/emulators/open-vm-tools/files/patch-lib_include_vm__basic__types.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- lib/include/vm_basic_types.h.orig 2018-03-30 18:44:35 UTC
-+++ lib/include/vm_basic_types.h
-@@ -418,6 +418,7 @@ typedef int64 VmTimeVirtualClock; /* Virtual Clock ke
- #endif
- #elif defined(__linux__) || \
- (defined(__FreeBSD__) && (__FreeBSD__ + 0))\
-+ || (defined(__clang__)) \
- || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) \
- || (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) \
- || (defined(_POSIX2_VERSION) && _POSIX2_VERSION >= 200112L)
diff --git a/emulators/open-vm-tools/files/patch-lib_vmCheck_vmcheck.c b/emulators/open-vm-tools/files/patch-lib_vmCheck_vmcheck.c
index fd95e739f055..d3366c71909b 100644
--- a/emulators/open-vm-tools/files/patch-lib_vmCheck_vmcheck.c
+++ b/emulators/open-vm-tools/files/patch-lib_vmCheck_vmcheck.c
@@ -1,6 +1,6 @@
---- lib/vmCheck/vmcheck.c.orig 2018-03-30 18:44:35 UTC
+--- lib/vmCheck/vmcheck.c.orig 2018-07-13 18:54:23 UTC
+++ lib/vmCheck/vmcheck.c
-@@ -135,6 +135,7 @@ VmCheckSafe(SafeCheckFn checkFn)
+@@ -153,6 +153,7 @@ VmCheckSafe(SafeCheckFn checkFn)
#else
do {
int signals[] = {
diff --git a/emulators/open-vm-tools/files/patch-modules_Makefile.am b/emulators/open-vm-tools/files/patch-modules_Makefile.am
index 8fb538ca5b02..53442013569e 100644
--- a/emulators/open-vm-tools/files/patch-modules_Makefile.am
+++ b/emulators/open-vm-tools/files/patch-modules_Makefile.am
@@ -1,6 +1,6 @@
---- modules/Makefile.am.orig 2018-04-18 02:28:12 UTC
+--- modules/Makefile.am.orig 2018-09-29 03:57:04 UTC
+++ modules/Makefile.am
-@@ -48,11 +48,11 @@ if SOLARIS
+@@ -65,11 +65,11 @@ if SOLARIS
done
endif
if FREEBSD
diff --git a/emulators/open-vm-tools/files/patch-modules_freebsd_vmmemctl_os.c b/emulators/open-vm-tools/files/patch-modules_freebsd_vmmemctl_os.c
index ca62a513f20e..7f92502d99c6 100644
--- a/emulators/open-vm-tools/files/patch-modules_freebsd_vmmemctl_os.c
+++ b/emulators/open-vm-tools/files/patch-modules_freebsd_vmmemctl_os.c
@@ -1,45 +1,9 @@
---- modules/freebsd/vmmemctl/os.c.orig 2017-07-28 21:59:15 UTC
+--- modules/freebsd/vmmemctl/os.c.orig 2018-09-29 03:58:10 UTC
+++ modules/freebsd/vmmemctl/os.c
-@@ -37,9 +37,11 @@
- #include <sys/param.h>
- #include <sys/systm.h>
- #include <sys/kernel.h>
-+#include <sys/lock.h>
- #include <sys/malloc.h>
- #include <sys/module.h>
- #include <sys/conf.h>
-+#include <sys/rwlock.h>
- #include <sys/sysctl.h>
+@@ -109,6 +109,30 @@ MALLOC_DEFINE(M_VMMEMCTL, BALLOON_NAME, "vmmemctl meta
+ #define VM_SYS_PAGES vm_cnt.v_page_count
+ #endif
- #include <vm/vm.h>
-@@ -83,6 +85,55 @@ typedef struct {
- MALLOC_DEFINE(M_VMMEMCTL, BALLOON_NAME, "vmmemctl metadata");
-
- /*
-+ * FreeBSD version specific MACROS
-+ */
-+#if __FreeBSD_version >= 900000
-+ #define VM_PAGE_LOCK(page) vm_page_lock(page);
-+ #define VM_PAGE_UNLOCK(page) vm_page_unlock(page)
-+#else
-+ #define VM_PAGE_LOCK(page) vm_page_lock_queues()
-+ #define VM_PAGE_UNLOCK(page) vm_page_unlock_queues()
-+#endif
-+
-+#if __FreeBSD_version > 1000029
-+ #define VM_OBJ_LOCK(object) VM_OBJECT_WLOCK(object)
-+ #define VM_OBJ_UNLOCK(object) VM_OBJECT_WUNLOCK(object);
-+#else
-+ #define VM_OBJ_LOCK(object) VM_OBJECT_LOCK(object);
-+ #define VM_OBJ_UNLOCK(object) VM_OBJECT_UNLOCK(object);
-+#endif
-+
-+#if __FreeBSD_version < 1100015
-+ #define VM_SYS_PAGES cnt.v_page_count
-+#else
-+ #define VM_SYS_PAGES vm_cnt.v_page_count
-+#endif
-+
+#if __FreeBSD_version < 1000000
+ #define KVA_ALLOC(size) kmem_alloc_nofault(kernel_map, size)
+ #define KVA_FREE(offset, size) kmem_free(kernel_map, offset, size)
@@ -64,20 +28,10 @@
+ #define KMEM_FREE(offset, size) kmem_free(offset, size)
+#endif
+
-+/*
+ /*
* Globals
*/
-
-@@ -223,7 +274,7 @@ static __inline__ unsigned long os_ffz(unsigned long w
- unsigned long
- OS_ReservedPageGetLimit(void)
- {
-- return cnt.v_page_count;
-+ return VM_SYS_PAGES;
- }
-
-
-@@ -295,11 +346,7 @@ OS_ReservedPageGetHandle(PA64 pa) // IN
+@@ -322,11 +346,7 @@ OS_ReservedPageGetHandle(PA64 pa) // IN
Mapping
OS_MapPageHandle(PageHandle handle) // IN
{
@@ -90,7 +44,7 @@
vm_page_t page = (vm_page_t)handle;
-@@ -357,11 +404,7 @@ void
+@@ -384,11 +404,7 @@ void
OS_UnmapPage(Mapping mapping) // IN
{
pmap_qremove((vm_offset_t)mapping, 1);
@@ -103,16 +57,7 @@
}
-@@ -369,7 +412,7 @@ static void
- os_pmap_alloc(os_pmap *p) // IN
- {
- /* number of pages (div. 8) */
-- p->size = (cnt.v_page_count + 7) / 8;
-+ p->size = (VM_SYS_PAGES + 7) / 8;
-
- /*
- * expand to nearest word boundary
-@@ -378,22 +421,14 @@ os_pmap_alloc(os_pmap *p) // IN
+@@ -405,22 +421,14 @@ os_pmap_alloc(os_pmap *p) // IN
p->size = (p->size + sizeof(unsigned long) - 1) &
~(sizeof(unsigned long) - 1);
@@ -121,7 +66,7 @@
-#else
- p->bitmap = (unsigned long *)kmem_malloc(kernel_arena, p->size, M_WAITOK | M_ZERO);
-#endif
-+ p->bitmap = (unsigned long *)KMEM_ALLOC(p->size);
++ p->bitmap = (unsigned long *)KMEM_ALLOC(p->size);
}
@@ -137,52 +82,3 @@
p->size = 0;
p->bitmap = NULL;
}
-@@ -466,12 +501,14 @@ os_kmem_free(vm_page_t page) // IN
- os_state *state = &global_state;
- os_pmap *pmap = &state->pmap;
-
-- if ( !vm_page_lookup(state->vmobject, page->pindex) ) {
-- return;
-+ VM_OBJ_LOCK(state->vmobject);
-+ if ( vm_page_lookup(state->vmobject, page->pindex) ) {
-+ os_pmap_putindex(pmap, page->pindex);
-+ VM_PAGE_LOCK(page);
-+ vm_page_free(page);
-+ VM_PAGE_UNLOCK(page);
- }
--
-- os_pmap_putindex(pmap, page->pindex);
-- vm_page_free(page);
-+ VM_OBJ_UNLOCK(state->vmobject);
- }
-
-
-@@ -483,8 +520,11 @@ os_kmem_alloc(int alloc_normal_failed) // IN
- os_state *state = &global_state;
- os_pmap *pmap = &state->pmap;
-
-+ VM_OBJ_LOCK(state->vmobject);
-+
- pindex = os_pmap_getindex(pmap);
- if (pindex == (vm_pindex_t)-1) {
-+ VM_OBJ_UNLOCK(state->vmobject);
- return NULL;
- }
-
-@@ -505,6 +545,7 @@ os_kmem_alloc(int alloc_normal_failed) // IN
- if (!page) {
- os_pmap_putindex(pmap, pindex);
- }
-+ VM_OBJ_UNLOCK(state->vmobject);
-
- return page;
- }
-@@ -847,7 +888,7 @@ vmmemctl_sysctl(SYSCTL_HANDLER_ARGS)
- static void
- vmmemctl_init_sysctl(void)
- {
-- oid = sysctl_add_oid(NULL, SYSCTL_STATIC_CHILDREN(_vm), OID_AUTO,
-+ oid = SYSCTL_ADD_OID(NULL, SYSCTL_STATIC_CHILDREN(_vm), OID_AUTO,
- BALLOON_NAME, CTLTYPE_STRING | CTLFLAG_RD,
- 0, 0, vmmemctl_sysctl, "A",
- BALLOON_NAME_VERBOSE);
diff --git a/emulators/open-vm-tools/files/patch-services_plugins_vix_vixTools.c b/emulators/open-vm-tools/files/patch-services_plugins_vix_vixTools.c
deleted file mode 100644
index 886597202e86..000000000000
--- a/emulators/open-vm-tools/files/patch-services_plugins_vix_vixTools.c
+++ /dev/null
@@ -1,37 +0,0 @@
---- services/plugins/vix/vixTools.c.orig 2018-03-30 18:44:35 UTC
-+++ services/plugins/vix/vixTools.c
-@@ -52,6 +52,7 @@
- #include <stdarg.h>
- #include <fcntl.h>
- #include <errno.h>
-+#include <limits.h>
-
- #ifdef _WIN32
- #include <WTypes.h>
-@@ -10133,7 +10134,7 @@ abort:
- struct passwd pwd;
- struct passwd *ppwd = &pwd;
- char *buffer = NULL; // a pool of memory for Posix_Getpwnam_r() to use.
-- size_t bufferSize;
-+ long bufferSize;
-
- /*
- * For POSIX systems, look up the uid of 'username', and compare
-@@ -10146,9 +10147,15 @@ abort:
- * Multiply by 4 to compensate for the conversion to UTF-8 by
- * the Posix_Getpwnam_r() wrapper.
- */
-- bufferSize = (size_t) sysconf(_SC_GETPW_R_SIZE_MAX) * 4;
-+ errno = 0;
-+ bufferSize = sysconf(_SC_GETPW_R_SIZE_MAX);
-+ if ((errno != 0) || (bufferSize <= 0)) {
-+ bufferSize = 16 * 1024; // Unlimited; pick something reasonable
-+ }
-
-- buffer = Util_SafeMalloc(bufferSize);
-+ bufferSize *= 4;
-+
-+ buffer = Util_SafeMalloc((size_t)bufferSize);
-
- if (Posix_Getpwnam_r(username, &pwd, buffer, bufferSize, &ppwd) != 0 ||
- NULL == ppwd) {