summaryrefslogtreecommitdiff
path: root/libre/iceweasel/9002-FSDG-preference-defaults.patch
diff options
context:
space:
mode:
authorgrizzlyuser <grizzlyuser@protonmail.com>2023-09-28 13:52:59 +0200
committerbill-auger <mr.j.spam.me@gmail.com>2023-10-01 06:47:13 -0400
commite23cae382fcfbea52effbfe78780aefc853e18f0 (patch)
treed6c085ee121d69ae095333144e49c77448d7820c /libre/iceweasel/9002-FSDG-preference-defaults.patch
parent5a36502eec13d2ac2629134a2d4479598b8d2073 (diff)
[iceweasel] 118.0.parabola1
* Update according to upstream changes * Disable new Translations feature, see reasons in the patch.
Diffstat (limited to 'libre/iceweasel/9002-FSDG-preference-defaults.patch')
-rw-r--r--libre/iceweasel/9002-FSDG-preference-defaults.patch77
1 files changed, 73 insertions, 4 deletions
diff --git a/libre/iceweasel/9002-FSDG-preference-defaults.patch b/libre/iceweasel/9002-FSDG-preference-defaults.patch
index 9f5dd6151..30950e7a8 100644
--- a/libre/iceweasel/9002-FSDG-preference-defaults.patch
+++ b/libre/iceweasel/9002-FSDG-preference-defaults.patch
@@ -1,7 +1,7 @@
From 2fec68a4597270e7fce1c0a4e3a328be4766a2d3 Mon Sep 17 00:00:00 2001
From: grizzlyuser <grizzlyuser@protonmail.com>
Date: Sun, 4 Apr 2021 13:09:05 +0300
-Subject: [PATCH 1/4] geolocation: Disable API and remove Google API URLs
+Subject: [PATCH 1/5] geolocation: Disable API and remove Google API URLs
The idea for Iceweasel is to reference only services which can be
self-hosted using 100% free software stack.
@@ -55,7 +55,7 @@ index a366fdaeb8..c9d67004a2 100644
From 413f141022f562beb53ed87370146a123872f35b Mon Sep 17 00:00:00 2001
From: grizzlyuser <grizzlyuser@protonmail.com>
Date: Sun, 4 Apr 2021 13:49:05 +0300
-Subject: [PATCH 2/4] Disable banners and remove URLs for mobile apps on
+Subject: [PATCH 2/5] Disable banners and remove URLs for mobile apps on
about:protections page
---
@@ -110,7 +110,7 @@ index a7d255df89..801816dc41 100644
From 275785d94093d5c2dd46739484a2744642df357f Mon Sep 17 00:00:00 2001
From: grizzlyuser <grizzlyuser@protonmail.com>
Date: Tue, 17 Jan 2023 21:59:51 +0100
-Subject: [PATCH 3/4] FSDG: Remove some references to AMO
+Subject: [PATCH 3/5] FSDG: Remove some references to AMO
* addons.mozilla.org (AMO) is a third-party repository, not compatible
with the FSDG, because it is not committed to only including free
@@ -216,7 +216,7 @@ index c9d67004a2..e14f539172 100644
From 7c742c2c0e0bd817fd646d0b83a0265c67d6c5fb Mon Sep 17 00:00:00 2001
From: grizzlyuser <grizzlyuser@protonmail.com>
Date: Sun, 4 Jun 2023 13:16:40 +0200
-Subject: [PATCH 4/4] FSDG: Disable Contile and autoupdate of system addons
+Subject: [PATCH 4/5] FSDG: Disable Contile and autoupdate of system addons
1. Contile (see change context lines) is used to fetch sponsored top
sites, which are not controlled by Parabola and are likely to not
@@ -261,3 +261,72 @@ index 9c2562ff23..7577fbe008 100644
--
2.41.0
+
+From 40f5b56ba68e3f256fa3672a77efd0c1951d7e00 Mon Sep 17 00:00:00 2001
+From: grizzlyuser <grizzlyuser@protonmail.com>
+Date: Tue, 26 Sep 2023 21:27:34 +0200
+Subject: [PATCH 5/5] FSDG: Disable Firefox Translations for now
+
+Although fully local translation is a great achievement, I'd hesitate to keep it
+enabled for now, because of the following concerns:
+
+1. According to the FSDG [1]:
+
+ > All information for practical use in a free distribution must be available in
+source form.
+
+ Translation models are downloaded as Remote Settings attachments, see their
+paths on the attachment server, for example in [2] in the source tree. The
+hostname of that server is returned by Remote Settings server, access to which
+is disabled by 9001-FSDG-sync-remote-settings-with-local-dump.patch and
+PKGBUILD. So in my understanding, to comply with the FSDG, the distro has to
+make sources of those models available. It looks like those can be found using
+info from [4], but even then...
+
+2. According to FSDG [3]:
+
+ > a free system distribution cannot include free software that can only be
+built by using nonfree software.
+
+ It depends on whether those models can be considered software (or "information
+for practical use" in case the FSDG is not totally precise when talking only
+about software here). While the models are freely licensed [4], their README
+mentions the first training pipeline [5] that lists CUDA and CUDNN in the
+requirements. Both are nonfree and blocklisted in Parabola. Further research is
+needed on possibility to make the models with 100% free software stack.
+
+3. Because calls to Remote Settings server are disabled, as mentioned above, the
+models won't be downloaded anyway, and Firefox Translations feature will be
+broken, so keeping it enabled would lead to poor user experience. An alternative
+would be to use something like [6], but that requires additional research and
+probably has the same issues with the toolchain for the models.
+
+[1] https://www.gnu.org/distros/free-system-distribution-guidelines.html#license-rules
+[2] services/settings/dumps/main/translations-models.json
+[3] https://www.gnu.org/distros/free-system-distribution-guidelines.html#complete-distros
+[4] WARNING! GitHub webpage is likely to run nonfree software in user's web browser, so at least disable JavaScript when opening: https://github.com/mozilla/firefox-translations-models
+[5] WARNING! GitHub webpage is likely to run nonfree software in user's web browser, so at least disable JavaScript when opening: https://github.com/mozilla/firefox-translations-training
+[6] https://addons.mozilla.org/en-US/firefox/addon/translatelocally-for-firefox/
+
+---
+ browser/app/profile/firefox.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js
+index f58075204d..a2ffbec390 100644
+--- a/browser/app/profile/firefox.js
++++ b/browser/app/profile/firefox.js
+@@ -1882,7 +1882,7 @@ pref("browser.translation.neverForLanguages", "");
+
+ // Enable Firefox translations powered by the Bergamot translations
+ // engine https://browser.mt/.
+-pref("browser.translations.enable", true);
++pref("browser.translations.enable", false);
+
+ // Telemetry settings.
+ // Determines if Telemetry pings can be archived locally.
+--
+2.42.0
+
+
+