https://bugs.kde.org/show_bug.cgi?id=518507

            Bug ID: 518507
           Summary: Craft bootstrap on macOS defaults to Android ABI,
                    crashes with KeyError: 'ANDROID_NDK'
    Classification: I don't know
           Product: kde
      Version First unspecified
       Reported In:
          Platform: Compiled Sources
                OS: macOS
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

I'm filing this under the generic kde product because the Craft product in
Bugzilla is closed, and the Craft GitLab repo says not to file issues there and
to use Bugzilla instead. There doesn't appear to be a valid place to report
Craft bugs right now.

SUMMARY

Fresh Craft bootstrap on macOS defaults to Android ABI instead of native macOS
target

STEPS TO REPRODUCE
1. On macOS (arm64, Sequoia/Sonoma), run the recommended bootstrap command from
the Mac development wiki page: curl
https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBootstrap.py -o
setup.py && python3 setup.py --prefix ~/CraftRoot
2. Accept defaults for architecture (arm64) and colored logs (Yes)

OBSERVED RESULT

Bootstrap crashes with KeyError: 'ANDROID_NDK' in CraftSetupHelper.py line 539

EXPECTED RESULT

On macOS, the ABI should default to macos-clang-arm64 without any manual
intervention.

SOFTWARE/OS VERSIONS
macOS 26.3.1 (a) Apple Silicon (arm64)
Python 3.14.3 via Homebrew

ADDITIONAL INFORMATION

What happens: The generated CraftSettings.ini has ABI = android-clang-arm64
instead of macos-clang-arm64. The setup wizard selects the correct architecture
(arm64) but picks the wrong platform. This causes setupEnvironment() to enter
the Android code path, which unconditionally reads ANDROID_NDK from the
environment and crashes when it's not set.

Workaround: After the initial crash, manually edit
~/CraftRoot/etc/CraftSettings.ini and change the ABI from android-clang-arm64
to macos-clang-arm64, then re-run ~/CraftRoot/craft-tmp/bin/craft.py craft.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to