python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / package / gnupg2 / 0004-silence-git-when-not-in-git-tree.patch
blob5eaefe4bda8cbb1bfffbb1ee08799ddae143d5e7
1 configure: silence autoreconf when not in a git tree
3 When autoreconfiguring ourside of a git tree, the output is verbose
4 with git errors.
6 Silence that by consigning stderr to oblivion.
8 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
10 diff -durN gnupg2-2.0.29.orig/configure.ac gnupg2-2.0.29/configure.ac
11 --- gnupg2-2.0.29.orig/configure.ac 2015-09-08 14:39:24.000000000 +0200
12 +++ gnupg2-2.0.29/configure.ac 2015-12-16 18:34:47.099493863 +0100
13 @@ -33,11 +33,11 @@
14 # flag indicating a development version (mym4_isgit). Note that the
15 # m4 processing is done by autoconf and not during the configure run.
16 m4_define([mym4_revision],
17 - m4_esyscmd([git rev-parse --short HEAD | tr -d '\n\r']))
18 + m4_esyscmd([git rev-parse --short HEAD 2>/dev/null | tr -d '\n\r']))
19 m4_define([mym4_revision_dec],
20 m4_esyscmd_s([echo $((0x$(echo ]mym4_revision[|head -c 4)))]))
21 m4_define([mym4_betastring],
22 - m4_esyscmd_s([git describe --match 'gnupg-2.[0-9].*[0-9]' --long|\
23 + m4_esyscmd_s([git describe --match 'gnupg-2.[0-9].*[0-9]' --long 2>/dev/null |\
24 awk -F- '$3!=0{print"-beta"$3}']))
25 m4_define([mym4_isgit],m4_if(mym4_betastring,[],[no],[yes]))
26 m4_define([mym4_full_version],[mym4_version[]mym4_betastring])