]> 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 16:46:46 +0000 (16:46 +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 ef59542668d94b5ed077e16bc0eb18b057d3d1b4)

contrib/scripts/install_prereq

index 16a094ec2639b46d8584fb0d3666edac7ce36163..93727209f534d96a8d4571764344de8a097c197b 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.