aboutsummaryrefslogtreecommitdiff
path: root/deb_patches
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2021-02-01 09:35:54 -0500
committerB Stack <bgstack15@gmail.com>2021-02-01 09:35:54 -0500
commit9a0c533c0a343c4c35cab431f67b98f3a6e94e12 (patch)
tree6b6b51c2e0e387c518aa08ac988b9cbc46688135 /deb_patches
parentadd notes from !12 (diff)
parentfix a badly merged patch (diff)
downloadlibrewolf-linux-9a0c533c0a343c4c35cab431f67b98f3a6e94e12.tar.gz
librewolf-linux-9a0c533c0a343c4c35cab431f67b98f3a6e94e12.tar.bz2
librewolf-linux-9a0c533c0a343c4c35cab431f67b98f3a6e94e12.zip
Merge branch 'master' of https://gitlab.com/librewolf-community/browser/linux into debian
Diffstat (limited to 'deb_patches')
-rw-r--r--deb_patches/python3-remove-fstrings.patch4
-rw-r--r--deb_patches/reduce-rust-debuginfo.patch21
-rw-r--r--deb_patches/relax-cargo-dep.patch11
-rw-r--r--deb_patches/silence-gtk-style-assertions.patch2
-rw-r--r--deb_patches/use-system-icupkg.patch13
5 files changed, 48 insertions, 3 deletions
diff --git a/deb_patches/python3-remove-fstrings.patch b/deb_patches/python3-remove-fstrings.patch
index abc5be8..75f20d9 100644
--- a/deb_patches/python3-remove-fstrings.patch
+++ b/deb_patches/python3-remove-fstrings.patch
@@ -427,6 +427,6 @@ Author: Olivier Tilloy <olivier.tilloy@canonical.com>
category_name = util.snake_case(category_name)
- full_path = f"{category_name}::{metric_name}"
+ full_path = "{}::{}".format(category_name, metric_name)
- objs_by_type[key].append((get_metric_id(metric), full_path))
- # Now for the modules for each category.
+ if metric.type == "event":
+ events_by_id[get_metric_id(metric)] = full_path
diff --git a/deb_patches/reduce-rust-debuginfo.patch b/deb_patches/reduce-rust-debuginfo.patch
new file mode 100644
index 0000000..e6a9148
--- /dev/null
+++ b/deb_patches/reduce-rust-debuginfo.patch
@@ -0,0 +1,21 @@
+Description: reduce the rust debuginfo level
+ because compiling with debuginfo=2 causes the OOM killer to interrupt the build
+ on launchpad builders. Initially this was only on 32 bit architectures, but
+ with firefox 63 it started happening frequently on arm64 and ppc64el too,
+ with newer versions it started happening very frequently on s390x too, and with
+ firefox 84 (built with rustc 1.47) it started happening on amd64 too.
+ This patch would initially decrease debug_info for selected architectures, but
+ with recent versions of rustc pretty much all supported architectures are
+ affected, so it is now unconditional.
+
+--- a/build/moz.configure/toolchain.configure
++++ b/build/moz.configure/toolchain.configure
+@@ -2167,7 +2167,7 @@ def rust_compile_flags(opt_level, debug_
+ debug_assertions = False
+
+ if debug_symbols:
+- debug_info = "2"
++ debug_info = "1"
+
+ opts = []
+
diff --git a/deb_patches/relax-cargo-dep.patch b/deb_patches/relax-cargo-dep.patch
new file mode 100644
index 0000000..f83558c
--- /dev/null
+++ b/deb_patches/relax-cargo-dep.patch
@@ -0,0 +1,11 @@
+--- a/build/moz.configure/rust.configure
++++ b/build/moz.configure/rust.configure
+@@ -168,7 +168,7 @@
+ rustc_min_version = Version("1.47.0")
+ else:
+ rustc_min_version = Version(MINIMUM_RUST_VERSION)
+- cargo_min_version = rustc_min_version
++ cargo_min_version = Version("1.46.0")
+
+ version = rustc_info.version
+ is_nightly = "nightly" in version.version
diff --git a/deb_patches/silence-gtk-style-assertions.patch b/deb_patches/silence-gtk-style-assertions.patch
index 36ec8e3..b63a658 100644
--- a/deb_patches/silence-gtk-style-assertions.patch
+++ b/deb_patches/silence-gtk-style-assertions.patch
@@ -14,7 +14,7 @@ Author: Olivier Tilloy <olivier.tilloy@canonical.com>
// Some old distros/themes don't properly use the .selection style, so
// fall back to the regular text view style.
@@ -1413,6 +1413,7 @@ bool nsLookAndFeel::WidgetUsesImage(Widg
- GTK_STATE_FLAG_BACKDROP, GTK_STATE_FLAG_INSENSITIVE};
+ };
GtkStyleContext* style = GetStyleContext(aNodeType);
+ if (!style) return false;
diff --git a/deb_patches/use-system-icupkg.patch b/deb_patches/use-system-icupkg.patch
new file mode 100644
index 0000000..99eb4b5
--- /dev/null
+++ b/deb_patches/use-system-icupkg.patch
@@ -0,0 +1,13 @@
+diff -r 08cd64cdbc3b config/external/icu/data/convert_icudata.py
+--- a/config/external/icu/data/convert_icudata.py Fri Jul 17 11:18:09 2020 +0000
++++ b/config/external/icu/data/convert_icudata.py Sat Jul 18 14:40:33 2020 +0200
+@@ -11,7 +11,7 @@
+ subprocess.run(
+ [
+- os.path.join(buildconfig.topobjdir, "dist", "host", "bin", "icupkg"),
++ "icupkg",
+ "-tb",
+ data_file,
+ output.name,
+ ]
+
bgstack15