xref: /OK3568_Linux_fs/buildroot/package/autoconf/0001-dont-add-dirty-to-version.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1autoconf: don't append -dirty to version
2
3Don't append -dirty to autoconf version number if the buildroot git tree
4has uncommited changes.
5
6This script is meant for the autoconf developers, but it also activates
7if you build autoconf in a subdirectory of a git tree (E.G. like how it's
8commonly done in buildroot).
9
10The affect is that autoconf gets built as being version 2.65-dirty, which
11breaks programs (like Python) which explicitly checks for autoconf-2.65.
12
13[Gustavo: update for autoconf 2.69]
14Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
15Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
16
17diff -Nura autoconf-2.69.orig/build-aux/git-version-gen autoconf-2.69/build-aux/git-version-gen
18--- autoconf-2.69.orig/build-aux/git-version-gen	2013-06-27 11:31:02.340200154 -0300
19+++ autoconf-2.69/build-aux/git-version-gen	2013-06-27 11:31:13.734577033 -0300
20@@ -203,7 +203,7 @@
21       *) # Append the suffix only if there isn't one already.
22           case $v in
23             *-dirty) ;;
24-            *) v="$v-dirty" ;;
25+            #*) v="$v-dirty" ;;
26           esac ;;
27   esac
28 fi
29