From 95b74692ab2b86aff72857fa886fbea1e7e006a9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 17 Apr 2011 10:38:27 +0000 Subject: main/ffmpeg: build fix dont use mktemp -u --- main/ffmpeg/APKBUILD | 4 +++- main/ffmpeg/bb-mktemp.patch | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 main/ffmpeg/bb-mktemp.patch diff --git a/main/ffmpeg/APKBUILD b/main/ffmpeg/APKBUILD index 1fb76d070..ad08ebf6b 100644 --- a/main/ffmpeg/APKBUILD +++ b/main/ffmpeg/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=ffmpeg pkgver=0.6.2 -pkgrel=0 +pkgrel=1 pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix" url="http://ffmpeg.org/" arch="all" @@ -12,6 +12,7 @@ makedepends="lame-dev libvorbis-dev faad2-dev faac-dev xvidcore-dev zlib-dev libvpx-dev" depends= source="http://ffmpeg.org/releases/ffmpeg-$pkgver.tar.bz2 + bb-mktemp.patch pic.patch" _builddir="$srcdir"/$pkgname-$pkgver @@ -54,4 +55,5 @@ package() { # strip --strip-debug "$pkgdir"/usr/lib/*.a || return 1 } md5sums="f7819307dad55aa0d6b40ac0e862884d ffmpeg-0.6.2.tar.bz2 +c7937983bdf9a49b22d7c01ee84a05f8 bb-mktemp.patch d4870ae7350caed041d2b39e406a173b pic.patch" diff --git a/main/ffmpeg/bb-mktemp.patch b/main/ffmpeg/bb-mktemp.patch new file mode 100644 index 000000000..a0438c6bb --- /dev/null +++ b/main/ffmpeg/bb-mktemp.patch @@ -0,0 +1,17 @@ +--- ./configure.orig ++++ ./configure +@@ -1684,12 +1684,12 @@ + # simple replacement for missing mktemp + # NOT SAFE FOR GENERAL USE + mktemp(){ +- echo "${2%XXX*}.${HOSTNAME}.${UID}.$$" ++ echo "${1%XXX*}.${HOSTNAME}.${UID}.$$" + } + fi + + tmpfile(){ +- tmp=$(mktemp -u "${TMPDIR}/ffconf.XXXXXXXX")$2 && ++ tmp=$(mktemp "${TMPDIR}/ffconf.XXXXXXXX")$2 && + (set -C; exec > $tmp) 2>/dev/null || + die "Unable to create temporary file in $TMPDIR." + append TMPFILES $tmp -- cgit v1.2.3