Skip to content

Commit

Permalink
emulators/open-vm-tools: Update to 12.2.0
Browse files Browse the repository at this point in the history
PR:		270077
Reported by:	John Wolfe <jwolfe@vmware.com>
Sponsored by:	Rubicon Communications, LLC ("Netgate")
  • Loading branch information
rbgarga committed Mar 10, 2023
1 parent 3627b73 commit af3ba1e
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 103 deletions.
3 changes: 1 addition & 2 deletions emulators/open-vm-tools/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
PORTNAME= open-vm-tools
PORTVERSION= 12.1.5
PORTVERSION= 12.2.0
DISTVERSIONPREFIX= stable-
PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= emulators

Expand Down
6 changes: 3 additions & 3 deletions emulators/open-vm-tools/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1670847678
SHA256 (vmware-open-vm-tools-stable-12.1.5_GH0.tar.gz) = 678d08b46fba15f2b4c39245b5bc4deec30284d6f13ee279c233bc3d3627ec8a
SIZE (vmware-open-vm-tools-stable-12.1.5_GH0.tar.gz) = 2959869
TIMESTAMP = 1678443295
SHA256 (vmware-open-vm-tools-stable-12.2.0_GH0.tar.gz) = 5127dd8643e4c89a22a93728ea5420d236cd4083bc07d665f70fee08a581d635
SIZE (vmware-open-vm-tools-stable-12.2.0_GH0.tar.gz) = 2975094
11 changes: 0 additions & 11 deletions emulators/open-vm-tools/files/patch-lib_misc_util__misc.c

This file was deleted.

10 changes: 0 additions & 10 deletions emulators/open-vm-tools/files/patch-lib_vmCheck_vmcheck.c

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions emulators/open-vm-tools/files/patch-modules_freebsd_vmblock_subr.c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
--- modules/freebsd/vmblock/vfsops.c.orig 2022-11-29 21:17:22 UTC
--- modules/freebsd/vmblock/vfsops.c.orig 2023-03-10 17:41:18 UTC
+++ modules/freebsd/vmblock/vfsops.c
@@ -171,14 +171,21 @@ VMBlockVFSMount(struct mount *mp, // IN: mount(
* Find lower node and lock if not already locked.
*/

+#if __FreeBSD_version >= 1400043
+ NDINIT(ndp, LOOKUP, FOLLOW|LOCKLEAF, UIO_SYSSPACE, target);
+#else
NDINIT(ndp, LOOKUP, FOLLOW|LOCKLEAF, UIO_SYSSPACE, target, compat_td);
+#endif
@@ -173,7 +173,6 @@ VMBlockVFSMount(struct mount *mp) // IN: mount(
#endif
error = namei(ndp);
if (error) {
- NDFREE(ndp, 0);
uma_zfree(VMBlockPathnameZone, pathname);
return error;
}
+#if __FreeBSD_version < 1400054
NDFREE(ndp, NDF_ONLY_PNBUF);
+#else
+ NDFREE_PNBUF(ndp);
+#endif

/*
* Check multi VMBlock mount to avoid `lock against myself' panic.

This file was deleted.

27 changes: 13 additions & 14 deletions emulators/open-vm-tools/files/patch-modules_freebsd_vmmemctl_os.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
--- modules/freebsd/vmmemctl/os.c.orig 2022-09-13 12:55:59 UTC
--- modules/freebsd/vmmemctl/os.c.orig 2023-03-07 22:57:07 UTC
+++ modules/freebsd/vmmemctl/os.c
@@ -136,9 +136,11 @@ MALLOC_DEFINE(M_VMMEMCTL, BALLOON_NAME, "vmmemctl meta
#endif
@@ -103,7 +103,11 @@ MALLOC_DEFINE(M_VMMEMCTL, BALLOON_NAME, "vmmemctl meta
#define KVA_FREE(offset, size) kva_free(offset, size)

#if __FreeBSD_version < 1000000
- #define KMEM_FREE(offset, size) kmem_free(kernel_map, offset, size)
+ #define KMEM_FREE(offset, size) kmem_free(kernel_map, (vm_offset_t)offset, size)
#elif __FreeBSD_version < 1200083
- #define KMEM_FREE(offset, size) kmem_free(kernel_arena, offset, size)
+ #define KMEM_FREE(offset, size) kmem_free(kernel_arena, (vm_offset_t)offset, size)
+#elif __FreeBSD_version < 1400070
#define KMEM_ALLOC(size) kmem_malloc(size, M_WAITOK | M_ZERO)
-#define KMEM_FREE(offset, size) kmem_free(offset, size)
+#if __FreeBSD_version < 1400070
+ #define KMEM_FREE(offset, size) kmem_free((vm_offset_t)offset, size)
#else
#define KMEM_FREE(offset, size) kmem_free(offset, size)
#endif
@@ -442,7 +444,7 @@ os_pmap_free(os_pmap *p) // IN
+#else
+ #define KMEM_FREE(offset, size) kmem_free(offset, size)
+#endif

/*
* Globals
@@ -404,7 +408,7 @@ os_pmap_free(os_pmap *p) // IN
static void
os_pmap_free(os_pmap *p) // IN
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
--- services/plugins/dndcp/dndcp.cpp.orig 2021-08-03 01:47:47 UTC
--- services/plugins/dndcp/dndcp.cpp.orig 2023-03-07 22:57:07 UTC
+++ services/plugins/dndcp/dndcp.cpp
@@ -31,11 +31,9 @@

#define G_LOG_DOMAIN "dndcp"
@@ -36,11 +36,9 @@
*/
#include <glib.h>

-extern "C" {
#include "vmware/guestrpc/tclodefs.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- services/vmtoolsd/Makefile.am.orig 2017-04-25 03:59:07 UTC
--- services/vmtoolsd/Makefile.am.orig 2023-03-07 22:57:07 UTC
+++ services/vmtoolsd/Makefile.am
@@ -76,7 +76,7 @@ install-data-hook:
@@ -79,7 +79,7 @@ install-exec-hook:
@INSTVMSG@ vmtoolsd $(srcdir)/l10n $(DESTDIR)$(datadir)

install-exec-hook:
Expand Down

0 comments on commit af3ba1e

Please sign in to comment.