diff --git a/CHANGELOG.md b/CHANGELOG.md index c799add..0e3cb47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to iNTERCEPT will be documented in this file. +## [2.26.8] - 2026-03-14 + +### Fixed +- **acarsdec build failure on macOS** — `HOST_NAME_MAX` is Linux-specific (``) and undefined on macOS, causing 3 compile errors in `acarsdec.c`. Now patched with `#define HOST_NAME_MAX 255` before building. Also fixed deprecated `-Ofast` flag warning on all macOS architectures (was only patched for arm64). (#187) + +--- + ## [2.26.7] - 2026-03-14 ### Fixed diff --git a/config.py b/config.py index 738593d..b5dfe4d 100644 --- a/config.py +++ b/config.py @@ -7,10 +7,17 @@ import os import sys # Application version -VERSION = "2.26.7" +VERSION = "2.26.8" # Changelog - latest release notes (shown on welcome screen) CHANGELOG = [ + { + "version": "2.26.8", + "date": "March 2026", + "highlights": [ + "Fix acarsdec build failure on macOS (HOST_NAME_MAX undefined)", + ] + }, { "version": "2.26.7", "date": "March 2026", diff --git a/pyproject.toml b/pyproject.toml index 1af3762..2da36d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "intercept" -version = "2.26.7" +version = "2.26.8" description = "Signal Intelligence Platform - Pager/433MHz/ADS-B/Satellite/WiFi/Bluetooth" readme = "README.md" requires-python = ">=3.9" diff --git a/setup.sh b/setup.sh index 403b5fb..a3f41bd 100755 --- a/setup.sh +++ b/setup.sh @@ -751,9 +751,26 @@ install_acarsdec_from_source_macos() { cd "$tmp_dir/acarsdec" + # Replace deprecated -Ofast (all macOS, not just arm64) + if grep -q '\-Ofast' CMakeLists.txt 2>/dev/null; then + sed -i '' 's/-Ofast/-O3 -ffast-math/g' CMakeLists.txt + info "Patched deprecated -Ofast flag" + fi + + # macOS doesn't have -march=native on arm64 if [[ "$(uname -m)" == "arm64" ]]; then - sed -i '' 's/-Ofast -march=native/-O3 -ffast-math/g' CMakeLists.txt - info "Patched compiler flags for Apple Silicon (arm64)" + sed -i '' 's/ -march=native//g' CMakeLists.txt + info "Removed -march=native for Apple Silicon" + fi + + # HOST_NAME_MAX is Linux-specific; macOS uses _POSIX_HOST_NAME_MAX + if grep -q 'HOST_NAME_MAX' acarsdec.c 2>/dev/null; then + sed -i '' '1i\ +#ifndef HOST_NAME_MAX\ +#define HOST_NAME_MAX 255\ +#endif +' acarsdec.c + info "Patched HOST_NAME_MAX for macOS compatibility" fi if grep -q 'pthread_tryjoin_np' rtl.c 2>/dev/null; then