chiark / gitweb /
Import gnupg2_2.1.17-3.debian.tar.bz2
[gnupg2.git] / patches / debian-packaging / 0001-avoid-beta-warning.patch
1 From: Debian GnuPG Maintainers <pkg-gnupg-maint@lists.alioth.debian.org>
2 Date: Tue, 14 Apr 2015 10:02:31 -0400
3 Subject: avoid-beta-warning
4
5 avoid self-describing as a beta
6
7 Using autoreconf against the source as distributed in tarball form
8 invariably results in a package that thinks it's a "beta" package,
9 which produces the "THIS IS A DEVELOPMENT VERSION" warning string.
10
11 since we use dh_autoreconf, i need this patch to avoid producing
12 builds that announce themselves as DEVELOPMENT VERSIONs.
13
14 See discussion at:
15
16  http://lists.gnupg.org/pipermail/gnupg-devel/2014-November/029065.html
17 ---
18  autogen.sh | 6 +++---
19  1 file changed, 3 insertions(+), 3 deletions(-)
20
21 diff --git a/autogen.sh b/autogen.sh
22 index 92c6df807..6b631a241 100755
23 --- a/autogen.sh
24 +++ b/autogen.sh
25 @@ -214,7 +214,7 @@ if [ "$myhost" = "find-version" ]; then
26      esac
27  
28      beta=no
29 -    if [ -e .git ]; then
30 +    if false; then
31        ingit=yes
32        tmp=$(git describe --match "${matchstr1}" --long 2>/dev/null)
33        if [ -n "$tmp" ]; then
34 @@ -228,8 +228,8 @@ if [ "$myhost" = "find-version" ]; then
35        rvd=$((0x$(echo ${rev} | head -c 4)))
36      else
37        ingit=no
38 -      beta=yes
39 -      tmp="-unknown"
40 +      beta=no
41 +      tmp=""
42        rev="0000000"
43        rvd="0"
44      fi