From 00b4f076d3a4e64059cc2198a471333a5a6420a2 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 13 Oct 2021 13:35:01 -0400 Subject: attempt 1 for v93.0 --- .gitignore | 3 +- README.md | 30 + allow-searchengines-non-esr.patch | 13 + armhf-reduce-linker-memory-use.patch | 27 + cbindgen-vendor.tar.xz | Bin 0 -> 5627872 bytes context-menu.patch | 43 + disable-pocket.patch | 38 + fix-armhf-webrtc-build.patch | 65 + librewolf-branding.tgz | Bin 0 -> 957778 bytes librewolf.cfg | 666 +++++++++++ librewolf.spec | 1841 +++++++++++++++++++++++++++++ megabar.patch | 118 ++ mozilla-vpn-ad.patch | 24 + reduce-rust-debuginfo.patch | 21 + relax-cargo-dep.patch | 11 + remove-internal-plugin-certs.patch | 18 + remove_addons.patch | 74 ++ sandbox-update-arm-syscall-numbers.patch | 144 +++ sources | 6 - stop-undesired-requests.patch | 55 + urlbarprovider-interventions.patch | 13 + use-system-icupkg.patch | 13 + webrtc-fix-compiler-flags-for-armhf.patch | 35 + 23 files changed, 3251 insertions(+), 7 deletions(-) create mode 100644 README.md create mode 100644 allow-searchengines-non-esr.patch create mode 100644 armhf-reduce-linker-memory-use.patch create mode 100644 cbindgen-vendor.tar.xz create mode 100644 context-menu.patch create mode 100644 disable-pocket.patch create mode 100644 fix-armhf-webrtc-build.patch create mode 100644 librewolf-branding.tgz create mode 100755 librewolf.cfg create mode 100644 librewolf.spec create mode 100644 megabar.patch create mode 100644 mozilla-vpn-ad.patch create mode 100644 reduce-rust-debuginfo.patch create mode 100644 relax-cargo-dep.patch create mode 100644 remove-internal-plugin-certs.patch create mode 100644 remove_addons.patch create mode 100644 sandbox-update-arm-syscall-numbers.patch delete mode 100644 sources create mode 100644 stop-undesired-requests.patch create mode 100644 urlbarprovider-interventions.patch create mode 100644 use-system-icupkg.patch create mode 100644 webrtc-fix-compiler-flags-for-armhf.patch diff --git a/.gitignore b/.gitignore index 250647c..a8f1fe4 100644 --- a/.gitignore +++ b/.gitignore @@ -314,7 +314,6 @@ firefox-3.6.4.source.tar.bz2 /firefox-langpacks-62.0.3-20181002.tar.xz /firefox-63.0.source.tar.xz /firefox-langpacks-63.0-20181018.tar.xz -/cbindgen-vendor.tar.xz /firefox-langpacks-63.0.1-20181101.tar.xz /firefox-63.0.1.source.tar.xz /firefox-63.0.3.source.tar.xz @@ -477,3 +476,5 @@ firefox-3.6.4.source.tar.bz2 /firefox-langpacks-92.0.1-20210927.tar.xz /firefox-93.0.source.tar.xz /firefox-langpacks-93.0-20210929.tar.xz +*.spec? +.*.swp diff --git a/README.md b/README.md new file mode 100644 index 0000000..48a88a6 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +# README for librewolf-fedora-ff + +## Overview +After using the [prep-librewolf-rpm.sh](https://gitlab.com/bgstack15/librewolf-fedora) script, a modified copy of Fedora Firefox src.rpm git repo exists on the local filesystem. + +If this README.md exists in a directory named `for-repo`, then it is still in its source location from the above link, and not in its final location. + +## This repository +This README file belongs in the modified copy of that Fedora Firefox src.rpm [git repository](https://src.fedoraproject.org/rpms/firefox). That modified git repo can be sent up to a [new web location](https://gitlab.com/bgstack15/librewolf-fedora-ff). + +Fedora [COPR](https://copr.fedorainfracloud.org/coprs/bgstack15/AfterMozilla/packages/) can then use rpkg to pull this new git repository, so users do not have to upload the 400MB src.rpm manually. + +## Using this repository +Script `git-helper.sh` included in the [librewolf-fedora](https://gitlab.com/bgstack15/librewolf-fedora) repository will add the new git repo for librewolf-fedora-ff and fix the .gitignore. + +## Differences from upstream repo +The Librewolf rpm git repo makes some changes to the Firefox rpm git repo. +Files are added or modified: +* this README.md +* .gitignore +* librewolf.spec +* LibreWolf patches that are not named here +* a few tarballs omitted from upstream git sources: + * cbindgen-vendor.tar.xz + * `firefox-langpacks-*.tar.xz` + +Files that are removed: +* sources + +Fedora's dist-git project provides a lookaside cache for large assets so they do not have to be stored in source control. The `sources` file links to those files, but we embed in the librewolf src.rpm the two tarballs we need. diff --git a/allow-searchengines-non-esr.patch b/allow-searchengines-non-esr.patch new file mode 100644 index 0000000..6418416 --- /dev/null +++ b/allow-searchengines-non-esr.patch @@ -0,0 +1,13 @@ +diff --git a/browser/components/enterprisepolicies/schemas/policies-schema.json b/browser/components/enterprisepolicies/schemas/policies-schema.json +index d436cf1ca1..ecd6e53b9e 100644 +--- a/browser/components/enterprisepolicies/schemas/policies-schema.json ++++ b/browser/components/enterprisepolicies/schemas/policies-schema.json +@@ -1074,7 +1074,7 @@ + }, + + "SearchEngines": { +- "enterprise_only": true, ++ "enterprise_only": false, + + "type": "object", + "properties": { diff --git a/armhf-reduce-linker-memory-use.patch b/armhf-reduce-linker-memory-use.patch new file mode 100644 index 0000000..dbe74cf --- /dev/null +++ b/armhf-reduce-linker-memory-use.patch @@ -0,0 +1,27 @@ +Description: starting with firefox 66, armhf builds on Launchpad frequently + fail with "/usr/bin/ld: final link failed: memory exhausted" when linking + libxul.so. This is an attempt to reduce the memory used by ld. +Author: Olivier Tilloy + +--- a/build/moz.configure/toolchain.configure ++++ b/build/moz.configure/toolchain.configure +@@ -2349,15 +2349,17 @@ + set_config("LINKER_KIND", select_linker.KIND) + + +-@depends_if(select_linker, target, macos_sdk, sysroot_path, multiarch_dir) ++@depends_if(select_linker, target, macos_sdk, sysroot_path, multiarch_dir, host) + @imports("os") +-def linker_ldflags(linker, target, macos_sdk, sysroot_path, multiarch_dir): ++def linker_ldflags(linker, target, macos_sdk, sysroot_path, multiarch_dir, host): + flags = list((linker and linker.LINKER_FLAG) or []) + if target.kernel == "Darwin": + if linker and linker.KIND == "ld64": + flags.append("-Wl,-syslibroot,%s" % macos_sdk) + else: + flags.append("-Wl,--sysroot=%s" % macos_sdk) ++ if host.cpu == "arm": ++ flags.append("-Wl,--no-keep-memory") + + if sysroot_path and multiarch_dir: + for d in ("lib", "usr/lib"): diff --git a/cbindgen-vendor.tar.xz b/cbindgen-vendor.tar.xz new file mode 100644 index 0000000..7ee5ee3 Binary files /dev/null and b/cbindgen-vendor.tar.xz differ diff --git a/context-menu.patch b/context-menu.patch new file mode 100644 index 0000000..5685f96 --- /dev/null +++ b/context-menu.patch @@ -0,0 +1,43 @@ +diff --git a/browser/base/content/browser-context.inc b/browser/base/content/browser-context.inc +--- a/browser/base/content/browser-context.inc ++++ b/browser/base/content/browser-context.inc +@@ -102,19 +102,16 @@ + oncommand="gContextMenu.openLinkInPrivateWindow();"/> + + + +- + + + + #endif + +- + +