]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Set the "patch" field of VMTools version to zero.
authorKruti Pendharkar <kp025370@broadcom.com>
Wed, 11 Jun 2025 00:48:53 +0000 (17:48 -0700)
committerKruti Pendharkar <kp025370@broadcom.com>
Wed, 11 Jun 2025 00:48:53 +0000 (17:48 -0700)
Prior to VMTools 13.0.0, the fourth field in the VMTools version was set
to PRODUCT_BUILD_NUMBER_NUMERIC which was the sequential build number
of the product within the branch. Going forward, the fourth field
of the displayed VMTools version is to be the "patch" starting with a
'0' value.

open-vm-tools/lib/include/vm_tools_version.h

index cff3f2f5645b826fa1eda3530b14316687112d9f..ef67f737c812254f60e41e89b53e334093bffd36 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (c) 1998-2024 Broadcom. All rights reserved.
+ * Copyright (c) 1998-2025 Broadcom. All Rights Reserved.
  * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
  *
  * This program is free software; you can redistribute it and/or modify it
@@ -123,6 +123,9 @@ TOOLS_VERSION_UINT_TO_COMPONENTS(const ToolsVersion toolsVersion,   // IN
 /* Historically -1 indicates tools version is not available. */
 #define TOOLS_VERSION_INVALID   0xffffffff
 
+#define _STRINGIZER(X)    #X
+#define STRINGIZER(X)     _STRINGIZER(X)
+
 #define STRINGER(MJR, MNR, BASE)     #MJR "." #MNR "." #BASE
 #define TOOLS_VERSION_STRINGER(MJR, MNR, BASE)    STRINGER(MJR, MNR, BASE)
 
@@ -1819,12 +1822,18 @@ TOOLS_VERSION_UINT_TO_COMPONENTS(const ToolsVersion toolsVersion,   // IN
  * For Windows tools, the fourth component of the version number must
  * be < 65k (circa), so we use PRODUCT_BUILD_NUMBER instead of
  * BUILD_NUMBER.
+ *
+ * Starting with VMware Tools 13.0.0, the fourth field in a version number
+ * represents the patch number. This is generally unused and set to 0.
  */
 
+#define TOOLS_VERSION_PATCH     0
+#define TOOLS_VERSION_PATCH_STR STRINGIZER(TOOLS_VERSION_PATCH)
+
 #define TOOLS_VERSION_EXT_CURRENT_CSV \
-   TOOLS_VERSION_CURRENT_CSV,PRODUCT_BUILD_NUMBER_NUMERIC
+   TOOLS_VERSION_CURRENT_CSV,TOOLS_VERSION_PATCH
 #define TOOLS_VERSION_EXT_CURRENT_STR \
-   TOOLS_VERSION_CURRENT_STR "." PRODUCT_BUILD_NUMBER_NUMERIC_STRING
+   TOOLS_VERSION_CURRENT_STR "." TOOLS_VERSION_PATCH_STR
 
 /* clang-format on */