Repository navigation
feat(ios): replace the Alpine terminal runtime with Ubuntu - #21
Open
bajrangCoder wants to merge 19 commits into
Open
bajrangCoder wants to merge 19 commits into
bajrangCoder wants to merge 19 commits into
Conversation
Run the same ARM64 Ubuntu 24.04 rootfs and launcher scripts as Android inside the ios-linuxkit emulator (UBUNTU_ROOT=/), and rename the iOS runtime, bridge service, filesystem scheme (ubuntu://) and tests from Alpine to Ubuntu. - Patch the emulator for glibc/GNU userland: arm64 O_DIRECTORY, clone3 pidfd, pselect without a sigmask, mremap across COW pages, fakefs st_dev/d_type and root entry type, sync_file_range, and drop --no-expose-wasm for Node.js 26. - Share init-ubuntu.sh and its modules with Android; add --prepare for the per-boot refresh and skip Android-only steps when UBUNTU_ROOT=/. - Pin npm's global prefix to /usr/local and make command-not-found use apt-cache pkgnames. - Remove the old Alpine root on install and reject Alpine backups. - Rebind the terminal server when the requested port changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the iOS Alpine terminal with the same ARM64 Ubuntu 24.04 rootfs and launcher scripts that Android uses (#9), running inside the vendored
ios-linuxkitemulator withUBUNTU_ROOT=/.platforms/ios/Alpine→platforms/ios/Ubuntu, the Swift runtime/service (UbuntuRuntime,UbuntuService, …), the C bridge (ubuntu_*), theUbuntubridge service, theubuntu://localhost/filesystem scheme and the XCTest suites.platforms/ios/Ubuntu/README.md): arm64O_DIRECTORYvalue,clone3with pidfd,pselectwithout a sigmask,mremapacross copy-on-write pages, fakefsst_dev/d_typeand the synthesized root entry type,sync_file_rangeas a no-op, and no--no-expose-wasmfor Node.js 26.init-ubuntu.shand itsacode-*.shmodules from Android assets. They gain--prepare(per-boot refresh with no session) and skip Android-only steps (linkerconfig, Android groups, jemalloc wrapper) whenUBUNTU_ROOT=/./usr/localvia$PREFIX/etc/npmrc(it defaulted to$PREFIX, outsidePATH). command-not-found usesapt-cache pkgnames(apt-cache searchtook 10 s+ per typo on iOS).libjemalloc2is installed only where the Node wrapper is used.Library/Alpineroot. Alpine backups are rejected with a clear message.