From d66ab01d34bbcda0bf79b3ee5241ce7c1bac0e23 Mon Sep 17 00:00:00 2001 From: Smittix Date: Fri, 6 Mar 2026 17:26:08 +0000 Subject: [PATCH] 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 --- setup.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 94373de..7778156 100755 --- a/setup.sh +++ b/setup.sh @@ -1577,7 +1577,18 @@ install_tool_satdump() { if [[ "$OS" == "macos" ]]; then install_satdump_macos || warn "SatDump installation failed. Weather satellite decoding will not be available." 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 else warn "Skipping SatDump installation. You can install it later if needed."