[SCM] libav/experimental: Fix endian test with grep not handling non-text files

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:16:12 UTC 2013


The following commit has been merged in the experimental branch:
commit 22f8654776e34d3effb75beae5e8d33f36adc3c6
Author: Måns Rullgård <mans at mansr.com>
Date:   Mon Mar 3 22:01:15 2008 +0000

    Fix endian test with grep not handling non-text files
    
    POSIX grep is not required to support non-text files.
    
    Idea by Rich Felker.
    
    Originally committed as revision 12304 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/configure b/configure
index f283e96..b352513 100755
--- a/configure
+++ b/configure
@@ -1580,7 +1580,7 @@ enabled vis && add_cflags "-mcpu=ultrasparc -mtune=ultrasparc"
 check_cc <<EOF || die "endian test failed"
 unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
 EOF
-grep -q BIGE $TMPO && enable bigendian
+tr -c -d BIGE < $TMPO | grep -q BIGE && enable bigendian
 
 # ---
 # check availability of some header files

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list