Closed Bug 1766080 Opened 2 years ago Closed 1 year ago

support comm-strings split in mach build installers-$AB_CD and langpack-$AB_CD

Categories

(Thunderbird :: Build Config, enhancement)

enhancement

Tracking

(thunderbird_esr102 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
thunderbird_esr102 --- fixed

People

(Reporter: rjl, Assigned: rjl)

References

Details

Attachments

(2 files)

Developers that need to generate localized Thunderbird builds and langpacks with mach build installers-$AB_CD and mach build langpack-$AB_CD will need to be supported with the l10n-comm breakout from l10n-central/gecko-strings.

The installers-$AB_CD make target will clone the requested l10n-central repository to ~/.mozbuild/l10n-central if it doesn't already exist. There's no support for automaticaly updating a repo.

Developers that want to produce localized builds and/or langpacks can do so
with mach build installers-$LANG. This is implemented in toolkit/locales/l10n.mk.
There's support for automatically cloning a l10n-central repository into
$HOME/.mozbuild (no update support). To avoid confusion, the installers-$LANG
make target should download what's needed from the l10n-central repository and
l10n-comm and merge the them like CI language repacks will do.

L10N_CO is defined in l10n.mk as a single "hg clone" command. It's executed
when necessary for local developers. This patch overwrites L10N_CO with a
Python script that clones the two repositories and copies them to the expected
location.

The no-update support caveat still applies with the added note that what ends
up in ~/.mozbuild/l10n-central/{lang} is no longer a repository clone that
the developer can run "hg pull" in to get the latest changes. To update,
remove the directory and a fresh copy will get built.

Assignee: nobody → rob
Status: NEW → ASSIGNED
Attachment #9273527 - Attachment description: Bug 1766080 - Support l10n-comm split for developers building localized builds. r=#thunderbird-reviewers → Bug 1766080 - Support l10n-comm split for developers building localized builds. r=dandarnell
Target Milestone: --- → 109 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/bbe4dd440ed8
Support l10n-comm split for developers building localized builds. r=dandarnell

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Attachment #9311495 - Attachment description: Bug 1766080 - follow-up: Pass str to file_copier to fix local l10n build. r=rjl → Bug 1766080 - Follow-up: Pass str to file_copier, fix destination path for local l10n builds. r=rjl
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Pushed by martin@humanoids.be:
https://hg.mozilla.org/comm-central/rev/af38f50109dd
Follow-up: Pass str to file_copier, fix destination path for local l10n builds. r=rjl

Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED

Comment on attachment 9273527 [details]
Bug 1766080 - Support l10n-comm split for developers building localized builds. r=dandarnell

[Approval Request Comment]
Regression caused by (bug #): N/A
User impact if declined: No user impact, code not used in CI builds
Testing completed (on c-c, etc.): rnons tested on beta
Risk to taking this patch (and alternatives if risky):
Minimal risk. This change is for developers building localized builds. Rnons tested and submitted a fix that's not been on beta yet, but should be okay.

Attachment #9273527 - Flags: approval-comm-esr102?

Comment on attachment 9273527 [details]
Bug 1766080 - Support l10n-comm split for developers building localized builds. r=dandarnell

[Triage Comment]
approved for esr102 (and the follow up patch)

Attachment #9273527 - Flags: approval-comm-esr102? → approval-comm-esr102+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: