From 9604a3bd800f34188a5b7679f2f241513a47babc Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 22 Sep 2023 11:51:47 +0400 Subject: [PATCH] Beta version 4.9.10: Remove legacy checks. --- Telegram/build/docker/build.sh | 48 +++++----------------------------- 1 file changed, 7 insertions(+), 41 deletions(-) diff --git a/Telegram/build/docker/build.sh b/Telegram/build/docker/build.sh index 0c484bb6d9fb1c..4d84f0da69ad09 100755 --- a/Telegram/build/docker/build.sh +++ b/Telegram/build/docker/build.sh @@ -34,54 +34,20 @@ cd $ReleasePath echo "$BinaryName build complete!" -if [ ! -f "$ReleasePath/$BinaryName" ]; then -Error "$BinaryName not found!" -fi +Error () { + cd $FullExecPath + echo "$1" + exit 1 +} -BadCount=`objdump -T $ReleasePath/$BinaryName | grep GLIBC_2\.1[8-9] | wc -l` -if [ "$BadCount" != "0" ]; then - Error "Bad GLIBC usages found: $BadCount" -fi - -BadCount=`objdump -T $ReleasePath/$BinaryName | grep GLIBC_2\.2[0-9] | wc -l` -if [ "$BadCount" != "0" ]; then - Error "Bad GLIBC usages found: $BadCount" -fi - -BadCount=`objdump -T $ReleasePath/$BinaryName | grep GCC_4\.[3-9] | wc -l` -if [ "$BadCount" != "0" ]; then - Error "Bad GCC usages found: $BadCount" -fi - -BadCount=`objdump -T $ReleasePath/$BinaryName | grep GCC_[5-9]\. | wc -l` -if [ "$BadCount" != "0" ]; then - Error "Bad GCC usages found: $BadCount" +if [ ! -f "$ReleasePath/$BinaryName" ]; then + Error "$BinaryName not found!" fi if [ ! -f "$ReleasePath/Updater" ]; then Error "Updater not found!" fi -BadCount=`objdump -T $ReleasePath/Updater | grep GLIBC_2\.1[8-9] | wc -l` -if [ "$BadCount" != "0" ]; then - Error "Bad GLIBC usages found: $BadCount" -fi - -BadCount=`objdump -T $ReleasePath/Updater | grep GLIBC_2\.2[0-9] | wc -l` -if [ "$BadCount" != "0" ]; then - Error "Bad GLIBC usages found: $BadCount" -fi - -BadCount=`objdump -T $ReleasePath/Updater | grep GCC_4\.[3-9] | wc -l` -if [ "$BadCount" != "0" ]; then - Error "Bad GCC usages found: $BadCount" -fi - -BadCount=`objdump -T $ReleasePath/Updater | grep GCC_[5-9]\. | wc -l` -if [ "$BadCount" != "0" ]; then - Error "Bad GCC usages found: $BadCount" -fi - rm -rf "$ReleasePath/root" mkdir "$ReleasePath/root" mv "$ReleasePath/$BinaryName" "$ReleasePath/root/"