fx153: Stamp the git source repo and changeset for Windows packaging

Firefox's official-build source-repo.h generator only auto-detects
Mercurial, so building from our git checkout left the file empty and
packaging failed with "no preprocessor directives found". Derive
MOZ_SOURCE_REPO and MOZ_SOURCE_CHANGESET from git in the mozconfig so
configure records them for any invocation, including a manual
./mach package.
This commit is contained in:
Dan Stillman 2026-08-03 14:58:01 -04:00
parent ea30bbd2af
commit d5aacafe3f

View file

@ -29,6 +29,12 @@ ac_add_options --disable-update-agent
export MOZILLA_OFFICIAL=1
export RELEASE_OR_BETA=1
# source-repo.h generation only auto-detects Mercurial; derive the git repo
# and changeset here so official-build packaging can stamp the source
# (otherwise source-repo.h is empty and packaging fails).
export MOZ_SOURCE_REPO=$(git config --get remote.origin.url)
export MOZ_SOURCE_CHANGESET=$(git rev-parse HEAD)
MOZ_REQUIRE_SIGNING=
# Build updater without MAR signature verification