mirror of
https://github.com/smittix/intercept.git
synced 2026-06-08 06:01:56 -07:00
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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user