From b7d0d04aaf5810cf153d5b1d3953ac7fa99e770c Mon Sep 17 00:00:00 2001 From: Piraty Date: Tue, 10 May 2022 00:10:27 +0200 Subject: [PATCH] open-vm-tools: update to 12.0.0. --- .../patches/0001-recognize-Void.patch | 18 ++++++------- ...2-Fix-subdir-objects-configure-error.patch | 27 ------------------- srcpkgs/open-vm-tools/template | 18 ++++++------- 3 files changed, 17 insertions(+), 46 deletions(-) delete mode 100644 srcpkgs/open-vm-tools/patches/1002-Fix-subdir-objects-configure-error.patch diff --git a/srcpkgs/open-vm-tools/patches/0001-recognize-Void.patch b/srcpkgs/open-vm-tools/patches/0001-recognize-Void.patch index 87a145a2becc..ad6d37b130ac 100644 --- a/srcpkgs/open-vm-tools/patches/0001-recognize-Void.patch +++ b/srcpkgs/open-vm-tools/patches/0001-recognize-Void.patch @@ -11,15 +11,13 @@ #define STR_OS_YELLOW_DOG "Yellow Dog" #define STR_OS_ECOMSTATION "eComStation" -diff --git a/open-vm-tools/lib/misc/hostinfoPosix.c b/open-vm-tools/lib/misc/hostinfoPosix.c -index 6ac15412..ea898e24 100644 --- a/open-vm-tools/lib/misc/hostinfoPosix.c +++ b/open-vm-tools/lib/misc/hostinfoPosix.c -@@ -1259,6 +1259,7 @@ static const ShortNameSet shortNameArray[] = { - {"united linux", STR_OS_UNITEDLINUX, HostinfoGenericSetShortName}, - {"va linux", STR_OS_VALINUX, HostinfoGenericSetShortName}, - {"vmware photon", STR_OS_PHOTON, HostinfoGenericSetShortName}, -+{"void", STR_OS_VOID, HostinfoGenericSetShortName}, - {"yellow dog", STR_OS_YELLOW_DOG, HostinfoGenericSetShortName}, - {NULL, NULL, NULL} // MUST BE LAST - }; +@@ -1288,6 +1288,7 @@ + { "ubuntu", STR_OS_UBUNTU, HostinfoGenericSetShortName }, + { "ultra penguin", STR_OS_ULTRAPENGUIN, HostinfoGenericSetShortName }, + { "united linux", STR_OS_UNITEDLINUX, HostinfoGenericSetShortName }, ++{ "void linux", STR_OS_VOID, HostinfoGenericSetShortName }, + { "va linux", STR_OS_VALINUX, HostinfoGenericSetShortName }, + { "vmware photon", STR_OS_PHOTON, HostinfoGenericSetShortName }, + { "yellow dog", STR_OS_YELLOW_DOG, HostinfoGenericSetShortName }, diff --git a/srcpkgs/open-vm-tools/patches/1002-Fix-subdir-objects-configure-error.patch b/srcpkgs/open-vm-tools/patches/1002-Fix-subdir-objects-configure-error.patch deleted file mode 100644 index 775a78d303e2..000000000000 --- a/srcpkgs/open-vm-tools/patches/1002-Fix-subdir-objects-configure-error.patch +++ /dev/null @@ -1,27 +0,0 @@ -#src: http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/open-vm-tools/open-vm-tools?id=6642ae94227f7c3c91c1a58f00f99aeb9eb2393f -#upstream: no - -From cf1284fda8fb22a2b27cb2ce7962f166166e74c3 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Wed, 13 Jun 2018 23:48:04 -0700 -Subject: [PATCH] Fix subdir objects configure error - -Fix build on musl while here - -Signed-off-by: Khem Raj ---- - open-vm-tools/configure.ac | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/open-vm-tools/configure.ac b/open-vm-tools/configure.ac -index 71e684bb..b76a7966 100644 ---- a/open-vm-tools/configure.ac -+++ b/open-vm-tools/configure.ac -@@ -303,6 +303,7 @@ AC_ARG_ENABLE( - [], - [enable_resolutionkms="auto"]) - -+AM_INIT_AUTOMAKE([subdir-objects]) - AM_INIT_AUTOMAKE - - ### diff --git a/srcpkgs/open-vm-tools/template b/srcpkgs/open-vm-tools/template index 27fcfbbb0b6f..4659bda812b6 100644 --- a/srcpkgs/open-vm-tools/template +++ b/srcpkgs/open-vm-tools/template @@ -1,6 +1,6 @@ # Template file for 'open-vm-tools' pkgname=open-vm-tools -version=11.3.0 +version=12.0.0 revision=1 archs="x86_64* i686* aarch64*" wrksrc="open-vm-tools-stable-${version}" @@ -12,14 +12,14 @@ configure_args="--sbindir=/usr/bin --with-udev-rules-dir=/usr/lib/udev/rules.d hostmakedepends="automake libtool pkg-config glib-devel rpcsvc-proto" makedepends="fuse-devel glib-devel libmspack-devel openssl-devel libtirpc-devel libxerces-c-devel procps-ng-devel $(vopt_if pam 'pam-devel') - $(vopt_if x11 'gtkmm-devel libXtst-devel xmlsec1-devel')" + $(vopt_if x11 'gdk-pixbuf-xlib-devel gtkmm-devel libXtst-devel xmlsec1-devel')" short_desc="Open source implementation of VMware Tools" maintainer="Piraty " license="GPL-2.0-only, LGPL-2.1-only" homepage="https://github.com/vmware/open-vm-tools" changelog="https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/ChangeLog" distfiles="https://github.com/vmware/open-vm-tools/archive/stable-${version}.tar.gz" -checksum=588f1b6252c36bc55581aa3451a47880290f38ef46aad493710bcf4ce3c7635e +checksum=244d224dc503f2c9350899a61fef418f23dc0520e8e30dce10863ea2dc81f047 build_options="pam x11" build_options_default="pam x11" @@ -33,16 +33,16 @@ pre_configure() { } post_install() { - # Get rid of unwanted symlinks - rm ${DESTDIR}/sbin/mount.vmhgfs - rm -r ${DESTDIR}/sbin - # If X11 enabled, copy extra files if [ "$build_option_x11" ]; then vmkdir /etc/xdg/autostart vinstall vmware-user-suid-wrapper/vmware-user.desktop 0644 /etc/xdg/autostart/ vbin scripts/common/vmware-xdg-detect-de - chmod 07755 ${DESTDIR}/usr/bin/vmware-user-suid-wrapper + chmod 4755 "${DESTDIR}/usr/bin/vmware-user-suid-wrapper" fi - # Install service + + if [ ! "$build_option_pam" ]; then + rm -rf "${DESTDIR}/etc/pam.d/vmtoolsd" + fi + vsv vmtoolsd }