fix: use --force-overwrite for arm64 dev packages to bypass shared man page conflicts

This commit is contained in:
Timothy Hofland
2026-03-15 20:39:53 +01:00
parent 9c8a37f59b
commit 1dd92750cf

View File

@ -46,9 +46,10 @@ if command -v apt-get > /dev/null 2>&1; then
binutils-aarch64-linux-gnu
# aarch64 dev libraries (provides the .pc files pkg-config needs)
# Note: packages that conflict with their amd64 -dev counterparts (shared headers)
# are installed as runtime-only :arm64 — the .so + .pc files are still present.
# Note: some arm64 packages share man pages with their amd64 counterparts
# --force-overwrite is safe here as we only care about headers/.so/.pc files.
DEBIAN_FRONTEND=noninteractive apt-get install -y \
-o Dpkg::Options::="--force-overwrite" \
libmpg123-dev:arm64 libsndfile1-dev:arm64 libopenal-dev:arm64 libassimp-dev:arm64 \
libglew-dev:arm64 libglfw3-dev:arm64 liburiparser-dev:arm64 \
libcurl4-openssl-dev:arm64 libpugixml-dev:arm64 libasound2-dev:arm64 \
@ -62,6 +63,7 @@ if command -v apt-get > /dev/null 2>&1; then
# These conflict with amd64 -dev headers; install runtime-only for .so + .pc
DEBIAN_FRONTEND=noninteractive apt-get install -y \
-o Dpkg::Options::="--force-overwrite" \
libzmq5:arm64 libpsl5:arm64 || true
# Repair any partially-broken state from conflicts
apt-get -f install -y