Chromium XR build: skip gclient sync on re-runs; link the public repo

Once the SO_PEERCRED patch is applied, gclient sync refuses the modified
checkout, so a re-run failed. Sync once per revision instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
saphidandClaude Opus 5.5 committed 2026-09-26 23:14:03 +10:00
1 parent 91aafc1371
commit 5592ee1570
2 files changed
+16 -6

No files matched your search

+4
View File
@@ -3,6 +3,10 @@
Goal: open a web VR180 or 360 player (DeoVR and DL8 embeds, WebXR samples), Goal: open a web VR180 or 360 player (DeoVR and DL8 embeds, WebXR samples),
press its VR button, and watch in 3D in the headset. press its VR button, and watch in 3D in the headset.
A standalone, public version of this build (build script, the SO_PEERCRED
patch, and a Frame-side installer that adds "Chromium XR" to the Steam library)
is at [saphid/chromium-webxr-steam-frame](https://github.com/saphid/chromium-webxr-steam-frame).
## Why Flathub Chromium can't ## Why Flathub Chromium can't
**Verified 2026-09-25** (Frame BUILD_ID 20260922.6101926, Flathub **Verified 2026-09-25** (Frame BUILD_ID 20260922.6101926, Flathub
+12 -6
View File
@@ -36,12 +36,18 @@ if ! git -C src rev-parse -q --verify HEAD >/dev/null 2>&1; then
fi fi
guard guard
stage "src at $(git -C src log -1 --format='%h %s')" stage "src at $(git -C src log -1 --format='%h %s')"
stage "gclient sync" rev=$(git -C src rev-parse HEAD)
gclient sync --nohooks --no-history -D --shallow --revision "src@$(git -C src rev-parse HEAD)" -j 8 # Sync once per revision: once the patch below is applied, gclient sync
guard # refuses to run on the modified checkout, so re-runs must skip it.
stage "runhooks" if [ "$(cat "$W/synced" 2>/dev/null)" != "$rev" ]; then
gclient runhooks stage "gclient sync"
src/build/linux/sysroot_scripts/install-sysroot.py --arch=arm64 gclient sync --nohooks --no-history -D --shallow --revision "src@$rev" -j 8
guard
stage "runhooks"
gclient runhooks
src/build/linux/sysroot_scripts/install-sysroot.py --arch=arm64
echo "$rev" > "$W/synced"
fi
guard guard
cd src cd src
# CL 8441736's XR seccomp policy refuses getsockopt, and SteamVR's IPC client # CL 8441736's XR seccomp policy refuses getsockopt, and SteamVR's IPC client