From c6b62e9e30bd491b8bb805d6808dbd73f88d677b Mon Sep 17 00:00:00 2001 From: torlando-tech Date: Wed, 29 Oct 2025 11:22:54 -0400 Subject: [PATCH] debug: add architecture detection logging for armhf troubleshooting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add debug output to show: - Detected architecture value from dpkg - Whether armhf condition is matched - Final package list being installed This will help diagnose why libffi-dev isn't being installed on armhf systems in the CI environment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 6616468..4414acf 100755 --- a/install.sh +++ b/install.sh @@ -269,18 +269,19 @@ if command -v apt-get &> /dev/null; then # Detect architecture for platform-specific dependencies ARCH=$(dpkg --print-architecture 2>/dev/null || echo "unknown") + print_info "Detected architecture: $ARCH" + PACKAGES="python3-pip python3-gi python3-dbus python3-cairo bluez libcap2-bin" # Add libffi-dev only for 32-bit ARM (armhf) - needed for cffi compilation # x86_64 and arm64 have pre-built cffi wheels available if [[ "$ARCH" == "armhf" ]]; then PACKAGES="$PACKAGES libffi-dev" - echo "Installing: $PACKAGES" - print_info "Note: Including libffi-dev for 32-bit ARM cffi compilation" - else - echo "Installing: $PACKAGES" + print_info "32-bit ARM detected - adding libffi-dev for cffi compilation" fi + echo "Installing: $PACKAGES" + # Use sudo only if not running as root if [ "$EUID" -eq 0 ]; then apt-get update