Merge pull request #8815 from rellla/aarch64build

checkdeps: fix dependencies for aarch64 debian/ubuntu host
This commit is contained in:
CvH 2024-04-21 11:39:47 +02:00 committed by GitHub
commit 831020afe8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,11 +98,8 @@ perl_map=(
# Native aarch64 on debian host needs to support rkbin (Rockchip) and aml_encrypt_* (Amlogic)
if [ "$(uname -m)" = "aarch64" ] && [ "${PROJECT}" = "Rockchip" -o "${PROJECT}" = "Amlogic" ]; then
dep_map[qemu-x86_64]=qemu-user-binfmt
if [ ! -f /lib64/ld-linux-x86-64.so.2 -o ! -f /lib/x86_64-linux-gnu/libc.so.6 ]; then
echo -e "Copy from a working x86_64 system:\n\t/lib64/ld-linux-x86-64.so.2\n\t/lib/x86_64-linux-gnu/libc.so.6"
fi
file_map[/lib64/ld-linux-x86-64.so.2]="libc6:amd64"
file_map[/lib/x86_64-linux-gnu/libc.so.6]="libc6:amd64"
file_map[/usr/x86_64-linux-gnu/lib/ld-linux-x86-64.so.2]="libc6-amd64-cross"
file_map[/usr/x86_64-linux-gnu/lib/libc.so.6]="libc6-amd64-cross"
fi
# remap or add [depend]=package needs based on host distro