debug: add architecture detection logging for armhf troubleshooting
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 <noreply@anthropic.com>
This commit is contained in:
parent
9aeee07e69
commit
c6b62e9e30
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue