File: Avoid-git-fanciness-during-build.patch

package info (click to toggle)
balsa 2.6.4-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 24,784 kB
  • sloc: ansic: 96,206; sh: 4,291; makefile: 701; awk: 60; xml: 25
file content (33 lines) | stat: -rw-r--r-- 1,045 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
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Mon, 13 Apr 2020 12:10:27 -0400
Subject: Avoid git fanciness during build.

Debian builds are not done from git, but sometimes they might be
(e.g. when usin gbp buildpackage).  We don't want the build to differ
between these two cases.
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7b7ae75..b21162e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,7 +9,7 @@ dnl Boilerplace and versioning
 dnl ###########################################################################
 
 # if autoconf is used not in a git source tree, use version=2.6.4
-AC_INIT([balsa],[m4_esyscmd(test -d .git && echo -n `git describe --tags` || echo -n 2.6.4)],[])
+AC_INIT([balsa],[2.6.4],[])
 
 AM_INIT_AUTOMAKE
 AC_LANG([C])
@@ -563,7 +563,7 @@ fi
 # extra warnings for GIT.
 #
 
-if test -d "${srcdir}/.git" ; then
+if false ; then
 	BALSA_FROM_GIT=yes
 	BALSA_CFLAGS="$BALSA_CFLAGS -Wall -Werror"
         BALSA_DEFS="$BALSA_DEFS \