[SCM] libav/experimental: configure: fix mktemp test and fallback function

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:22:15 UTC 2013


The following commit has been merged in the experimental branch:
commit 09a5c2452cab8931f70ecb51705114682c962f98
Author: Mans Rullgard <mans at mansr.com>
Date:   Thu Oct 7 00:44:52 2010 +0100

    configure: fix mktemp test and fallback function

diff --git a/configure b/configure
index 123de51..895b855 100755
--- a/configure
+++ b/configure
@@ -1792,11 +1792,11 @@ HOSTEXESUF=$(exesuf $host_os)
 : ${TMPDIR:=$TMP}
 : ${TMPDIR:=/tmp}
 
-if ! check_cmd type mktemp; then
+if ! check_cmd mktemp -u; then
     # simple replacement for missing mktemp
     # NOT SAFE FOR GENERAL USE
     mktemp(){
-        echo "${2%XXX*}.${HOSTNAME}.${UID}.$$"
+        echo "${2%%XXX*}.${HOSTNAME}.${UID}.$$"
     }
 fi
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list