[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 40788: Remove all languages but en-US for privacy-browser build target

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Tue Feb 21 08:43:24 UTC 2023



Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build


Commits:
89147beb by Pier Angelo Vendrame at 2023-02-21T09:42:44+01:00
Bug 40788: Remove all languages but en-US for privacy-browser build target

- - - - -


3 changed files:

- projects/firefox/build
- projects/firefox/config
- rbm.conf


Changes:

=====================================
projects/firefox/build
=====================================
@@ -106,7 +106,7 @@ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system
 # Create .mozbuild to avoid interactive prompt in configure
 mkdir "$HOME/.mozbuild"
 
-[% IF !c("var/testbuild") -%]
+[% IF c("var/has_l10n") -%]
   supported_locales="[% tmpl(c('var/locales').join(' ')) %]"
 
   l10ncentral="$HOME/.mozbuild/l10n-central"
@@ -176,7 +176,7 @@ export LANG=C.UTF-8
   [% IF !c("var/rlbox") -%]--without-wasm-sandboxed-libraries[% END %]
 
 ./mach build --verbose
-[% IF !c("var/testbuild") %]
+[% IF c("var/has_l10n") %]
   export MOZ_CHROME_MULTILOCALE="$supported_locales"
   # No quotes on purpose, see https://firefox-source-docs.mozilla.org/build/buildsystem/locales.html#instructions-for-multi-locale-builds
   ./mach package-multi-locale --locales en-US $MOZ_CHROME_MULTILOCALE


=====================================
projects/firefox/config
=====================================
@@ -27,6 +27,7 @@ var:
     - autoconf2.13
     - yasm
     - pkg-config
+  has_l10n: '[% !c("var/testbuild") && c("var/locales").size %]'
 
   rezip: |
     rezip_tmpdir=$(mktemp -d)
@@ -159,7 +160,7 @@ input_files:
     name: cbindgen
   - project: firefox-l10n
     name: firefox-l10n
-    enable: '[% !c("var/testbuild") %]'
+    enable: '[% c("var/has_l10n") %]'
   - project: wasi-sysroot
     name: wasi-sysroot
     enable: '[% c("var/rlbox") %]'
@@ -183,15 +184,15 @@ input_files:
   - project: translation
     name: translation-base-browser
     pkg_type: base-browser
-    enable: '[% !c("var/testbuild") %]'
+    enable: '[% c("var/has_l10n") %]'
   - project: translation
     name: translation-base-browser-fluent
     pkg_type: base-browser-fluent
-    enable: '[% !c("var/testbuild") %]'
+    enable: '[% c("var/has_l10n") %]'
   - project: translation
     name: translation-tor-browser
     pkg_type: tor-browser
-    enable: '[% c("var/tor-browser") && !c("var/testbuild") %]'
+    enable: '[% c("var/tor-browser") && c("var/has_l10n") %]'
   - filename: namecoin-torbutton.patch
     enable: '[% c("var/namecoin") %]'
     # TorButton patch authored by Arthur Edelstein, from https://github.com/arthuredelstein/torbutton/ branch 2.1.10-namecoin


=====================================
rbm.conf
=====================================
@@ -247,6 +247,7 @@ targets:
       ProjectName: PrivacyBrowser
       exe_name: privacybrowser
       updater_enabled: 0
+      locales: []
 
   torbrowser-testbuild:
     - testbuild



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/89147bebfb0817893b06ea2e2b763f5cd8aa2289

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/89147bebfb0817893b06ea2e2b763f5cd8aa2289
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20230221/894f690f/attachment-0001.htm>


More information about the tor-commits mailing list