[tbb-commits] [Git][tpo/applications/tor-browser-build][main] Bug 40778: Disable more translation dependencies for testbuilds

Richard Pospesel (@richard) git at gitlab.torproject.org
Fri Feb 10 15:40:47 UTC 2023



Richard Pospesel pushed to branch main at The Tor Project / Applications / tor-browser-build


Commits:
1f26f6f5 by Pier Angelo Vendrame at 2023-02-10T12:18:16+01:00
Bug 40778: Disable more translation dependencies for testbuilds

We still had several translation enabled in Firefox dependencies also
for testbuilds. This made Firefox build again when translations
changed even though we did not use them.

- - - - -


2 changed files:

- projects/firefox/build
- projects/firefox/config


Changes:

=====================================
projects/firefox/build
=====================================
@@ -57,11 +57,13 @@ tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
 
 mkdir -p $distdir/[% IF ! c("var/macos") %]Browser[% END %]
 
-tar -xf $rootdir/[% c('input_files_by_name/translation-base-browser') %]
-transl_base_browser=$rootdir/translation-base-browser
-[% IF c("var/tor-browser") -%]
-  tar -xf $rootdir/[% c('input_files_by_name/translation-tor-browser') %]
-  transl_tor_browser=$rootdir/translation-tor-browser
+[% IF !c("var/testbuild") -%]
+  tar -xf $rootdir/[% c('input_files_by_name/translation-base-browser') %]
+  transl_base_browser=$rootdir/translation-base-browser
+  [% IF c("var/tor-browser") -%]
+    tar -xf $rootdir/[% c('input_files_by_name/translation-tor-browser') %]
+    transl_tor_browser=$rootdir/translation-tor-browser
+  [% END -%]
 [% END -%]
 
 cd /var/tmp/build/[% project %]-[% c("version") %]
@@ -116,7 +118,11 @@ add_translation () {
   echo "    locale/$lang/$filename (locale/$lang/$filename)" >> "browser/components/$component/jar.mn"
 }
 
-supported_locales="[% tmpl(c('var/locales').join(' ')) %]"
+[% IF c("var/testbuild") -%]
+  supported_locales=""
+[% ELSE -%]
+  supported_locales="[% tmpl(c('var/locales').join(' ')) %]"
+[% END -%]
 [% IF c("var/tor-browser") -%]
   torbutton_locales="toolkit/torbutton/chrome/locale/"
   torbutton_jar="toolkit/torbutton/jar.mn"


=====================================
projects/firefox/config
=====================================
@@ -183,6 +183,7 @@ input_files:
   - project: translation
     name: translation-base-browser
     pkg_type: base-browser
+    enable: '[% !c("var/testbuild") %]'
   - project: translation
     name: translation-base-browser-fluent
     pkg_type: base-browser-fluent
@@ -190,7 +191,7 @@ input_files:
   - project: translation
     name: translation-tor-browser
     pkg_type: tor-browser
-    enable: '[% c("var/tor-browser") %]'
+    enable: '[% c("var/tor-browser") && !c("var/testbuild") %]'
   - 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



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

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/1f26f6f5f9c689d510fc8421908d36e7b8b2fcaf
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/tbb-commits/attachments/20230210/770bd8b0/attachment-0001.htm>


More information about the tbb-commits mailing list