wok annotate ffmpeg/stuff/build.patch @ rev 25044
*/stuff/bootloader.S: fix VCPI case
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 02 15:48:36 2022 +0000 (2022-06-02) |
parents | c5f7c8ee2f96 |
children |
rev | line source |
---|---|
jozee@2710 | 1 --- configure.orig Wed Apr 22 17:24:34 2009 |
jozee@2710 | 2 +++ configure Tue Apr 21 21:21:01 2009 |
jozee@2680 | 3 @@ -1371,33 +1371,13 @@ |
jozee@2680 | 4 : ${TMPDIR:=$TMP} |
jozee@2680 | 5 : ${TMPDIR:=/tmp} |
jozee@2680 | 6 |
jozee@2680 | 7 -if ! check_cmd type mktemp; then |
jozee@2710 | 8 - # simple replacement for missing mktemp |
jozee@2680 | 9 - # NOT SAFE FOR GENERAL USE |
jozee@2680 | 10 - mktemp(){ |
jozee@2680 | 11 - echo "${2%XXX*}.${HOSTNAME}.${UID}.$$" |
jozee@2680 | 12 - } |
jozee@2680 | 13 -fi |
jozee@2710 | 14 - |
jozee@2680 | 15 -tmpfile(){ |
jozee@2680 | 16 - tmp=$(mktemp -u "${TMPDIR}/ffconf.XXXXXXXX")$2 && |
jozee@2680 | 17 - (set -C; exec > $tmp) 2>/dev/null || |
jozee@2680 | 18 - die "Unable to create temoporary file in $TMPDIR." |
jozee@2680 | 19 - append TMPFILES $tmp |
jozee@2680 | 20 - eval $1=$tmp |
jozee@2680 | 21 -} |
jozee@2710 | 22 |
jozee@2680 | 23 -trap 'rm -f -- $TMPFILES' EXIT |
jozee@2680 | 24 -trap exit HUP INT TERM |
jozee@2680 | 25 - |
jozee@2680 | 26 -tmpfile TMPC .c |
jozee@2680 | 27 -tmpfile TMPE $EXESUF |
jozee@2680 | 28 -tmpfile TMPH .h |
jozee@2680 | 29 -tmpfile TMPO .o |
jozee@2680 | 30 -tmpfile TMPS .S |
jozee@2680 | 31 -tmpfile TMPSH .sh |
jozee@2680 | 32 - |
jozee@2680 | 33 -unset -f mktemp |
jozee@2680 | 34 +TMPC="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c" |
jozee@2680 | 35 +TMPE="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}" |
jozee@2680 | 36 +TMPH="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" |
jozee@2680 | 37 +TMPO="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" |
jozee@2680 | 38 +TMPS="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" |
jozee@2680 | 39 +TMPSH="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" |
jozee@2680 | 40 |
jozee@2680 | 41 # make sure we can execute files in $TMPDIR |
jozee@2680 | 42 cat > $TMPSH 2>> $logfile <<EOF |