Upstream test to auto-detect git snapshot don't pla nicely with our git repo.
Should be reported upstream.
Index: libhugetlbfs/localversion
===================================================================
--- libhugetlbfs.orig/localversion	2010-03-18 08:58:31.000000000 +0100
+++ libhugetlbfs/localversion	2010-03-18 09:00:36.000000000 +0100
@@ -31,7 +31,8 @@
 modified=0
 
 # GIT: check for a git tree.
-mod=`git diff-index HEAD 2>/dev/null`
+#mod=`git diff-index HEAD 2>/dev/null`
+false
 if [ "$?" -eq 0 ]; then
 	# This is a GIT repo, see if it was modified.
 	if [ "$mod" != "" ]; then
