Skip to content

Commit e5cb0bc

Browse files
committed
main/thunderbird: update to 158.0
1 parent 3494606 commit e5cb0bc

3 files changed

Lines changed: 15 additions & 21 deletions

File tree

‎main/thunderbird/patches/rust-lto.patch‎

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,14 @@ diff --git a/config/makefiles/rust.mk b/config/makefiles/rust.mk
66
index 524bc436fd..cdc8d6089c 100644
77
--- a/config/makefiles/rust.mk
88
+++ b/config/makefiles/rust.mk
9-
@@ -91,8 +91,9 @@ ifndef MOZ_LTO_RUST_CROSS
10-
ifeq (,$(RUST_SANCOV_FLAGS))
11-
# Never enable when coverage is enabled to work around https://github.com/rust-lang/rust/issues/90045.
12-
ifndef MOZ_CODE_COVERAGE
9+
@@ -56,7 +56,9 @@
10+
cargo_rustc_flags = $(CARGO_RUSTCFLAGS)
11+
# Enable link-time optimization for release builds.
12+
ifdef RUST_LIBRARY_LTO
13+
-cargo_rustc_flags += -Clto
1314
+ifeq (,$(findstring riscv64,$(RUST_TARGET)))
14-
ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))
15-
-cargo_rustc_flags += -Clto$(if $(filter full,$(MOZ_LTO_RUST_CROSS)),=fat)
1615
+cargo_rustc_flags += -Clto=thin
17-
endif
18-
# We need -Cembed-bitcode=yes for all crates when using -Clto.
19-
RUSTFLAGS += -Cembed-bitcode=yes
20-
@@ -101,6 +102,7 @@ endif
21-
endif
22-
endif
23-
endif
2416
+endif
17+
endif
2518

2619
ifdef CARGO_INCREMENTAL
27-
export CARGO_INCREMENTAL

‎main/thunderbird/patches/sandbox-sched_setscheduler.patch‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1657849
22
--- a/security/sandbox/linux/SandboxFilter.cpp
33
+++ b/security/sandbox/linux/SandboxFilter.cpp
4-
@@ -1884,10 +1884,10 @@ class GMPSandboxPolicy : public SandboxPolicyCommon {
4+
@@ -1919,13 +1919,13 @@
55
return Allow();
66
case __NR_sched_get_priority_min:
77
case __NR_sched_get_priority_max:
88
+ case __NR_sched_setscheduler:
99
return Allow();
10+
// The OpenH264 plugin needs sched_getaffinity() in multithreaded mode;
11+
// bug 2071378.
12+
case __NR_sched_getaffinity:
1013
case __NR_sched_getparam:
1114
- case __NR_sched_getscheduler:
1215
- case __NR_sched_setscheduler: {
1316
+ case __NR_sched_getscheduler: {
1417
Arg<pid_t> pid(0);
1518
return If(pid == 0, Allow()).Else(Trap(SchedTrap, nullptr));
1619
}
17-
@@ -2077,13 +2077,16 @@ class RDDSandboxPolicy final : public SandboxPolicyCommon {
20+
@@ -2209,12 +2209,15 @@
1821
case __NR_sched_getparam:
1922
case __NR_sched_setparam:
2023
case __NR_sched_getscheduler:
@@ -24,11 +27,10 @@ upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1657849
2427
Arg<pid_t> pid(0);
2528
return If(pid == 0, Allow()).Else(Trap(SchedTrap, nullptr));
2629
}
27-
30+
+
2831
+ // sched_setscheduler gets special treatment here (bug 1657849):
2932
+ case __NR_sched_setscheduler:
3033
+ return Allow();
31-
+
34+
3235
// The priority bounds are also used, sometimes (bug 1838675):
3336
case __NR_sched_get_priority_min:
34-
case __NR_sched_get_priority_max:

‎main/thunderbird/template.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pkgname = "thunderbird"
2-
pkgver = "157.0.1"
2+
pkgver = "158.0"
33
pkgrel = 0
44
hostmakedepends = [
55
"automake",
@@ -57,7 +57,7 @@
5757
license = "GPL-3.0-only AND LGPL-2.1-only AND LGPL-3.0-only AND MPL-2.0"
5858
url = "https://www.thunderbird.net"
5959
source = f"$(MOZILLA_SITE)/thunderbird/releases/{pkgver}/source/thunderbird-{pkgver}.source.tar.xz"
60-
sha256 = "f4f46de621d44ab7718a5878e0fcaff136e13f0f326db657c38953dc0151a1e8"
60+
sha256 = "6f586b18edcbad00e875ce4ce9d1c6df8dfda454fbd8a891c5da8a0ec06ec0c6"
6161
debug_level = 1 # defatten, especially with LTO
6262
tool_flags = {
6363
"LDFLAGS": ["-Wl,-rpath=/usr/lib/thunderbird", "-Wl,-z,stack-size=2097152"]

0 commit comments

Comments
 (0)