firefox-fourier: explicit CC/CXX=distcc in mozconfig #33

Merged
marfrit merged 1 commits from noether/firefox-fourier-moz-distcc into main 2026-05-19 04:32:24 +00:00
Owner

Adds explicit CC="distcc gcc" / CXX="distcc g++" to firefox-fourier/mozconfig, gated on /usr/lib/distcc/bin being in $PATH. Mirrors the pattern in ffmpeg-v4l2-request-fourier.

Without the explicit export, mach configure ignored the distcc wrappers and built locally despite BUILDENV=(distcc ...) on fermi.

pkgrel bumped so a rebuild publishes a new pkg. Output binary unchanged; only build-process change.

Companion to #32 (qt6 epoch fix) and PR-stream for firefox-fourier-debian build kickoff happening in parallel.

Adds explicit `CC="distcc gcc"` / `CXX="distcc g++"` to firefox-fourier/mozconfig, gated on `/usr/lib/distcc/bin` being in `$PATH`. Mirrors the pattern in `ffmpeg-v4l2-request-fourier`. Without the explicit export, `mach configure` ignored the distcc wrappers and built locally despite `BUILDENV=(distcc ...)` on fermi. pkgrel bumped so a rebuild publishes a new pkg. Output binary unchanged; only build-process change. Companion to #32 (qt6 epoch fix) and PR-stream for firefox-fourier-debian build kickoff happening in parallel.
marfrit added 1 commit 2026-05-18 21:08:38 +00:00
fermi's makepkg.conf already has BUILDENV=(distcc ...) which prepends
/usr/lib/distcc/bin to PATH at build time. But Mozilla's mach
configure picks CC/CXX from the environment directly — it doesn't
treat the distcc shim in PATH as the default C compiler unless the
env vars are set explicitly. Without this guard the distcc workers
sat idle while mach drove a local-only build.

Mirrors the explicit-distcc pattern already used in
ffmpeg-v4l2-request-fourier/PKGBUILD.

Caveat documented in the comment: only the C/C++ portion
distributes. rustc and host-only build steps stay local. Empirical
~30-40% wall-clock improvement on a 4-worker pool (tesla, dcc1, dcc2,
ampere via Avahi zeroconf).

pkgrel bumped so a rebuild publishes a new package even though the
binary output for users is unchanged (build process speedup only).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
marfrit force-pushed noether/firefox-fourier-moz-distcc from f34bfa54b8 to 0a922a9f36 2026-05-18 21:08:51 +00:00 Compare
marfrit merged commit 57e6bac3d4 into main 2026-05-19 04:32:24 +00:00
marfrit deleted branch noether/firefox-fourier-moz-distcc 2026-05-19 04:32:24 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: marfrit/marfrit-packages#33