diff --git a/emulators/open-vm-tools/Makefile b/emulators/open-vm-tools/Makefile index 0170a949bc17..47aa4058a7dd 100644 --- a/emulators/open-vm-tools/Makefile +++ b/emulators/open-vm-tools/Makefile @@ -1,95 +1,96 @@ PORTNAME= open-vm-tools PORTVERSION= 13.0.5 DISTVERSIONPREFIX= stable- +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= emulators MAINTAINER= garga@FreeBSD.org COMMENT= Open VMware tools for FreeBSD VMware guests ${${FLAVOR}_COMMENT} WWW= https://github.com/vmware/open-vm-tools LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/COPYING ONLY_FOR_ARCHS= aarch64 amd64 i386 LIB_DEPENDS= libdnet.so:net/libdnet RUN_DEPENDS= open-vm-kmod>0:emulators/open-vm-kmod FLAVORS= default nox11 default_CONFLICTS_INSTALL= open-vm-tools-nox11 nox11_PKGNAMESUFFIX= -nox11 nox11_CONFLICTS_INSTALL= open-vm-tools nox11_COMMENT= (without X11) USES= autoreconf gettext-runtime gnome libtool localbase \ pathfix pkgconfig USE_GITHUB= yes GH_ACCOUNT= vmware USE_GNOME= glib20 USE_LDCONFIG= yes USE_RC_SUBR= vmware-guestd vmware-kmod GNU_CONFIGURE= yes CONFIGURE_ARGS+=--disable-vgauth \ --enable-containerinfo=no \ --sysconfdir=${PREFIX}/etc \ --without-icu \ --without-kernel-modules INSTALL_TARGET= install-strip CPPFLAGS+= -Wno-deprecated-declarations WRKSRC_SUBDIR= open-vm-tools PORTDOCS= * OPTIONS_DEFINE= DOCS DEPLOYPKG FUSE LIBNOTIFY OPENSSL X11 OPTIONS_DEFAULT=DOCS FUSE LIBNOTIFY OPENSSL X11 .if ${FLAVOR:U} == nox11 OPTIONS_EXCLUDE:= LIBNOTIFY X11 .endif OPTIONS_SUB= DEPLOYPKG_DESC= DeployPkg plugin LIBNOTIFY_DESC= Desktop notification support DEPLOYPKG_LIB_DEPENDS= libmspack.so:archivers/libmspack DEPLOYPKG_CONFIGURE_ENABLE= deploypkg DOCS_BUILD_DEPENDS= doxygen:devel/doxygen DOCS_CONFIGURE_ENABLE= docs FUSE_USES= fuse LIBNOTIFY_LIB_DEPENDS= libnotify.so:devel/libnotify OPENSSL_CONFIGURE_WITH= ssl X11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libharfbuzz.so:print/harfbuzz X11_USES= desktop-file-utils xorg X11_USE= GNOME=gdkpixbuf,gdkpixbuf2xlib,gtk30,gtkmm30 \ XORG=ice,sm,x11,xext,xi,xinerama,xorgproto,xrandr,xrender,xtst X11_CONFIGURE_WITH= gtk3 gtkmm3 x post-patch: @${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@" \ ${WRKSRC}/Makefile.am \ ${WRKSRC}/lib/guestApp/guestApp.c \ ${WRKSRC}/lib/misc/codeset.c \ ${WRKSRC}/scripts/common/vm-support \ ${WRKSRC}/services/plugins/componentMgr/svtminion.sh \ ${WRKSRC}/services/vmtoolsd/Makefile.am \ ${WRKSRC}/vgauth/common/prefs.h \ ${WRKSRC}/vgauth/service/Makefile.am \ ${WRKSRC}/vmware-user-suid-wrapper/wrapper.h post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers ${MKDIR} ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/input ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/tools.conf \ ${STAGEDIR}${DATADIR}/tools.conf.sample ${MKDIR} ${STAGEDIR}${PREFIX}/share/open-vm-tools/scripts/vmware/ ${MKDIR} ${STAGEDIR}${PREFIX}/share/open-vm-tools/tests/ .include diff --git a/emulators/open-vm-tools/files/patch-lib_dynxdr_xdrutil.c b/emulators/open-vm-tools/files/patch-lib_dynxdr_xdrutil.c new file mode 100644 index 000000000000..48ebe4231ba1 --- /dev/null +++ b/emulators/open-vm-tools/files/patch-lib_dynxdr_xdrutil.c @@ -0,0 +1,11 @@ +--- lib/dynxdr/xdrutil.c.orig 2026-01-27 11:15:15 UTC ++++ lib/dynxdr/xdrutil.c +@@ -102,7 +102,7 @@ XdrUtil_Deserialize(const void *data, // IN + ASSERT(dest != NULL); + + xdrmem_create(&xdrs, (char *) data, dataLen, XDR_DECODE); +- ret = (Bool) proc(&xdrs, dest, 0); ++ ret = (Bool) proc(&xdrs, dest); + xdr_destroy(&xdrs); + + if (!ret) { diff --git a/emulators/open-vm-tools/files/patch-lib_rpcChannel_rpcChannel.c b/emulators/open-vm-tools/files/patch-lib_rpcChannel_rpcChannel.c new file mode 100644 index 000000000000..d93f2b9fbfd3 --- /dev/null +++ b/emulators/open-vm-tools/files/patch-lib_rpcChannel_rpcChannel.c @@ -0,0 +1,20 @@ +--- lib/rpcChannel/rpcChannel.c.orig 2026-01-27 11:15:50 UTC ++++ lib/rpcChannel/rpcChannel.c +@@ -308,7 +308,7 @@ RpcChannelXdrWrapper(RpcInData *data, + goto exit; + } + +- if (!xdrProc(&xdrs, copy.result, 0)) { ++ if (!xdrProc(&xdrs, copy.result)) { + ret = RPCIN_SETRETVALS(data, "XDR serialization failed.", FALSE); + + /* +@@ -378,7 +378,7 @@ RpcChannel_BuildXdrCommand(const char *cmd, + goto exit; + } + +- if (!proc(&xdrs, xdrData, 0)) { ++ if (!proc(&xdrs, xdrData)) { + goto exit; + } +