a2a062336936009a02b536c30f04d01a92d9d3c1
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / vala / 0001-dont-add-dirty-to-valac-version.patch
1 valac: don't append -dirty to version
2
3 Don't append -dirty to the valac version number if the Buildroot Git
4 tree has uncommited changes.
5
6 The patched script is meant for the valac developers, but it also
7 activates if you build valac in a subdirectory of a Git tree (e.g.
8 as is commonly done in Buildroot).
9
10 The effect is that valac gets built as being version x.y.z-dirty, which
11 breaks programs (such as Midori) that explicitly check for valac-x.y.z.
12
13 Signed-off-by: Simon Dawson <spdawson@gmail.com>
14 diff -Nur a/build-aux/git-version-gen b/build-aux/git-version-gen
15 --- a/build-aux/git-version-gen 2010-08-15 12:49:03.000000000 +0100
16 +++ b/build-aux/git-version-gen 2012-05-14 10:17:19.977204570 +0100
17 @@ -135,7 +135,7 @@
18      *) # Append the suffix only if there isn't one already.
19         case $v in
20           *-dirty) ;;
21 -         *) v="$v-dirty" ;;
22 +         #*) v="$v-dirty" ;;
23         esac ;;
24  esac
25