summaryrefslogtreecommitdiff
path: root/pkg/ffmpeg/patch/0003-configure-Use-awk-to-implement-unique.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2018-11-05 17:00:15 -0800
committerMichael Forney <mforney@mforney.org>2018-11-06 00:00:25 -0800
commit1d73018af21bc861bfc090ea0ca5a037e3036e7b (patch)
treee8257cb891842fde0f78b79eda5c429cf44d6983 /pkg/ffmpeg/patch/0003-configure-Use-awk-to-implement-unique.patch
parentdfc0a22e4f4b2c4f30b80eb65c7fb29d3848292a (diff)
ffmpeg: Update to 4.1
Diffstat (limited to 'pkg/ffmpeg/patch/0003-configure-Use-awk-to-implement-unique.patch')
-rw-r--r--pkg/ffmpeg/patch/0003-configure-Use-awk-to-implement-unique.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/pkg/ffmpeg/patch/0003-configure-Use-awk-to-implement-unique.patch b/pkg/ffmpeg/patch/0003-configure-Use-awk-to-implement-unique.patch
deleted file mode 100644
index 1cf4c4e0..00000000
--- a/pkg/ffmpeg/patch/0003-configure-Use-awk-to-implement-unique.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 99d770f3a43ce44659d6dd81caf93040721cc628 Mon Sep 17 00:00:00 2001
-From: Michael Forney <mforney@mforney.org>
-Date: Sun, 22 Apr 2018 23:46:33 -0700
-Subject: [PATCH] configure: Use awk to implement unique()
-
-Otherwise, if printf is not a builtin it runs very very slowly.
----
- configure | 5 +----
- 1 file changed, 1 insertion(+), 4 deletions(-)
-
-diff --git a/configure b/configure
-index dee507cb6a..9b7ddfee24 100755
---- a/configure
-+++ b/configure
-@@ -838,10 +838,7 @@ prepend(){
-
- unique(){
- var=$1
-- uniq_list=""
-- for tok in $(eval echo \$$var); do
-- uniq_list="$(filter_out $tok $uniq_list) $tok"
-- done
-+ uniq_list=$(eval "printf '%s\n' \$$var" | awk '!($0 in seen) { seen[$0] = 1; printf "%s ", $0 }')
- eval "$var=\"${uniq_list}\""
- }
-
---
-2.17.0
-