summaryrefslogtreecommitdiff
path: root/user/spice-gtk/fix-dirty-spicy-corruption.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/spice-gtk/fix-dirty-spicy-corruption.patch')
-rw-r--r--user/spice-gtk/fix-dirty-spicy-corruption.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/user/spice-gtk/fix-dirty-spicy-corruption.patch b/user/spice-gtk/fix-dirty-spicy-corruption.patch
new file mode 100644
index 000000000..44397fc67
--- /dev/null
+++ b/user/spice-gtk/fix-dirty-spicy-corruption.patch
@@ -0,0 +1,23 @@
+diff -ur a/build-aux/git-version-gen b/build-aux/git-version-gen
+--- a/build-aux/git-version-gen 2024-12-10 15:40:58.099527209 +0000
++++ b/build-aux/git-version-gen 2024-12-10 15:44:18.316014690 +0000
+@@ -133,19 +133,6 @@
+
+ v=`echo "$v" |sed 's/^v//'`
+
+-# Don't declare a version "dirty" merely because a time stamp has changed.
+-git update-index --refresh > /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
+-
+ # Omit the trailing newline, so that m4_esyscmd can use the result directly.
+ echo "$v" | tr -d "$nl"
+