wok-current view ffmpeg/stuff/build.patch @ rev 16828

up tazlito (5.2.4)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Jul 12 13:12:25 2014 +0000 (2014-07-12)
parents c5f7c8ee2f96
children
line source
1 --- configure.orig Wed Apr 22 17:24:34 2009
2 +++ configure Tue Apr 21 21:21:01 2009
3 @@ -1371,33 +1371,13 @@
4 : ${TMPDIR:=$TMP}
5 : ${TMPDIR:=/tmp}
7 -if ! check_cmd type mktemp; then
8 - # simple replacement for missing mktemp
9 - # NOT SAFE FOR GENERAL USE
10 - mktemp(){
11 - echo "${2%XXX*}.${HOSTNAME}.${UID}.$$"
12 - }
13 -fi
14 -
15 -tmpfile(){
16 - tmp=$(mktemp -u "${TMPDIR}/ffconf.XXXXXXXX")$2 &&
17 - (set -C; exec > $tmp) 2>/dev/null ||
18 - die "Unable to create temoporary file in $TMPDIR."
19 - append TMPFILES $tmp
20 - eval $1=$tmp
21 -}
23 -trap 'rm -f -- $TMPFILES' EXIT
24 -trap exit HUP INT TERM
25 -
26 -tmpfile TMPC .c
27 -tmpfile TMPE $EXESUF
28 -tmpfile TMPH .h
29 -tmpfile TMPO .o
30 -tmpfile TMPS .S
31 -tmpfile TMPSH .sh
32 -
33 -unset -f mktemp
34 +TMPC="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c"
35 +TMPE="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}"
36 +TMPH="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h"
37 +TMPO="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o"
38 +TMPS="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S"
39 +TMPSH="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh"
41 # make sure we can execute files in $TMPDIR
42 cat > $TMPSH 2>> $logfile <<EOF