summaryrefslogtreecommitdiff
path: root/user/libslirp/git-describe.patch
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2020-04-24 17:02:53 -0500
committerMax Rees <maxcrees@me.com>2020-04-24 17:02:53 -0500
commitf58efe23e016a57672e127d949784f408c0d470c (patch)
tree541fd38cfdc08b475dfeaadfab46c92d91040d78 /user/libslirp/git-describe.patch
parent9725eeb5cc1649d1f15f24a508f13ff762032f24 (diff)
downloadpackages-f58efe23e016a57672e127d949784f408c0d470c.tar.gz
packages-f58efe23e016a57672e127d949784f408c0d470c.tar.bz2
packages-f58efe23e016a57672e127d949784f408c0d470c.tar.xz
packages-f58efe23e016a57672e127d949784f408c0d470c.zip
user/libslirp: [CVE] bump to 4.3.0
Diffstat (limited to 'user/libslirp/git-describe.patch')
-rw-r--r--user/libslirp/git-describe.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/user/libslirp/git-describe.patch b/user/libslirp/git-describe.patch
new file mode 100644
index 000000000..9cc66bbad
--- /dev/null
+++ b/user/libslirp/git-describe.patch
@@ -0,0 +1,24 @@
+Otherwise you might get "-dirty" in the pc: version
+
+--- libslirp-4.3.0/build-aux/git-version-gen 2020-04-23 06:09:44.166262600 -0500
++++ libslirp-4.3.0/build-aux/git-version-gen 2020-04-24 15:08:09.450004079 -0500
+@@ -133,19 +133,6 @@ fi
+
+ 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"
+