fix: prefer apt package for SatDump on Ubuntu 24.10+

SatDump v1.2.2 has multiple GCC 15 build failures (sol2 templates,
libacars incompatible pointer types) that are difficult to patch
exhaustively. On distros where SatDump is available as a system
package (Ubuntu 24.10+, Debian Trixie+), install via apt instead
of building from source. Falls back to source build on older systems.

Closes #180

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-03-06 17:26:08 +00:00
parent a1b0616ee6
commit d66ab01d34
+12 -1
View File
@@ -1577,7 +1577,18 @@ install_tool_satdump() {
if [[ "$OS" == "macos" ]]; then if [[ "$OS" == "macos" ]]; then
install_satdump_macos || warn "SatDump installation failed. Weather satellite decoding will not be available." install_satdump_macos || warn "SatDump installation failed. Weather satellite decoding will not be available."
else else
install_satdump_from_source_debian || warn "SatDump build failed. Weather satellite decoding will not be available." # Try system package first (available on Ubuntu 24.10+, Debian Trixie+)
if apt-cache show satdump >/dev/null 2>&1; then
info "SatDump is available as a system package — installing via apt..."
if apt_install satdump; then
ok "SatDump installed via apt."
else
warn "apt install failed — falling back to building from source..."
install_satdump_from_source_debian || warn "SatDump build failed. Weather satellite decoding will not be available."
fi
else
install_satdump_from_source_debian || warn "SatDump build failed. Weather satellite decoding will not be available."
fi
fi fi
else else
warn "Skipping SatDump installation. You can install it later if needed." warn "Skipping SatDump installation. You can install it later if needed."