2011-06-20, 05:13
eternalsword Wrote:Here's my patch. Patch is applied before bootstrapping. Switched version to 0.9.999 Not sure what the closest version is to the current state of your repo. Should probably replace with that version. By the way, I'll probably set up an overlay for gentoo to automate using your stuff for anyone interested. I have the pulse ebuild working. Will need to set up audiofilter and xbmc.
Code:diff --git a/git-version-gen b/git-version-gen
index 6181ad9..0fdb31f 100755
--- a/git-version-gen
+++ b/git-version-gen
@@ -133,23 +133,23 @@ then
# v=`echo "$v" | sed 's/-/./;s/\(.*\)-g/\1-/'`;
:
else
- v=UNKNOWN
+ v=0.9.999
fi
v=`echo "$v" |sed 's/^v//'`
# Don't declare a version "dirty" merely because a time stamp has changed.
-git status > /dev/null 2>&1
+#git status > /dev/null 2>&1
-dirty=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty=
-case "$dirty" in
- '') ;;
- *) # Append the suffix only if there isn't one already.
- case $v in
- *-dirty) ;;
- *) v="$v-dirty" ;;
- esac ;;
-esac
+#dirty=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty=
+#case "$dirty" in
+# '') ;;
+# *) # Append the suffix only if there isn't one already.
+# case $v in
+# *-dirty) ;;
+# *) v="$v-dirty" ;;
+# esac ;;
+#esac
# Omit the trailing newline, so that m4_esyscmd can use the result directly.
echo "$v" | tr -d '\012'
This patch fixes quite a few compilation issues with other multimedia apps such as Vlc. Although changing the version to 1.0.0 was necessary to get Vlc to detect a proper version. I don't think they'll roll this into their git version, but you could ask on the pulseaudio mailing list.