File: 0004_remove-git-access.patch

package info (click to toggle)
openvpn3-client 25%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,276 kB
  • sloc: cpp: 190,085; python: 7,218; ansic: 1,866; sh: 1,361; java: 402; lisp: 81; makefile: 17
file content (39 lines) | stat: -rw-r--r-- 1,636 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Remove git access with meson during build
Author: Marc Leeman <marc.leeman@gmail.com>
Last-Update: 2025-05-16

Index: openvpn3-client/meson.build
===================================================================
--- openvpn3-client.orig/meson.build
+++ openvpn3-client/meson.build
@@ -159,30 +159,7 @@ if (dep_tinyxml2.version().version_compa
     endif
 endif
 
-# Prepare some version details - if on a git checkout
-# For tarball builds, the build-version.h should already pre-exist
-# in ./src
 fs = import('fs')
-if fs.exists(meson.project_source_root() / '.git')
-    openvpn3_core_ver = get_option('openvpn3_core_version')
-    if openvpn3_core_ver == ''
-       openvpn3_core_ver = run_command(['scripts/get-version','--core-version'], check: true).stdout().strip()
-    endif
-
-    version_header = configuration_data()
-    version_header.set_quoted('OPENVPN_VERSION',
-                              openvpn3_core_ver,
-                              description: 'OpenVPN 3 Core Library version')
-    version_header.set_quoted('PACKAGE_GUIVERSION',
-                              run_command(['scripts/get-version','--gui-version'], check: true).stdout().strip(),
-                              description: 'OpenVPN 3 Linux version identifier')
-    version_header.set_quoted('PACKAGE_NAME', 'OpenVPN3/Linux',
-                              description: 'Name of this project')
-    configure_file(
-        configuration: version_header,
-        output: 'build-version.h'
-    )
-endif
 meson.add_dist_script(find_program('scripts/prepare-build-version-h'))
 cp_prog = find_program('cp', required: true)