]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
install_prereq: Fix dependency install on aarch64.
authorJason D. McCormick <jason@mfamily.org>
Fri, 28 Apr 2023 20:14:50 +0000 (16:14 -0400)
committerAsterisk Development Team <asteriskteam@digium.com>
Wed, 6 Sep 2023 18:21:30 +0000 (18:21 +0000)
Fixes dependency solutions in install_prereq for Debian aarch64
platforms. install_prereq was attempting to forcibly install 32-bit
armhf packages due to the aptitude search for dependencies.

Resolves: #37
(cherry picked from commit 2f02095da8fd35eedfa5e9713863924238c65baa)

contrib/scripts/install_prereq

index 02374d86d2ebe2f727ded3111ce8d9a0df15f77f..2927ec13c1aaf412009b04f83dff3dcbb818158d 100755 (executable)
@@ -192,10 +192,7 @@ check_installed_debs() {
        for pack in "$@" ; do
                tocheck="${tocheck} ^${pack}$ ~P^${pack}$"
        done
-       pkgs=$(aptitude -F '%c %p' search ${tocheck} 2>/dev/null | awk '/^p/{print $2}')
-       if [ ${#pkgs} -ne 0 ]; then
-               echo $pkgs | sed -r -e "s/ ?[^ :]+:i386//g"
-       fi
+       aptitude -F '%c %p' search $tocheck 2>/dev/null | awk '/^p/{print $2}' | grep -vF :
 }
 
 # parsing the output of yum is close to impossible.