0001-dont-add-dirty-to-version.patch 1.1 KB

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