File: do-not-assume-git-checkout.patch

package info (click to toggle)
tup 0.7.8-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 18,448 kB
  • sloc: ansic: 217,845; sh: 17,432; perl: 184; python: 67; lisp: 63; makefile: 62
file content (23 lines) | stat: -rw-r--r-- 749 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Dmitry Bogatov <KAction@gnu.org>
Date: Fri, 28 Sep 2018 22:44:52 +0300
Subject: Do not assume git checkout

Derive tup version (compiled into binary) from debian/changelog, not
state of git repository.
---
 src/tup/link.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tup/link.sh b/src/tup/link.sh
index ed9a01c..27748f8 100755
--- a/src/tup/link.sh
+++ b/src/tup/link.sh
@@ -4,7 +4,7 @@
 # linking, so that the version is updated whenever we change anything that
 # affects the tup binary. This used to live in the Tupfile, but to support
 # Windows local builds we need to make it an explicit shell script.
-version=`git describe`
+version="$(dpkg-parsechangelog -SVersion) [debian]"
 CC=$1
 CFLAGS=$2
 LDFLAGS=$3