From d5aacafe3f98a363077adae90ee338d8b495d5d2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 3 Aug 2026 14:58:01 -0400 Subject: [PATCH] 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. --- app/win/mozconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/win/mozconfig b/app/win/mozconfig index 430ff70e9d..d86fb4cd37 100644 --- a/app/win/mozconfig +++ b/app/win/mozconfig @@ -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