From 68552b1e16307f0413b623d5a714c7fd66f6d968 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 6 Feb 2024 16:00:16 +0100 Subject: [PATCH] Fix installing AOM on Debian 10 with arm architecture (#886) --- install-php-extensions | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index aad72bf..9a84d44 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -2117,7 +2117,18 @@ isLibaomInstalled() { # Install libaom installLibaom() { printf 'Installing libaom\n' - installLibaom_dir="$(getPackageSource https://aomedia.googlesource.com/aom/+archive/v3.8.1.tar.gz)" + installLibaom_version=3.8.1 + case "$DISTRO_VERSION" in + debian@10) + case $(uname -m) in + aarch* | arm*) + #see https://bugs.chromium.org/p/aomedia/issues/detail?id=3543 + installLibaom_version=3.5.0 + ;; + esac + ;; + esac + installLibaom_dir="$(getPackageSource https://aomedia.googlesource.com/aom/+archive/v$installLibaom_version.tar.gz)" mkdir -- "$installLibaom_dir/my.build" cd -- "$installLibaom_dir/my.build" cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1 -DENABLE_DOCS=0 -DENABLE_EXAMPLES=0 -DENABLE_TESTDATA=0 -DENABLE_TESTS=0 -DENABLE_TOOLS=0 -DCMAKE_INSTALL_LIBDIR:PATH=lib ..