[FFmpeg-devel] [PATCH V2 2/2] configure: replace 'pr' with printf since busybox does not support pr

Guo, Yejun yejun.guo at intel.com
Mon Apr 15 16:23:38 EEST 2019


It is part of change from https://trac.ffmpeg.org/ticket/5680 provided
by Kylie McClain <somasis at exherbo.org> at Wed, 29 Jun 2016 16:37:20 -0400.

That change contains two parts, in function log_file and in function print_in_columns.

The second part is not good, so I have send out a new patch for print_in_columns.

As for the change in the first part, it is good. Just to make the whole thing completed,
i send out this patch to copy exactally the change in function log_file.

I'm not sure if it is the expected behavior to make the whole thing completed,
please ignore this patch if not expected.

Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
---
 configure | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 45a9126..e596912 100755
--- a/configure
+++ b/configure
@@ -503,7 +503,11 @@ log(){
 
 log_file(){
     log BEGIN $1
-    pr -n -t $1 >> $logfile
+    i=1
+    while read line;do
+        printf '%5s   %s\n' "${i}" "${line}"
+        i=$(($i+1))
+    done < $1 >> $logfile
     log END $1
 }
 
-- 
2.7.4



More information about the ffmpeg-devel mailing list