File: 0001_add_version_string.patch

package info (click to toggle)
tpm2-tools 5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,496 kB
  • sloc: ansic: 44,816; sh: 14,655; xml: 8,342; makefile: 598; python: 51
file content (20 lines) | stat: -rw-r--r-- 954 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
Description: Add version string to configure.ac
 The configure.ac uses git to get the version string. However the git command
 cannot get the version string because this is not a git repo.
 In Debian we should get the string from debian/changelog.
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Bug-Debian: https://bugs.debian.org/913503
Last-Update: 2018-12-10
Index: tpm2-tools-5.3/bootstrap
===================================================================
--- tpm2-tools-5.3.orig/bootstrap
+++ tpm2-tools-5.3/bootstrap
@@ -5,7 +5,7 @@ set -e
 
 # Generate a VERSION file that is included in the dist tarball to avoid needed git
 # when calling autoreconf in a release tarball.
-git describe --tags --always --dirty > VERSION
+dpkg-parsechangelog | grep Version: | sed -e 's/Version: //' | sed -e 's/-[^-]\+$//' > VERSION
 
 # generate list of source files for use in Makefile.am
 # if you add new source files, you must run ./bootstrap again