package/openvmtools: bump version to 13.0.10
PATCH v2 1/1 package/openvmtools: bump version to 13.0.10
Rebased patch set in two steps:
1.: downloaded patch set from home-assistant
https://github.com/home-assistant/buildroot/tree/2025.02.x-haos/package/openvmtools
which is based on 13.0.0
2.: rebased again on 13.0.10 (no changes needed)
Added patches 0011 & 0012 to fix build errors with upcoming bump of glibc to 2.43.
Added tarball hash provided by upstream.
Removed CVE entries in openvmtools.mk due to patches 0013 and 0014 being added to upstream release.
Ported various configure options from home-assistant commit
https://github.com/home-assistant/buildroot/commit/3206b3fa58a636c7a98ff7a65f76fcf23a4302ee
---
v2: rebased
.checkpackageignore | 9 +-
.../0001-configure.ac-disable-Werror.patch | 32 +
.../openvmtools/0001-no_cflags_werror.patch | 18 -
.../0002-dont-force-cppflags.patch | 21 -
...-not-force-I-usr-include-in-CPPFLAGS.patch | 36 +
..._poll-h-to-fix-build-failure-on-musl.patch | 813 ------------------
...to-vm_poll.h-to-fix-build-failure-on.patch | 133 +++
...ns-about-glibc-being-only-libc-imple.patch | 27 +-
...e-configure-test-for-struct-timespec.patch | 31 +-
...finition-of-ALLPERMS-and-ACCESSPERMS.patch | 35 +-
...-test-for-feature-instead-of-platfor.patch | 74 +-
...onfigure-test-for-sys-stat.h-include.patch | 21 +-
...gfs-fuse-fsutils.h-fix-build-on-mus.patch} | 8 +-
...FromNtTimeNsec-aware-of-64-bit-time_.patch | 51 ++
...on-discards-const-qualifier-from-poi.patch | 148 ++++
...FromNtTimeNsec-aware-of-64-bit-time_.patch | 80 --
...-GLib-g_free-macro-redefinition-erro.patch | 37 +
...uthorization-on-incoming-guestOps-re.patch | 41 -
...-2025-22247-1100-1225-VGAuth-updates.patch | 383 ---------
package/openvmtools/openvmtools.hash | 3 +-
package/openvmtools/openvmtools.mk | 22 +-
21 files changed, 565 insertions(+), 1458 deletions(-)
create mode 100644 package/openvmtools/0001-configure.ac-disable-Werror.patch
delete mode 100644 package/openvmtools/0001-no_cflags_werror.patch
delete mode 100644 package/openvmtools/0002-dont-force-cppflags.patch
create mode 100644 package/openvmtools/0002-m4-do-not-force-I-usr-include-in-CPPFLAGS.patch
delete mode 100644 package/openvmtools/0003-Rename-poll-h-into-vm_poll-h-to-fix-build-failure-on-musl.patch
create mode 100644 package/openvmtools/0003-Rename-poll.h-into-vm_poll.h-to-fix-build-failure-on.patch
rename package/openvmtools/{0011-open-vm-tools-vmhgfs-fuse-fsutils.h-fix-build-on-mus.patch => 0009-open-vm-tools-vmhgfs-fuse-fsutils.h-fix-build-on-mus.patch} (86%)
create mode 100644 package/openvmtools/0010-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch
create mode 100644 package/openvmtools/0011-fix-initialization-discards-const-qualifier-from-poi.patch
delete mode 100644 package/openvmtools/0012-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch
create mode 100644 package/openvmtools/0012-glib_stubs-avoid-GLib-g_free-macro-redefinition-erro.patch
delete mode 100644 package/openvmtools/0013-Properly-check-authorization-on-incoming-guestOps-re.patch
delete mode 100644 package/openvmtools/0014-CVE-2025-22247-1100-1225-VGAuth-updates.patch.checkpackageignore +4 -5
@@ -725,16 +725,15 @@ package/openrc/0005-runlevels-do-not-add-agetty.tty-1-6-if-MKSYSVINIT-ye.patch l package/openrc/0006-Also-create-run-lock-subsys-directory.patch lib_patch.Upstream package/openswan/0001-lib-libopenswan-constants.c-workaround-missing-ns_t_.patch lib_patch.Upstream package/opentyrian/0001-Move-definitions-that-don-t-need-to-be-exposed-from-opl-h-to-opl-c.patch lib_patch.Upstream -package/openvmtools/0001-no_cflags_werror.patch lib_patch.Upstream -package/openvmtools/0002-dont-force-cppflags.patch lib_patch.Upstream -package/openvmtools/0003-Rename-poll-h-into-vm_poll-h-to-fix-build-failure-on-musl.patch lib_patch.Upstream +package/openvmtools/0001-configure.ac-disable-Werror.patch lib_patch.Upstream +package/openvmtools/0002-m4-do-not-force-I-usr-include-in-CPPFLAGS.patch lib_patch.Upstream package/openvmtools/0004-Remove-assumptions-about-glibc-being-only-libc-imple.patch lib_patch.Upstream package/openvmtools/0005-Use-configure-test-for-struct-timespec.patch lib_patch.Upstream package/openvmtools/0006-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch lib_patch.Upstream package/openvmtools/0007-Use-configure-to-test-for-feature-instead-of-platfor.patch lib_patch.Upstream package/openvmtools/0008-Use-configure-test-for-sys-stat.h-include.patch lib_patch.Upstream -package/openvmtools/0011-open-vm-tools-vmhgfs-fuse-fsutils.h-fix-build-on-mus.patch lib_patch.Upstream -package/openvmtools/0012-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch lib_patch.Upstream +package/openvmtools/0009-open-vm-tools-vmhgfs-fuse-fsutils.h-fix-build-on-mus.patch lib_patch.Upstream +package/openvmtools/0010-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch lib_patch.Upstream package/openvmtools/shutdown Shellcheck package/openvpn/S60openvpn Shellcheck lib_sysv.Indent lib_sysv.Variables package/oprofile/0001-musl.patch lib_patch.Upstream
package/openvmtools/0001-configure.ac-disable-Werror.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 818066b581f6cfedbec83031dd8b084178f622e1 Mon Sep 17 00:00:00 2001 +From: Stefan Agner <[email protected]> +Date: Tue, 5 Sep 2023 13:11:18 +0200 +Subject: [PATCH] configure.ac: disable -Werror + +Disable the mandatory flag -Werror in configure.ac. + +Signed-off-by: Karoly Kasza <[email protected]> +[rebased against stable-12.3.0] +Signed-off-by: Stefan Agner <[email protected]> +[Bernd: rebased against stable-13.0.10] +Signed-off-by: Bernd Kuhls <[email protected]> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 92b610429..89b0bd8db 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1403,7 +1403,7 @@ AC_C_VOLATILE + + ### General flags / actions + CFLAGS="$CFLAGS -Wall" +-CFLAGS="$CFLAGS -Werror" ++# CFLAGS="$CFLAGS -Werror" + + # -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident' + # in Xlib.h on OpenSolaris. +-- +2.47.3 +
package/openvmtools/0001-no_cflags_werror.patch deleted +0 -18
@@ -1,18 +0,0 @@ -configure.ac: disable -Werror - -Disable the mandatory flag -Werror in configure.ac. - -Signed-off-by: Karoly Kasza <[email protected]> - ---- open-vm-tools/configure.ac 2015-06-17 10:02:00.000000000 +0200 -+++ open-vm-tools/configure.ac 2015-06-17 10:02:00.000000000 +0200 -@@ -935,7 +935,7 @@ - - ### General flags / actions - CFLAGS="$CFLAGS -Wall" --CFLAGS="$CFLAGS -Werror" -+# CFLAGS="$CFLAGS -Werror" - - # -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident' - # in Xlib.h on OpenSolaris. -
package/openvmtools/0002-dont-force-cppflags.patch deleted +0 -21
@@ -1,21 +0,0 @@ -m4: do not force -I/usr/include in CPPFLAGS - -This is so horribly broken for cross-compilation. :-( - -Signed-off-by: "Yann E. MORIN" <[email protected]> - ---- open-vm-tools/m4/vmtools.m4 2015-06-17 10:03:00.000000000 +0200 -+++ open-vm-tools/m4/vmtools.m4 2015-06-17 10:03:00.000000000 +0200 -@@ -281,10 +281,10 @@ - if test "$os" = freebsd; then - CUSTOM_$1_CPPFLAGS="-I/usr/local/include" - else -- CUSTOM_$1_CPPFLAGS="-I/usr/include" -+ CUSTOM_$1_CPPFLAGS=" " - fi - if test -n "$2"; then -- CUSTOM_$1_CPPFLAGS="${CUSTOM_$1_CPPFLAGS}/$2" -+ : CUSTOM_$1_CPPFLAGS="${CUSTOM_$1_CPPFLAGS}/$2" - fi - fi - ])
package/openvmtools/0002-m4-do-not-force-I-usr-include-in-CPPFLAGS.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 4c45151dd99e4025be5d9e85e49c1af3e951cc9d Mon Sep 17 00:00:00 2001 +From: Stefan Agner <[email protected]> +Date: Tue, 5 Sep 2023 13:14:04 +0200 +Subject: [PATCH] m4: do not force -I/usr/include in CPPFLAGS + +This is so horribly broken for cross-compilation. :-( + +Signed-off-by: "Yann E. MORIN" <[email protected]> +[rebased against stable-12.3.0] +Signed-off-by: Stefan Agner <[email protected]> +[Bernd: rebased against stable-13.0.10] +Signed-off-by: Bernd Kuhls <[email protected]> +--- + m4/vmtools.m4 | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/m4/vmtools.m4 b/m4/vmtools.m4 +index 055b39d9b..d281f81d1 100644 +--- a/m4/vmtools.m4 ++++ b/m4/vmtools.m4 +@@ -279,10 +279,10 @@ AC_DEFUN([AC_VMW_DEFAULT_FLAGS],[ + if test "$os" = freebsd; then + CUSTOM_$1_CPPFLAGS="-I/usr/local/include" + else +- CUSTOM_$1_CPPFLAGS="-I/usr/include" ++ CUSTOM_$1_CPPFLAGS=" " + fi + if test -n "$2"; then +- CUSTOM_$1_CPPFLAGS="${CUSTOM_$1_CPPFLAGS}/$2" ++ : CUSTOM_$1_CPPFLAGS="${CUSTOM_$1_CPPFLAGS}/$2" + fi + fi + ]) +-- +2.47.3 +
package/openvmtools/0003-Rename-poll-h-into-vm_poll-h-to-fix-build-failure-on-musl.patch deleted +0 -813
813 lines not on this page · raw message
package/openvmtools/0003-Rename-poll.h-into-vm_poll.h-to-fix-build-failure-on.patch new file +133 -0
133 lines not on this page · raw message
package/openvmtools/0004-Remove-assumptions-about-glibc-being-only-libc-imple.patch +17 -10
@@ -1,22 +1,26 @@ -From a0983d84185f04c4e40778fe951fde4439894882 Mon Sep 17 00:00:00 2001 +From 4421d88ca9248173baa8eb4fcd563e6705f8aeb0 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sun, 16 Jul 2017 07:37:03 -0700 -Subject: [PATCH] Remove assumptions about glibc being only libc - implementation on linux +Subject: [PATCH] Remove assumptions about glibc being only libc implementation + on linux Signed-off-by: Khem Raj <[email protected]> [Retrieved (and updated to work on current version) from: http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Remove-assumptions-about-glibc-being-only-libc-imple.patch?h=sumo] Signed-off-by: Fabrice Fontaine <[email protected]> +[rebased against stable-12.3.0] +Signed-off-by: Stefan Agner <[email protected]> +[Bernd: rebased against stable-13.0.10] +Signed-off-by: Bernd Kuhls <[email protected]> --- - open-vm-tools/lib/file/fileIOPosix.c | 2 +- - 2 files changed, 3 insertions(+), 1 deletion(-) + lib/file/fileIOPosix.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -Index: open-vm-tools/lib/file/fileIOPosix.c -=================================================================== ---- open-vm-tools.orig/lib/file/fileIOPosix.c -+++ open-vm-tools/lib/file/fileIOPosix.c -@@ -205,7 +205,7 @@ static AlignedPool alignedPool; +diff --git a/lib/file/fileIOPosix.c b/lib/file/fileIOPosix.c +index 4dedb08fc..1e16f06bd 100644 +--- a/lib/file/fileIOPosix.c ++++ b/lib/file/fileIOPosix.c +@@ -204,7 +204,7 @@ static AlignedPool alignedPool; * are not available in any header file. */
@@ -25,3 +29,6 @@ Index: open-vm-tools/lib/file/fileIOPosix.c #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64) /* * We want preadv/pwritev. But due to FOB=64, the symbols are -64. +-- +2.47.3 +
package/openvmtools/0005-Use-configure-test-for-struct-timespec.patch +19 -12
@@ -1,4 +1,4 @@ -From bf1eafb07297711baf9320b1edcca8a3376f117d Mon Sep 17 00:00:00 2001 +From c51e6ceb7f1443603e9713d297b0386db91f524e Mon Sep 17 00:00:00 2001 From: Natanael Copa <[email protected]> Date: Wed, 18 Nov 2015 09:03:00 +0000 Subject: [PATCH] Use configure test for struct timespec
@@ -10,16 +10,20 @@ Signed-off-by: Natanael Copa <[email protected]> [Retrieved from: http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0005-Use-configure-test-for-struct-timespec.patch?h=sumo] Signed-off-by: Fabrice Fontaine <[email protected]> +[rebased against stable-12.3.0] +Signed-off-by: Stefan Agner <[email protected]> +[Bernd: rebased against stable-13.0.10] +Signed-off-by: Bernd Kuhls <[email protected]> --- - open-vm-tools/configure.ac | 1 + - open-vm-tools/lib/include/hgfsUtil.h | 8 +------- + configure.ac | 1 + + lib/include/hgfsUtil.h | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) -Index: open-vm-tools/configure.ac -=================================================================== ---- open-vm-tools.orig/configure.ac -+++ open-vm-tools/configure.ac -@@ -1127,6 +1127,7 @@ AC_TYPE_OFF_T +diff --git a/configure.ac b/configure.ac +index 89b0bd8db..0ba2f6658 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1393,6 +1393,7 @@ AC_TYPE_OFF_T AC_TYPE_PID_T AC_TYPE_SIZE_T AC_CHECK_MEMBERS([struct stat.st_rdev])
@@ -27,10 +31,10 @@ Index: open-vm-tools/configure.ac AC_HEADER_TIME AC_STRUCT_TM AC_C_VOLATILE -Index: open-vm-tools/lib/include/hgfsUtil.h -=================================================================== ---- open-vm-tools.orig/lib/include/hgfsUtil.h -+++ open-vm-tools/lib/include/hgfsUtil.h +diff --git a/lib/include/hgfsUtil.h b/lib/include/hgfsUtil.h +index 609f4c000..a3a022d42 100644 +--- a/lib/include/hgfsUtil.h ++++ b/lib/include/hgfsUtil.h @@ -53,13 +53,7 @@ # include <time.h> # endif
@@ -46,3 +50,6 @@ Index: open-vm-tools/lib/include/hgfsUtil.h struct timespec { time_t tv_sec; long tv_nsec; +-- +2.47.3 +
package/openvmtools/0006-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch +21 -14
@@ -1,4 +1,4 @@ -From 31ae6f42458f90d4994a4ad8e2b7673691612c36 Mon Sep 17 00:00:00 2001 +From 8ff21c861f204b502085f93352c182e7d449755f Mon Sep 17 00:00:00 2001 From: Natanael Copa <[email protected]> Date: Wed, 18 Nov 2015 09:10:14 +0000 Subject: [PATCH] Fix definition of ALLPERMS and ACCESSPERMS
@@ -12,16 +12,20 @@ Signed-off-by: Natanael Copa <[email protected]> [Retrieved from: http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0006-Fix-definition-of-ALLPERMS-and-ACCESSPERMS.patch?h=sumo] Signed-off-by: Fabrice Fontaine <[email protected]> +[rebased against stable-12.3.0] +Signed-off-by: Stefan Agner <[email protected]> +[Bernd: rebased against stable-13.0.10] +Signed-off-by: Bernd Kuhls <[email protected]> --- - open-vm-tools/lib/hgfsServer/hgfsServerLinux.c | 8 +++++--- - open-vm-tools/services/plugins/dndcp/dnd/dndLinux.c | 3 +-- + lib/hgfsServer/hgfsServerLinux.c | 8 +++++--- + services/plugins/dndcp/dnd/dndLinux.c | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) -Index: open-vm-tools/lib/hgfsServer/hgfsServerLinux.c -=================================================================== ---- open-vm-tools.orig/lib/hgfsServer/hgfsServerLinux.c -+++ open-vm-tools/lib/hgfsServer/hgfsServerLinux.c -@@ -107,11 +107,13 @@ typedef struct DirectoryEntry { +diff --git a/lib/hgfsServer/hgfsServerLinux.c b/lib/hgfsServer/hgfsServerLinux.c +index 4a0bc9378..6ed49e2b7 100644 +--- a/lib/hgfsServer/hgfsServerLinux.c ++++ b/lib/hgfsServer/hgfsServerLinux.c +@@ -105,11 +105,13 @@ typedef struct DirectoryEntry { #endif /*
@@ -38,11 +42,11 @@ Index: open-vm-tools/lib/hgfsServer/hgfsServerLinux.c # define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) #endif -Index: open-vm-tools/services/plugins/dndcp/dnd/dndLinux.c -=================================================================== ---- open-vm-tools.orig/services/plugins/dndcp/dnd/dndLinux.c -+++ open-vm-tools/services/plugins/dndcp/dnd/dndLinux.c -@@ -51,7 +51,7 @@ +diff --git a/services/plugins/dndcp/dnd/dndLinux.c b/services/plugins/dndcp/dnd/dndLinux.c +index 219065f74..b5b7e6203 100644 +--- a/services/plugins/dndcp/dnd/dndLinux.c ++++ b/services/plugins/dndcp/dnd/dndLinux.c +@@ -53,7 +53,7 @@ #define DND_ROOTDIR_PERMS (S_IRWXU | S_IRWXG | S_IRWXO) #define DND_STAGINGDIR_PERMS (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
@@ -51,7 +55,7 @@ Index: open-vm-tools/services/plugins/dndcp/dnd/dndLinux.c #define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO) #endif #ifdef __ANDROID__ -@@ -60,7 +60,6 @@ +@@ -62,7 +62,6 @@ */ #define NO_SETMNTENT #define NO_ENDMNTENT
@@ -59,3 +63,6 @@ Index: open-vm-tools/services/plugins/dndcp/dnd/dndLinux.c #endif +-- +2.47.3 +
package/openvmtools/0007-Use-configure-to-test-for-feature-instead-of-platfor.patch +34 -40
120 lines not on this page · raw message
package/openvmtools/0008-Use-configure-test-for-sys-stat.h-include.patch +14 -7
@@ -1,4 +1,4 @@ -From 95c6184d9ff70a47c41768850923a96de9e544aa Mon Sep 17 00:00:00 2001 +From 2b1df418ff114676ba93c005d96925a068e41944 Mon Sep 17 00:00:00 2001 From: Natanael Copa <[email protected]> Date: Wed, 18 Nov 2015 10:41:01 +0000 Subject: [PATCH] Use configure test for sys/stat.h include
@@ -9,15 +9,19 @@ Signed-off-by: Natanael Copa <[email protected]> [Retrieved from: http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0011-Use-configure-test-for-sys-stat.h-include.patch?h=sumo] Signed-off-by: Fabrice Fontaine <[email protected]> +[rebased against stable-12.3.0] +Signed-off-by: Stefan Agner <[email protected]> +[Bernd: rebased against stable-13.0.10] +Signed-off-by: Bernd Kuhls <[email protected]> --- - open-vm-tools/services/plugins/vix/vixTools.c | 2 +- + services/plugins/vix/vixTools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: open-vm-tools/services/plugins/vix/vixTools.c -=================================================================== ---- open-vm-tools.orig/services/plugins/vix/vixTools.c -+++ open-vm-tools/services/plugins/vix/vixTools.c -@@ -66,7 +66,7 @@ +diff --git a/services/plugins/vix/vixTools.c b/services/plugins/vix/vixTools.c +index 694371d10..b2079a10d 100644 +--- a/services/plugins/vix/vixTools.c ++++ b/services/plugins/vix/vixTools.c +@@ -67,7 +67,7 @@ #include <unistd.h> #endif
@@ -26,3 +30,6 @@ Index: open-vm-tools/services/plugins/vix/vixTools.c #include <sys/stat.h> #endif +-- +2.47.3 +
package/openvmtools/0009-open-vm-tools-vmhgfs-fuse-fsutils.h-fix-build-on-mus.patch renamed from package/openvmtools/0011-open-vm-tools-vmhgfs-fuse-fsutils.h-fix-build-on-mus.patch +5 -3
@@ -1,4 +1,4 @@ -From 0a5032669951ffd6735c294a6f309b0ec6667ea5 Mon Sep 17 00:00:00 2001 +From 84adbc466ed1ae2b87b383880ff724324866f59b Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine <[email protected]> Date: Sun, 8 Mar 2020 18:49:00 +0100 Subject: [PATCH] open-vm-tools/vmhgfs-fuse/fsutils.h: fix build on musl
@@ -18,12 +18,14 @@ Fixes: Signed-off-by: Fabrice Fontaine <[email protected]> [Upstream status: not sent yet (upstream is not reactive on third patch] +[Bernd: rebased against stable-13.0.10] +Signed-off-by: Bernd Kuhls <[email protected]> --- vmhgfs-fuse/fsutil.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmhgfs-fuse/fsutil.h b/vmhgfs-fuse/fsutil.h -index 34b6d489..a94f9fbb 100644 +index 34b6d489a..a94f9fbb1 100644 --- a/vmhgfs-fuse/fsutil.h +++ b/vmhgfs-fuse/fsutil.h @@ -32,7 +32,8 @@
@@ -37,5 +39,5 @@ index 34b6d489..a94f9fbb 100644 #endif -- -2.25.0 +2.47.3
package/openvmtools/0010-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch new file +51 -0
51 lines not on this page · raw message
package/openvmtools/0011-fix-initialization-discards-const-qualifier-from-poi.patch new file +148 -0
148 lines not on this page · raw message
package/openvmtools/0012-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch deleted +0 -80
80 lines not on this page · raw message
package/openvmtools/0012-glib_stubs-avoid-GLib-g_free-macro-redefinition-erro.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 34b3bfcbb8162a96b5a65a6864f736dff1ccd70b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 21 Nov 2025 00:29:10 -0800 +Subject: [PATCH] glib_stubs: avoid GLib g_free macro redefinition error + +glib 2.78+ defines g_free as an object-size checking macro. +open-vm-tools overrides g_free(), leading to preprocessor expansion +inside the function signature and breaking the build. + +Undefine the macro before defining the stub. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream: https://github.com/vmware/open-vm-tools/pull/779 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + lib/rpcChannel/glib_stubs.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/lib/rpcChannel/glib_stubs.c b/lib/rpcChannel/glib_stubs.c +index c32deb073..cb89c6a87 100644 +--- a/lib/rpcChannel/glib_stubs.c ++++ b/lib/rpcChannel/glib_stubs.c +@@ -35,6 +35,9 @@ + + void *g_malloc0(size_t s) { return Util_SafeCalloc(1, s); } + void *g_malloc0_n(size_t n, size_t s) { return Util_SafeCalloc(n, s); } ++/* GLib defines g_free as a macro, so undefine it before providing ++ * our own stub implementation. */ ++#undef g_free + void g_free(void *p) { free(p); } + + void g_mutex_init(GMutex *mutex) { } +-- +2.47.3 +
package/openvmtools/0013-Properly-check-authorization-on-incoming-guestOps-re.patch deleted +0 -41
41 lines not on this page · raw message
package/openvmtools/0014-CVE-2025-22247-1100-1225-VGAuth-updates.patch deleted +0 -383
383 lines not on this page · raw message
package/openvmtools/openvmtools.hash +2 -1
@@ -1,3 +1,4 @@ +# From https://github.com/vmware/open-vm-tools/releases/tag/stable-13.0.10 +sha256 c301276edbed4b7f2c291678dc952e671c589265eb5233300e0be7287c7268ae open-vm-tools-13.0.10-25056151.tar.gz # locally computed -sha256 2053daf7b224ab7ae1a9cfcd6ae12494c646e2bf9aaca998225bd082a4a43fb7 open-vm-tools-11.3.5-18557794.tar.gz sha256 f734933bd7d49aef25aaf897ed7281ee822e8635056e69b895a7d2e668937fc5 COPYING
package/openvmtools/openvmtools.mk +12 -10
@@ -4,8 +4,8 @@ # ################################################################################ -OPENVMTOOLS_VERSION_MAJOR = 11.3.5 -OPENVMTOOLS_VERSION = $(OPENVMTOOLS_VERSION_MAJOR)-18557794 +OPENVMTOOLS_VERSION_MAJOR = 13.0.10 +OPENVMTOOLS_VERSION = $(OPENVMTOOLS_VERSION_MAJOR)-25056151 OPENVMTOOLS_SITE = https://github.com/vmware/open-vm-tools/releases/download/stable-$(OPENVMTOOLS_VERSION_MAJOR) OPENVMTOOLS_SOURCE = open-vm-tools-$(OPENVMTOOLS_VERSION).tar.gz OPENVMTOOLS_LICENSE = LGPL-2.1
@@ -17,18 +17,13 @@ OPENVMTOOLS_CPE_ID_PRODUCT = tools # previously connected to this CVE ID because of a typo, is at CVE-2022-31693 OPENVMTOOLS_IGNORE_CVES += CVE-2021-31693 -# 0013-Properly-check-authorization-on-incoming-guestOps-re.patch -OPENVMTOOLS_IGNORE_CVES += CVE-2022-31676 - -# 0014-CVE-2025-22247-1100-1225-VGAuth-updates.patch -OPENVMTOOLS_IGNORE_CVES += CVE-2025-22247 - # configure.ac is patched OPENVMTOOLS_AUTORECONF = YES OPENVMTOOLS_CONF_OPTS = --with-dnet \ --without-icu --without-x --without-gtk2 \ --without-gtkmm --without-kernel-modules \ - --disable-deploypkg --without-xerces + --disable-deploypkg --without-xerces \ + --disable-vgauth --disable-containerinfo OPENVMTOOLS_CONF_ENV += \ CUSTOM_DNET_CPPFLAGS=" " \ LIBS=$(TARGET_NLS_LIBS)
@@ -39,7 +34,10 @@ OPENVMTOOLS_DEPENDENCIES = \ $(TARGET_NLS_DEPENDENCIES) ifeq ($(BR2_PACKAGE_LIBTIRPC),y) +OPENVMTOOLS_CONF_OPTS += --with-tirpc OPENVMTOOLS_DEPENDENCIES += libtirpc +else +OPENVMTOOLS_CONF_OPTS += --without-tirpc endif ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
@@ -48,7 +46,11 @@ endif # When libfuse is available, openvmtools can build vmblock-fuse, so # make sure that libfuse gets built first -ifeq ($(BR2_PACKAGE_LIBFUSE),y) +ifeq ($(BR2_PACKAGE_LIBFUSE3),y) +OPENVMTOOLS_CONF_OPTS += --with-fuse=fuse3 +OPENVMTOOLS_DEPENDENCIES += libfuse3 +else ifeq ($(BR2_PACKAGE_LIBFUSE),y) +OPENVMTOOLS_CONF_OPTS += --with-fuse=fuse OPENVMTOOLS_DEPENDENCIES += libfuse endif
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot