Skip to contentSkip to conversation

msvc: fix product version display

PATCH In review Lev Stipakov 2 participants 2 messages Oct 13, 2021 – Oct 14, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 msvc: fix product version display

From: Lev Stipakov <[email protected]...>

PRODUCT_VERSION_PATCH, defined in version.m4, already includes dot (like ".4"), so no need to include it here.

---
 config-msvc-version.h.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
config-msvc-version.h.in +2 -2
index 7977cb84..59ca654a 100644
@@ -5,8 +5,8 @@
 #define PRODUCT_VERSION_MAJOR "@PRODUCT_VERSION_MAJOR@"
 #define PRODUCT_VERSION_MINOR "@PRODUCT_VERSION_MINOR@"
 #define PRODUCT_VERSION_PATCH "@PRODUCT_VERSION_PATCH@"
-#define PACKAGE_VERSION "@[email protected]...@[email protected]...@PRODUCT_VERSION_PATCH@"
-#define PRODUCT_VERSION "@[email protected]...@[email protected]...@PRODUCT_VERSION_PATCH@"
+#define PACKAGE_VERSION "@[email protected]...@PRODUCT_VERSION_MINOR@@PRODUCT_VERSION_PATCH@"
+#define PRODUCT_VERSION "@[email protected]...@PRODUCT_VERSION_MINOR@@PRODUCT_VERSION_PATCH@"
 #define PRODUCT_BUGREPORT "@PRODUCT_BUGREPORT@"
 #define OPENVPN_VERSION_RESOURCE @PRODUCT_VERSION_RESOURCE@
 #define TAP_WIN_COMPONENT_ID "@PRODUCT_TAP_WIN_COMPONENT_ID@"
Signature · 1 line
2.23.0.windows.1
Acked-by on v1 1/3
#1 lore raw

"makes sense"

Your patch has been applied to the master and release/2.5 branch.

(As a side note, why do we have PACKAGE_VERSION and PRODUCT_VERSION there that seem to be totally identical, but each one defined individually?)

commit 23143667ff3368694191a57fea29b41d25c4b135 (master) commit d6a9bf5d77451571b8d4ba83f5a80f5e16f9174b (release/2.5)

Author: Lev Stipakov
Date:   Thu Oct 14 02:02:27 2021 +0300
     msvc: fix product version display

     Signed-off-by: Lev Stipakov <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg22931.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering