Package: kicad / 5.0.2+dfsg1-1~bpo9+1

debian-hacks/Removing-hyphen-inside-KICAD_FULL_VERSION.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Sat, 17 Dec 2016 20:11:25 +0100
Subject: Removing hyphen inside KICAD_FULL_VERSION

Upstream is providing the possibility to append various strings into the
KICAD_FULL_VERSION if needed. We can use this to append the debian
specific version on the upstream version.
For this the KICAD_FULL_VERSION needs to be merged without the hyphen
'-' so the version is reflecting the debian version in real.
---
 CMakeModules/WriteVersionHeader.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeModules/WriteVersionHeader.cmake b/CMakeModules/WriteVersionHeader.cmake
index d58c39b..a550764 100644
--- a/CMakeModules/WriteVersionHeader.cmake
+++ b/CMakeModules/WriteVersionHeader.cmake
@@ -39,7 +39,7 @@ set( KICAD_VERSION_FULL "${KICAD_VERSION}" )
 
 # Optional user version information defined at configuration.
 if( KICAD_VERSION_EXTRA )
-    set( KICAD_VERSION_FULL "${KICAD_VERSION_FULL}-${KICAD_VERSION_EXTRA}" )
+    set( KICAD_VERSION_FULL "${KICAD_VERSION_FULL}${KICAD_VERSION_EXTRA}" )
 endif()
 
 set( _wvh_new_version_text