From 99bd06a592300f769ad8b19c70588731e2bfd42c Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 23 Oct 2008 15:56:11 +0000 Subject: [PATCH] Clifford Wolf: Fixed mpeg4ip endless loop calling testnasm.sh diff --git a/package/stf/mpeg4ip/nasm-fix.patch b/package/stf/mpeg4ip/nasm-fix.patch new file mode 100644 index 0000000..2d62c97 [2008072009422610366] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@9073 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/stf/mpeg4ip/nasm-fix.patch | 56 ++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 package/stf/mpeg4ip/nasm-fix.patch diff --git a/package/stf/mpeg4ip/nasm-fix.patch b/package/stf/mpeg4ip/nasm-fix.patch new file mode 100644 index 000000000..2d62c9728 --- /dev/null +++ b/package/stf/mpeg4ip/nasm-fix.patch @@ -0,0 +1,56 @@ +--- ./configure.orig 2008-07-06 05:55:25.000000000 +0000 ++++ ./configure 2008-07-06 05:55:47.000000000 +0000 +@@ -28881,7 +28881,7 @@ + if test x$USENASM = xtrue; then + echo "$as_me:$LINENO: checking nasm version..." >&5 + echo $ECHO_N "checking nasm version...... $ECHO_C" >&6 +- BILLSNASM_arg=`nasm -r | tr '.' ' '` ++ BILLSNASM_arg=`nasm -v | tr '.' ' '` + BILLSNASM_ret=`util/testnasm.sh $BILLSNASM_arg` + if test x$BILLSNASM_ret = x"yes"; then + USENASM=true +--- ./util/testnasm.sh.orig 2008-07-06 05:51:54.000000000 +0000 ++++ ./util/testnasm.sh 2008-07-06 05:54:20.000000000 +0000 +@@ -5,36 +5,36 @@ + # This shell looks for version, then sees if we're 0.98.19 or greater + # + VER=`echo $1 | tr '[a-z]' '[A-Z]'` +-until test $VER = "VERSION"; ++until test "$VER" = "VERSION" -o $# -le 0; + do + shift + VER=`echo $1 | tr '[a-z]' '[A-Z]'` + done + + # check for version tag +-if test $VER != "VERSION"; then ++if test "$VER" != "VERSION"; then + echo "no" + exit 0 + fi + + shift +-if test $1 -gt 0; then ++if test "$1" -gt 0; then + echo "yes" + exit 0 + fi + + shift +-if test $1 -gt 98; then ++if test "$1" -gt 98; then + echo "yes" + exit 0 + fi + + shift +-if test -z $1; then ++if test -z "$1"; then + echo "no" + exit 0 + fi +-if test $1 -ge 19; then ++if test "$1" -ge 19; then + echo "yes" + exit 0 + fi