Update to 115.2.1
Resolves: RHEL-2845
This commit is contained in:
parent
e41d7e8a1d
commit
d869121fea
20
.gitignore
vendored
20
.gitignore
vendored
@ -18,15 +18,11 @@ SOURCES/thunderbird-symbolic.svg
|
|||||||
/thunderbird-langpacks-102.10.0-20230411.tar.xz
|
/thunderbird-langpacks-102.10.0-20230411.tar.xz
|
||||||
/thunderbird-102.11.0.processed-source.tar.xz
|
/thunderbird-102.11.0.processed-source.tar.xz
|
||||||
/thunderbird-langpacks-102.11.0-20230504.tar.xz
|
/thunderbird-langpacks-102.11.0-20230504.tar.xz
|
||||||
/thunderbird-102.12.0.processed-source.tar.xz
|
/thunderbird-115.1.0.processed-source.tar.xz
|
||||||
/thunderbird-langpacks-102.12.0-20230605.tar.xz
|
/thunderbird-langpacks-115.1.0-20230804.tar.xz
|
||||||
/thunderbird-102.13.0.processed-source.tar.xz
|
/nspr-4.35.0-1.el8_1.src.rpm
|
||||||
/thunderbird-langpacks-102.13.0-20230705.tar.xz
|
/nss-3.90.0-2.el8_1.src.rpm
|
||||||
/thunderbird-102.13.0.b2.processed-source.tar.xz
|
/thunderbird-115.2.1.processed-source.tar.xz
|
||||||
/thunderbird-langpacks-102.13.0-20230707.tar.xz
|
/thunderbird-langpacks-115.2.1-20230908.tar.xz
|
||||||
/thunderbird-102.14.0.processed-source.tar.xz
|
/nss-3.90.0-3.el9_0.src.rpm
|
||||||
/thunderbird-langpacks-102.14.0-20230801.tar.xz
|
/nss-3.90.0-3-no-buildid.el9_0.src.rpm
|
||||||
/thunderbird-102.15.0.processed-source.tar.xz
|
|
||||||
/thunderbird-langpacks-102.15.0-20230828.tar.xz
|
|
||||||
/thunderbird-102.15.1.processed-source.tar.xz
|
|
||||||
/thunderbird-langpacks-102.15.1-20230913.tar.xz
|
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
From efd5bc0715e5477318be95a76811cda0a89e8289 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= <emilio@crisal.io>
|
|
||||||
Date: Fri, 4 Mar 2022 12:00:26 +0100
|
|
||||||
Subject: [PATCH] GLIBCXX fix for GCC 12?
|
|
||||||
|
|
||||||
---
|
|
||||||
build/unix/stdc++compat/stdc++compat.cpp | 14 ++++++++++++++
|
|
||||||
1 file changed, 14 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/build/unix/stdc++compat/stdc++compat.cpp b/build/unix/stdc++compat/stdc++compat.cpp
|
|
||||||
index 0180f6bcfa998..8d7a542ff11f0 100644
|
|
||||||
--- a/build/unix/stdc++compat/stdc++compat.cpp
|
|
||||||
+++ b/build/unix/stdc++compat/stdc++compat.cpp
|
|
||||||
@@ -24,6 +24,7 @@
|
|
||||||
GLIBCXX_3.4.27 is from gcc 10
|
|
||||||
GLIBCXX_3.4.28 is from gcc 10
|
|
||||||
GLIBCXX_3.4.29 is from gcc 11
|
|
||||||
+ GLIBCXX_3.4.30 is from gcc 12
|
|
||||||
|
|
||||||
This file adds the necessary compatibility tricks to avoid symbols with
|
|
||||||
version GLIBCXX_3.4.20 and bigger, keeping binary compatibility with
|
|
||||||
@@ -69,6 +70,19 @@ void __attribute__((weak)) __throw_bad_array_new_length() { MOZ_CRASH(); }
|
|
||||||
} // namespace std
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#if _GLIBCXX_RELEASE >= 12
|
|
||||||
+namespace std {
|
|
||||||
+
|
|
||||||
+/* This avoids the GLIBCXX_3.4.30 symbol version. */
|
|
||||||
+void __attribute__((weak))
|
|
||||||
+__glibcxx_assert_fail(const char* __file, int __line, const char* __function,
|
|
||||||
+ const char* __condition) {
|
|
||||||
+ MOZ_CRASH();
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+} // namespace std
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
/* While we generally don't build with exceptions, we have some host tools
|
|
||||||
* that do use them. libstdc++ from GCC 5.0 added exception constructors with
|
|
||||||
* char const* argument. Older versions only have a constructor with
|
|
||||||
--
|
|
||||||
2.35.1
|
|
||||||
|
|
25
D158770.diff
25
D158770.diff
@ -1,25 +0,0 @@
|
|||||||
diff --git a/parser/expat/lib/xmlparse.c b/parser/expat/lib/xmlparse.c
|
|
||||||
--- a/parser/expat/lib/xmlparse.c
|
|
||||||
+++ b/parser/expat/lib/xmlparse.c
|
|
||||||
@@ -5652,12 +5652,18 @@
|
|
||||||
else
|
|
||||||
#endif /* XML_DTD */
|
|
||||||
{
|
|
||||||
processor = contentProcessor;
|
|
||||||
/* see externalEntityContentProcessor vs contentProcessor */
|
|
||||||
- return doContent(parser, parentParser ? 1 : 0, encoding, s, end,
|
|
||||||
- nextPtr, (XML_Bool)!ps_finalBuffer);
|
|
||||||
+ result = doContent(parser, parser->m_parentParser ? 1 : 0,
|
|
||||||
+ parser->m_encoding, s, end, nextPtr,
|
|
||||||
+ (XML_Bool)! parser->m_parsingStatus.finalBuffer);
|
|
||||||
+ if (result == XML_ERROR_NONE) {
|
|
||||||
+ if (! storeRawNames(parser))
|
|
||||||
+ return XML_ERROR_NO_MEMORY;
|
|
||||||
+ }
|
|
||||||
+ return result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static enum XML_Error PTRCALL
|
|
||||||
errorProcessor(XML_Parser parser,
|
|
||||||
|
|
@ -1,681 +0,0 @@
|
|||||||
--- thunderbird-78.9.0/Cargo.lock.D87019-thin-vec-big-endian.diff 2021-03-22 11:34:35.584716638 +0100
|
|
||||||
+++ thunderbird-78.9.0/Cargo.lock 2021-03-22 12:29:14.140624979 +0100
|
|
||||||
@@ -4792,9 +4792,9 @@ checksum = "8eaa81235c7058867fa8c0e7314f
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "thin-vec"
|
|
||||||
-version = "0.1.2"
|
|
||||||
+version = "0.2.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
-checksum = "3a93c9ade36a827a69257925808463db46ffcf193442fad01eb9bdc1d31aed81"
|
|
||||||
+checksum = "dcc760ada4a9f56fc6d0e81bd143984ebc7bb1b875a6891aa2fa613ca7394fc0"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "thiserror"
|
|
||||||
--- thunderbird-78.9.0/gfx/webrender_bindings/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:35:16.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/gfx/webrender_bindings/Cargo.toml 2021-03-22 11:34:35.587716631 +0100
|
|
||||||
@@ -20,7 +20,7 @@ nsstring = { path = "../../xpcom/rust/ns
|
|
||||||
bincode = "1.0"
|
|
||||||
uuid = { version = "0.8", features = ["v4"] }
|
|
||||||
fxhash = "0.2.1"
|
|
||||||
-thin-vec = { version = "0.1.0", features = ["gecko-ffi"] }
|
|
||||||
+thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
||||||
swgl = { path = "../wr/swgl" }
|
|
||||||
|
|
||||||
[dependencies.webrender]
|
|
||||||
--- thunderbird-78.9.0/intl/l10n/rust/fluent-ffi/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:35:16.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/intl/l10n/rust/fluent-ffi/Cargo.toml 2021-03-22 11:34:35.589716625 +0100
|
|
||||||
@@ -10,4 +10,4 @@ fluent-pseudo = "0.2"
|
|
||||||
intl-memoizer = "0.4"
|
|
||||||
unic-langid = "0.8"
|
|
||||||
nsstring = { path = "../../../../xpcom/rust/nsstring" }
|
|
||||||
-thin-vec = { version = "0.1.0", features = ["gecko-ffi"] }
|
|
||||||
+thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
||||||
--- thunderbird-78.9.0/intl/locale/rust/fluent-langneg-ffi/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:35:16.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/intl/locale/rust/fluent-langneg-ffi/Cargo.toml 2021-03-22 11:34:35.590716623 +0100
|
|
||||||
@@ -9,7 +9,7 @@ edition = "2018"
|
|
||||||
nserror = { path = "../../../../xpcom/rust/nserror" }
|
|
||||||
nsstring = { path = "../../../../xpcom/rust/nsstring" }
|
|
||||||
xpcom = { path = "../../../../xpcom/rust/xpcom" }
|
|
||||||
-thin-vec = { version = "0.1.0", features = ["gecko-ffi"] }
|
|
||||||
+thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
||||||
fluent-langneg = { version = "0.12.1", features = ["cldr"] }
|
|
||||||
unic-langid = "0.8"
|
|
||||||
unic-langid-ffi = { path = "../unic-langid-ffi" }
|
|
||||||
--- thunderbird-78.9.0/intl/locale/rust/unic-langid-ffi/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:35:16.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/intl/locale/rust/unic-langid-ffi/Cargo.toml 2021-03-22 11:34:35.591716620 +0100
|
|
||||||
@@ -9,5 +9,5 @@ edition = "2018"
|
|
||||||
nserror = { path = "../../../../xpcom/rust/nserror" }
|
|
||||||
nsstring = { path = "../../../../xpcom/rust/nsstring" }
|
|
||||||
xpcom = { path = "../../../../xpcom/rust/xpcom" }
|
|
||||||
-thin-vec = { version = "0.1.0", features = ["gecko-ffi"] }
|
|
||||||
+thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
||||||
unic-langid = { version = "0.8", features = ["likelysubtags"] }
|
|
||||||
--- thunderbird-78.9.0/netwerk/socket/neqo_glue/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:35:40.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/netwerk/socket/neqo_glue/Cargo.toml 2021-03-22 11:34:35.600716597 +0100
|
|
||||||
@@ -14,7 +14,7 @@ neqo-common = { tag = "v0.2.4", git = "h
|
|
||||||
nserror = { path = "../../../xpcom/rust/nserror" }
|
|
||||||
nsstring = { path = "../../../xpcom/rust/nsstring" }
|
|
||||||
xpcom = { path = "../../../xpcom/rust/xpcom" }
|
|
||||||
-thin-vec = { version = "0.1.0", features = ["gecko-ffi"] }
|
|
||||||
+thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
||||||
|
|
||||||
[dependencies.neqo-crypto]
|
|
||||||
tag = "v0.2.4"
|
|
||||||
--- thunderbird-78.9.0/security/manager/ssl/cert_storage/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:35:52.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/security/manager/ssl/cert_storage/Cargo.toml 2021-03-22 11:34:35.601716594 +0100
|
|
||||||
@@ -18,6 +18,6 @@ rust_cascade = "0.6.0"
|
|
||||||
sha2 = "^0.8"
|
|
||||||
storage_variant = { path = "../../../../storage/variant" }
|
|
||||||
tempfile = "3"
|
|
||||||
-thin-vec = { version = "0.1.0", features = ["gecko-ffi"] }
|
|
||||||
+thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
||||||
time = "0.1"
|
|
||||||
xpcom = { path = "../../../../xpcom/rust/xpcom" }
|
|
||||||
--- thunderbird-78.9.0/services/fxaccounts/rust-bridge/firefox-accounts-bridge/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:35:49.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/services/fxaccounts/rust-bridge/firefox-accounts-bridge/Cargo.toml 2021-03-22 11:34:35.603716589 +0100
|
|
||||||
@@ -20,5 +20,5 @@ nserror = { path = "../../../../xpcom/ru
|
|
||||||
nsstring = { path = "../../../../xpcom/rust/nsstring" }
|
|
||||||
xpcom = { path = "../../../../xpcom/rust/xpcom" }
|
|
||||||
storage_variant = { path = "../../../../storage/variant" }
|
|
||||||
-thin-vec = { version = "0.1", features = ["gecko-ffi"] }
|
|
||||||
+thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
||||||
fxa-client = { git = "https://github.com/mozilla/application-services", rev = "61dcc364ac0d6d0816ab88a494bbf20d824b009b", features = ["gecko"] }
|
|
||||||
--- thunderbird-78.9.0/services/sync/golden_gate/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:35:53.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/services/sync/golden_gate/Cargo.toml 2021-03-22 11:34:35.605716584 +0100
|
|
||||||
@@ -19,5 +19,5 @@ sync15-traits = { git = "https://github.
|
|
||||||
xpcom = { path = "../../../xpcom/rust/xpcom" }
|
|
||||||
|
|
||||||
[dependencies.thin-vec]
|
|
||||||
-version = "0.1.0"
|
|
||||||
+version = "0.2.1"
|
|
||||||
features = ["gecko-ffi"]
|
|
||||||
--- thunderbird-78.9.0/third_party/rust/thin-vec/.cargo-checksum.json.D87019-thin-vec-big-endian.diff 2021-03-22 11:34:35.606716581 +0100
|
|
||||||
+++ thunderbird-78.9.0/third_party/rust/thin-vec/.cargo-checksum.json 2021-03-22 12:30:38.588587238 +0100
|
|
||||||
@@ -1 +1 @@
|
|
||||||
-{"files":{"Cargo.toml":"7b164cc8a702a204a4732cb4da2940711b8e3be915c258e2a972d4874d767b4c","README.md":"c26d7101e3031e7dd8890ce938e50cad7a1e6adf7fc2f2b0d3c36b03afe68c0b","src/lib.rs":"9f2a087cabfe0b6f83818323bb9004b45fe7548c51376816fd8d4572256bd0e8","src/range.rs":"bac59bcb6230367a39c7e28ac15263e4526f966cd8c72015873017f17c115aaa"},"package":"3a93c9ade36a827a69257925808463db46ffcf193442fad01eb9bdc1d31aed81"}
|
|
||||||
\ No newline at end of file
|
|
||||||
+{"files":{"Cargo.toml":"754c05523d17eb7591c3ea2c9294e47c05fbb257fed04b78546fb2ec7cafa8b4","README.md":"c26d7101e3031e7dd8890ce938e50cad7a1e6adf7fc2f2b0d3c36b03afe68c0b","src/lib.rs":"627c6094c3f0286dba25bc73f5672c06c5061c25b01c513d213cbdda100673a2"},"package":"dcc760ada4a9f56fc6d0e81bd143984ebc7bb1b875a6891aa2fa613ca7394fc0"}
|
|
||||||
--- thunderbird-78.9.0/third_party/rust/thin-vec/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:36:33.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/third_party/rust/thin-vec/Cargo.toml 2021-03-22 12:32:38.577621737 +0100
|
|
||||||
@@ -11,8 +11,9 @@
|
|
||||||
# will likely look very different (and much more reasonable)
|
|
||||||
|
|
||||||
[package]
|
|
||||||
+edition = "2018"
|
|
||||||
name = "thin-vec"
|
|
||||||
-version = "0.1.2"
|
|
||||||
+version = "0.2.1"
|
|
||||||
authors = ["Alexis Beingessner <a.beingessner@gmail.com>"]
|
|
||||||
description = "a vec that takes up less space on the stack"
|
|
||||||
homepage = "https://github.com/gankro/thin-vec"
|
|
||||||
--- thunderbird-78.9.0/third_party/rust/thin-vec/src/lib.rs.D87019-thin-vec-big-endian.diff 2021-03-19 22:36:28.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/third_party/rust/thin-vec/src/lib.rs 2021-03-22 12:34:10.271595434 +0100
|
|
||||||
@@ -1,47 +1,252 @@
|
|
||||||
-mod range;
|
|
||||||
+//! ThinVec is exactly the same as Vec, except that it stores its `len` and `capacity` in the buffer
|
|
||||||
+//! it allocates.
|
|
||||||
+//!
|
|
||||||
+//! This makes the memory footprint of ThinVecs lower; notably in cases where space is reserved for
|
|
||||||
+//! a non-existence ThinVec<T>. So `Vec<ThinVec<T>>` and `Option<ThinVec<T>>::None` will waste less
|
|
||||||
+//! space. Being pointer-sized also means it can be passed/stored in registers.
|
|
||||||
+//!
|
|
||||||
+//! Of course, any actually constructed ThinVec will theoretically have a bigger allocation, but
|
|
||||||
+//! the fuzzy nature of allocators means that might not actually be the case.
|
|
||||||
+//!
|
|
||||||
+//! Properties of Vec that are preserved:
|
|
||||||
+//! * `ThinVec::new()` doesn't allocate (it points to a statically allocated singleton)
|
|
||||||
+//! * reallocation can be done in place
|
|
||||||
+//! * `size_of::<ThinVec<T>>()` == `size_of::<Option<ThinVec<T>>>()`
|
|
||||||
+//!
|
|
||||||
+//! Properties of Vec that aren't preserved:
|
|
||||||
+//! * `ThinVec<T>` can't ever be zero-cost roundtripped to a `Box<[T]>`, `String`, or `*mut T`
|
|
||||||
+//! * `from_raw_parts` doesn't exist
|
|
||||||
+//! * ThinVec currently doesn't bother to not-allocate for Zero Sized Types (e.g. `ThinVec<()>`),
|
|
||||||
+//! but it could be done if someone cared enough to implement it.
|
|
||||||
+//!
|
|
||||||
+//!
|
|
||||||
+//!
|
|
||||||
+//! # Gecko FFI
|
|
||||||
+//!
|
|
||||||
+//! If you enable the gecko-ffi feature, ThinVec will verbatim bridge with the nsTArray type in
|
|
||||||
+//! Gecko (Firefox). That is, ThinVec and nsTArray have identical layouts *but not ABIs*,
|
|
||||||
+//! so nsTArrays/ThinVecs an be natively manipulated by C++ and Rust, and ownership can be
|
|
||||||
+//! transferred across the FFI boundary (**IF YOU ARE CAREFUL, SEE BELOW!!**).
|
|
||||||
+//!
|
|
||||||
+//! While this feature is handy, it is also inherently dangerous to use because Rust and C++ do not
|
|
||||||
+//! know about eachother. Specifically, this can be an issue with non-POD types (types which
|
|
||||||
+//! have destructors, move constructors, or are `!Copy`).
|
|
||||||
+//!
|
|
||||||
+//! ## Do Not Pass By Value
|
|
||||||
+//!
|
|
||||||
+//! The biggest thing to keep in mind is that **FFI functions cannot pass ThinVec/nsTArray
|
|
||||||
+//! by-value**. That is, these are busted APIs:
|
|
||||||
+//!
|
|
||||||
+//! ```rust,ignore
|
|
||||||
+//! // BAD WRONG
|
|
||||||
+//! extern fn process_data(data: ThinVec<u32>) { ... }
|
|
||||||
+//! // BAD WRONG
|
|
||||||
+//! extern fn get_data() -> ThinVec<u32> { ... }
|
|
||||||
+//! ```
|
|
||||||
+//!
|
|
||||||
+//! You must instead pass by-reference:
|
|
||||||
+//!
|
|
||||||
+//! ```rust
|
|
||||||
+//! # use thin_vec::*;
|
|
||||||
+//! # use std::mem;
|
|
||||||
+//!
|
|
||||||
+//! // Read-only access, ok!
|
|
||||||
+//! extern fn process_data(data: &ThinVec<u32>) {
|
|
||||||
+//! for val in data {
|
|
||||||
+//! println!("{}", val);
|
|
||||||
+//! }
|
|
||||||
+//! }
|
|
||||||
+//!
|
|
||||||
+//! // Replace with empty instance to take ownership, ok!
|
|
||||||
+//! extern fn consume_data(data: &mut ThinVec<u32>) {
|
|
||||||
+//! let owned = mem::replace(data, ThinVec::new());
|
|
||||||
+//! mem::drop(owned);
|
|
||||||
+//! }
|
|
||||||
+//!
|
|
||||||
+//! // Mutate input, ok!
|
|
||||||
+//! extern fn add_data(dataset: &mut ThinVec<u32>) {
|
|
||||||
+//! dataset.push(37);
|
|
||||||
+//! dataset.push(12);
|
|
||||||
+//! }
|
|
||||||
+//!
|
|
||||||
+//! // Return via out-param, usually ok!
|
|
||||||
+//! //
|
|
||||||
+//! // WARNING: output must be initialized! (Empty nsTArrays are free, so just do it!)
|
|
||||||
+//! extern fn get_data(output: &mut ThinVec<u32>) {
|
|
||||||
+//! *output = thin_vec![1, 2, 3, 4, 5];
|
|
||||||
+//! }
|
|
||||||
+//! ```
|
|
||||||
+//!
|
|
||||||
+//! Ignorable Explanation For Those Who Really Want To Know Why:
|
|
||||||
+//!
|
|
||||||
+//! > The fundamental issue is that Rust and C++ can't currently communicate about destructors, and
|
|
||||||
+//! > the semantics of C++ require destructors of function arguments to be run when the function
|
|
||||||
+//! > returns. Whether the callee or caller is responsible for this is also platform-specific, so
|
|
||||||
+//! > trying to hack around it manually would be messy.
|
|
||||||
+//! >
|
|
||||||
+//! > Also a type having a destructor changes its C++ ABI, because that type must actually exist
|
|
||||||
+//! > in memory (unlike a trivial struct, which is often passed in registers). We don't currently
|
|
||||||
+//! > have a way to communicate to Rust that this is happening, so even if we worked out the
|
|
||||||
+//! > destructor issue with say, MaybeUninit, it would still be a non-starter without some RFCs
|
|
||||||
+//! > to add explicit rustc support.
|
|
||||||
+//! >
|
|
||||||
+//! > Realistically, the best answer here is to have a "heavier" bindgen that can secretly
|
|
||||||
+//! > generate FFI glue so we can pass things "by value" and have it generate by-reference code
|
|
||||||
+//! > behind our back (like the cxx crate does). This would muddy up debugging/searchfox though.
|
|
||||||
+//!
|
|
||||||
+//! ## Types Should Be Trivially Relocatable
|
|
||||||
+//!
|
|
||||||
+//! Types in Rust are always trivially relocatable (unless suitably borrowed/[pinned][]/hidden).
|
|
||||||
+//! This means all Rust types are legal to relocate with a bitwise copy, you cannot provide
|
|
||||||
+//! copy or move constructors to execute when this happens, and the old location won't have its
|
|
||||||
+//! destructor run. This will cause problems for types which have a significant location
|
|
||||||
+//! (types that intrusively point into themselves or have their location registered with a service).
|
|
||||||
+//!
|
|
||||||
+//! While relocations are generally predictable if you're very careful, **you should avoid using
|
|
||||||
+//! types with significant locations with Rust FFI**.
|
|
||||||
+//!
|
|
||||||
+//! Specifically, ThinVec will trivially relocate its contents whenever it needs to reallocate its
|
|
||||||
+//! buffer to change its capacity. This is the default reallocation strategy for nsTArray, and is
|
|
||||||
+//! suitable for the vast majority of types. Just be aware of this limitation!
|
|
||||||
+//!
|
|
||||||
+//! ## Auto Arrays Are Dangerous
|
|
||||||
+//!
|
|
||||||
+//! ThinVec has *some* support for handling auto arrays which store their buffer on the stack,
|
|
||||||
+//! but this isn't well tested.
|
|
||||||
+//!
|
|
||||||
+//! Regardless of how much support we provide, Rust won't be aware of the buffer's limited lifetime,
|
|
||||||
+//! so standard auto array safety caveats apply about returning/storing them! ThinVec won't ever
|
|
||||||
+//! produce an auto array on its own, so this is only an issue for transferring an nsTArray into
|
|
||||||
+//! Rust.
|
|
||||||
+//!
|
|
||||||
+//! ## Other Issues
|
|
||||||
+//!
|
|
||||||
+//! Standard FFI caveats also apply:
|
|
||||||
+//!
|
|
||||||
+//! * Rust is more strict about POD types being initialized (use MaybeUninit if you must)
|
|
||||||
+//! * `ThinVec<T>` has no idea if the C++ version of `T` has move/copy/assign/delete overloads
|
|
||||||
+//! * `nsTArray<T>` has no idea if the Rust version of `T` has a Drop/Clone impl
|
|
||||||
+//! * C++ can do all sorts of unsound things that Rust can't catch
|
|
||||||
+//! * C++ and Rust don't agree on how zero-sized/empty types should be handled
|
|
||||||
+//!
|
|
||||||
+//! The gecko-ffi feature will not work if you aren't linking with code that has nsTArray
|
|
||||||
+//! defined. Specifically, we must share the symbol for nsTArray's empty singleton. You will get
|
|
||||||
+//! linking errors if that isn't defined.
|
|
||||||
+//!
|
|
||||||
+//! The gecko-ffi feature also limits ThinVec to the legacy behaviors of nsTArray. Most notably,
|
|
||||||
+//! nsTArray has a maximum capacity of i32::MAX (~2.1 billion items). Probably not an issue.
|
|
||||||
+//! Probably.
|
|
||||||
+//!
|
|
||||||
+//! [pinned]: https://doc.rust-lang.org/std/pin/index.html
|
|
||||||
|
|
||||||
use std::{fmt, io, ptr, mem, slice};
|
|
||||||
use std::collections::Bound;
|
|
||||||
use std::iter::FromIterator;
|
|
||||||
use std::slice::IterMut;
|
|
||||||
-use std::ops::{Deref, DerefMut};
|
|
||||||
+use std::ops::{Deref, DerefMut, RangeBounds};
|
|
||||||
use std::marker::PhantomData;
|
|
||||||
use std::alloc::*;
|
|
||||||
use std::cmp::*;
|
|
||||||
use std::hash::*;
|
|
||||||
use std::borrow::*;
|
|
||||||
-use range::RangeArgument;
|
|
||||||
use std::ptr::NonNull;
|
|
||||||
|
|
||||||
-#[cfg(not(feature = "gecko-ffi"))]
|
|
||||||
-type SizeType = usize;
|
|
||||||
-#[cfg(feature = "gecko-ffi")]
|
|
||||||
-type SizeType = u32;
|
|
||||||
+use impl_details::*;
|
|
||||||
|
|
||||||
-#[cfg(feature = "gecko-ffi")]
|
|
||||||
-const AUTO_MASK: u32 = 1 << 31;
|
|
||||||
-#[cfg(feature = "gecko-ffi")]
|
|
||||||
-const CAP_MASK: u32 = !AUTO_MASK;
|
|
||||||
+// modules: a simple way to cfg a whole bunch of impl details at once
|
|
||||||
|
|
||||||
#[cfg(not(feature = "gecko-ffi"))]
|
|
||||||
-const MAX_CAP: usize = !0;
|
|
||||||
-#[cfg(feature = "gecko-ffi")]
|
|
||||||
-const MAX_CAP: usize = i32::max_value() as usize;
|
|
||||||
+mod impl_details {
|
|
||||||
+ pub type SizeType = usize;
|
|
||||||
+ pub const MAX_CAP: usize = !0;
|
|
||||||
|
|
||||||
-#[cfg(not(feature = "gecko-ffi"))]
|
|
||||||
-#[inline(always)]
|
|
||||||
-fn assert_size(x: usize) -> SizeType { x }
|
|
||||||
+ #[inline(always)]
|
|
||||||
+ pub fn assert_size(x: usize) -> SizeType { x }
|
|
||||||
+}
|
|
||||||
|
|
||||||
#[cfg(feature = "gecko-ffi")]
|
|
||||||
-#[inline]
|
|
||||||
-fn assert_size(x: usize) -> SizeType {
|
|
||||||
- if x > MAX_CAP as usize {
|
|
||||||
- panic!("nsTArray size may not exceed the capacity of a 32-bit sized int");
|
|
||||||
+mod impl_details {
|
|
||||||
+ // Support for briding a gecko nsTArray verbatim into a ThinVec.
|
|
||||||
+ //
|
|
||||||
+ // ThinVec can't see copy/move/delete implementations
|
|
||||||
+ // from C++
|
|
||||||
+ //
|
|
||||||
+ // The actual layout of an nsTArray is:
|
|
||||||
+ //
|
|
||||||
+ // ```cpp
|
|
||||||
+ // struct {
|
|
||||||
+ // uint32_t mLength;
|
|
||||||
+ // uint32_t mCapacity: 31;
|
|
||||||
+ // uint32_t mIsAutoArray: 1;
|
|
||||||
+ // }
|
|
||||||
+ // ```
|
|
||||||
+ //
|
|
||||||
+ // Rust doesn't natively support bit-fields, so we manually mask
|
|
||||||
+ // and shift the bit. When the "auto" bit is set, the header and buffer
|
|
||||||
+ // are actually on the stack, meaning the ThinVec pointer-to-header
|
|
||||||
+ // is essentially an "owned borrow", and therefore dangerous to handle.
|
|
||||||
+ // There are no safety guards for this situation.
|
|
||||||
+ //
|
|
||||||
+ // On little-endian platforms, the auto bit will be the high-bit of
|
|
||||||
+ // our capacity u32. On big-endian platforms, it will be the low bit.
|
|
||||||
+ // Hence we need some platform-specific CFGs for the necessary masking/shifting.
|
|
||||||
+ //
|
|
||||||
+ // ThinVec won't ever construct an auto array. They only happen when
|
|
||||||
+ // bridging from C++. This means we don't need to ever set/preserve the bit.
|
|
||||||
+ // We just need to be able to read and handle it if it happens to be there.
|
|
||||||
+ //
|
|
||||||
+ // Handling the auto bit mostly just means not freeing/reallocating the buffer.
|
|
||||||
+
|
|
||||||
+ pub type SizeType = u32;
|
|
||||||
+
|
|
||||||
+ pub const MAX_CAP: usize = i32::max_value() as usize;
|
|
||||||
+
|
|
||||||
+ // Little endian: the auto bit is the high bit, and the capacity is
|
|
||||||
+ // verbatim. So we just need to mask off the high bit. Note that
|
|
||||||
+ // this masking is unnecessary when packing, because assert_size
|
|
||||||
+ // guards against the high bit being set.
|
|
||||||
+ #[cfg(target_endian = "little")]
|
|
||||||
+ pub fn pack_capacity(cap: SizeType) -> SizeType {
|
|
||||||
+ cap as SizeType
|
|
||||||
+ }
|
|
||||||
+ #[cfg(target_endian = "little")]
|
|
||||||
+ pub fn unpack_capacity(cap: SizeType) -> usize {
|
|
||||||
+ (cap as usize) & !(1 << 31)
|
|
||||||
+ }
|
|
||||||
+ #[cfg(target_endian = "little")]
|
|
||||||
+ pub fn is_auto(cap: SizeType) -> bool {
|
|
||||||
+ (cap & (1 << 31)) != 0
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ // Big endian: the auto bit is the low bit, and the capacity is
|
|
||||||
+ // shifted up one bit. Masking out the auto bit is unnecessary,
|
|
||||||
+ // as rust shifts always shift in 0's for unsigned integers.
|
|
||||||
+ #[cfg(target_endian = "big")]
|
|
||||||
+ pub fn pack_capacity(cap: SizeType) -> SizeType {
|
|
||||||
+ (cap as SizeType) << 1
|
|
||||||
+ }
|
|
||||||
+ #[cfg(target_endian = "big")]
|
|
||||||
+ pub fn unpack_capacity(cap: SizeType) -> usize {
|
|
||||||
+ (cap >> 1) as usize
|
|
||||||
+ }
|
|
||||||
+ #[cfg(target_endian = "big")]
|
|
||||||
+ pub fn is_auto(cap: SizeType) -> bool {
|
|
||||||
+ (cap & 1) != 0
|
|
||||||
}
|
|
||||||
- x as SizeType
|
|
||||||
+
|
|
||||||
+ #[inline]
|
|
||||||
+ pub fn assert_size(x: usize) -> SizeType {
|
|
||||||
+ if x > MAX_CAP as usize {
|
|
||||||
+ panic!("nsTArray size may not exceed the capacity of a 32-bit sized int");
|
|
||||||
+ }
|
|
||||||
+ x as SizeType
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
}
|
|
||||||
|
|
||||||
-/// The header of a ThinVec
|
|
||||||
+/// The header of a ThinVec.
|
|
||||||
+///
|
|
||||||
+/// The _cap can be a bitfield, so use accessors to avoid trouble.
|
|
||||||
#[repr(C)]
|
|
||||||
struct Header {
|
|
||||||
_len: SizeType,
|
|
||||||
@@ -53,38 +258,10 @@ impl Header {
|
|
||||||
self._len as usize
|
|
||||||
}
|
|
||||||
|
|
||||||
- #[cfg(feature = "gecko-ffi")]
|
|
||||||
- fn cap(&self) -> usize {
|
|
||||||
- (self._cap & CAP_MASK) as usize
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- #[cfg(not(feature = "gecko-ffi"))]
|
|
||||||
- fn cap(&self) -> usize {
|
|
||||||
- self._cap as usize
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
fn set_len(&mut self, len: usize) {
|
|
||||||
self._len = assert_size(len);
|
|
||||||
}
|
|
||||||
|
|
||||||
- #[cfg(feature = "gecko-ffi")]
|
|
||||||
- fn set_cap(&mut self, cap: usize) {
|
|
||||||
- debug_assert!(cap & (CAP_MASK as usize) == cap);
|
|
||||||
- // FIXME: this is busted because it reads uninit memory
|
|
||||||
- // debug_assert!(!self.uses_stack_allocated_buffer());
|
|
||||||
- self._cap = assert_size(cap) & CAP_MASK;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- #[cfg(feature = "gecko-ffi")]
|
|
||||||
- fn uses_stack_allocated_buffer(&self) -> bool {
|
|
||||||
- self._cap & AUTO_MASK != 0
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- #[cfg(not(feature = "gecko-ffi"))]
|
|
||||||
- fn set_cap(&mut self, cap: usize) {
|
|
||||||
- self._cap = assert_size(cap);
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
fn data<T>(&self) -> *mut T {
|
|
||||||
let header_size = mem::size_of::<Header>();
|
|
||||||
let padding = padding::<T>();
|
|
||||||
@@ -102,6 +279,41 @@ impl Header {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
+
|
|
||||||
+#[cfg(feature = "gecko-ffi")]
|
|
||||||
+impl Header {
|
|
||||||
+ fn cap(&self) -> usize {
|
|
||||||
+ unpack_capacity(self._cap)
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ fn set_cap(&mut self, cap: usize) {
|
|
||||||
+ // debug check that our packing is working
|
|
||||||
+ debug_assert_eq!(unpack_capacity(pack_capacity(cap as SizeType)), cap);
|
|
||||||
+ // FIXME: this assert is busted because it reads uninit memory
|
|
||||||
+ // debug_assert!(!self.uses_stack_allocated_buffer());
|
|
||||||
+
|
|
||||||
+ // NOTE: this always stores a cleared auto bit, because set_cap
|
|
||||||
+ // is only invoked by Rust, and Rust doesn't create auto arrays.
|
|
||||||
+ self._cap = pack_capacity(assert_size(cap));
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ fn uses_stack_allocated_buffer(&self) -> bool {
|
|
||||||
+ is_auto(self._cap)
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+#[cfg(not(feature = "gecko-ffi"))]
|
|
||||||
+impl Header {
|
|
||||||
+ fn cap(&self) -> usize {
|
|
||||||
+ self._cap as usize
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ fn set_cap(&mut self, cap: usize) {
|
|
||||||
+ self._cap = assert_size(cap);
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
/// Singleton that all empty collections share.
|
|
||||||
/// Note: can't store non-zero ZSTs, we allocate in that case. We could
|
|
||||||
/// optimize everything to not do that (basically, make ptr == len and branch
|
|
||||||
@@ -118,9 +330,7 @@ extern {
|
|
||||||
|
|
||||||
// TODO: overflow checks everywhere
|
|
||||||
|
|
||||||
-// Utils
|
|
||||||
-
|
|
||||||
-fn oom() -> ! { std::process::abort() }
|
|
||||||
+// Utils for computing layouts of allocations
|
|
||||||
|
|
||||||
fn alloc_size<T>(cap: usize) -> usize {
|
|
||||||
// Compute "real" header size with pointer math
|
|
||||||
@@ -165,9 +375,10 @@ fn layout<T>(cap: usize) -> Layout {
|
|
||||||
fn header_with_capacity<T>(cap: usize) -> NonNull<Header> {
|
|
||||||
debug_assert!(cap > 0);
|
|
||||||
unsafe {
|
|
||||||
- let header = alloc(layout::<T>(cap)) as *mut Header;
|
|
||||||
+ let layout = layout::<T>(cap);
|
|
||||||
+ let header = alloc(layout) as *mut Header;
|
|
||||||
|
|
||||||
- if header.is_null() { oom() }
|
|
||||||
+ if header.is_null() { handle_alloc_error(layout) }
|
|
||||||
|
|
||||||
// "Infinite" capacity for zero-sized types:
|
|
||||||
(*header).set_cap(if mem::size_of::<T>() == 0 { MAX_CAP } else { cap });
|
|
||||||
@@ -179,28 +390,8 @@ fn header_with_capacity<T>(cap: usize) -
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-/// ThinVec is exactly the same as Vec, except that it stores its `len` and `capacity` in the buffer
|
|
||||||
-/// it allocates.
|
|
||||||
-///
|
|
||||||
-/// This makes the memory footprint of ThinVecs lower; notably in cases where space is reserved for
|
|
||||||
-/// a non-existence ThinVec<T>. So `Vec<ThinVec<T>>` and `Option<ThinVec<T>>::None` will waste less
|
|
||||||
-/// space. Being pointer-sized also means it can be passed/stored in registers.
|
|
||||||
-///
|
|
||||||
-/// Of course, any actually constructed ThinVec will theoretically have a bigger allocation, but
|
|
||||||
-/// the fuzzy nature of allocators means that might not actually be the case.
|
|
||||||
-///
|
|
||||||
-/// Properties of Vec that are preserved:
|
|
||||||
-/// * `ThinVec::new()` doesn't allocate (it points to a statically allocated singleton)
|
|
||||||
-/// * reallocation can be done in place
|
|
||||||
-/// * `size_of::<ThinVec<T>>()` == `size_of::<Option<ThinVec<T>>>()`
|
|
||||||
-/// * NOTE: This is only possible when the `unstable` feature is used.
|
|
||||||
-///
|
|
||||||
-/// Properties of Vec that aren't preserved:
|
|
||||||
-/// * `ThinVec<T>` can't ever be zero-cost roundtripped to a `Box<[T]>`, `String`, or `*mut T`
|
|
||||||
-/// * `from_raw_parts` doesn't exist
|
|
||||||
-/// * ThinVec currently doesn't bother to not-allocate for Zero Sized Types (e.g. `ThinVec<()>`),
|
|
||||||
-/// but it could be done if someone cared enough to implement it.
|
|
||||||
-#[cfg_attr(feature = "gecko-ffi", repr(C))]
|
|
||||||
+/// See the crate's top level documentation for a description of this type.
|
|
||||||
+#[repr(C)]
|
|
||||||
pub struct ThinVec<T> {
|
|
||||||
ptr: NonNull<Header>,
|
|
||||||
boo: PhantomData<T>,
|
|
||||||
@@ -630,15 +821,15 @@ impl<T> ThinVec<T> {
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn drain<R>(&mut self, range: R) -> Drain<T>
|
|
||||||
- where R: RangeArgument<usize>
|
|
||||||
+ where R: RangeBounds<usize>
|
|
||||||
{
|
|
||||||
let len = self.len();
|
|
||||||
- let start = match range.start() {
|
|
||||||
+ let start = match range.start_bound() {
|
|
||||||
Bound::Included(&n) => n,
|
|
||||||
Bound::Excluded(&n) => n + 1,
|
|
||||||
Bound::Unbounded => 0,
|
|
||||||
};
|
|
||||||
- let end = match range.end() {
|
|
||||||
+ let end = match range.end_bound() {
|
|
||||||
Bound::Included(&n) => n + 1,
|
|
||||||
Bound::Excluded(&n) => n,
|
|
||||||
Bound::Unbounded => len,
|
|
||||||
@@ -688,11 +879,30 @@ impl<T> ThinVec<T> {
|
|
||||||
alloc_size::<T>(new_cap),
|
|
||||||
) as *mut Header;
|
|
||||||
|
|
||||||
- if ptr.is_null() { oom() }
|
|
||||||
+ if ptr.is_null() { handle_alloc_error(layout::<T>(new_cap)) }
|
|
||||||
(*ptr).set_cap(new_cap);
|
|
||||||
self.ptr = NonNull::new_unchecked(ptr);
|
|
||||||
} else {
|
|
||||||
- self.ptr = header_with_capacity::<T>(new_cap);
|
|
||||||
+ let mut new_header = header_with_capacity::<T>(new_cap);
|
|
||||||
+
|
|
||||||
+ // If we get here and have a non-zero len, then we must be handling
|
|
||||||
+ // a gecko auto array, and we have items in a stack buffer. We shouldn't
|
|
||||||
+ // free it, but we should memcopy the contents out of it and mark it as empty.
|
|
||||||
+ //
|
|
||||||
+ // T is assumed to be trivially relocatable, as this is ~required
|
|
||||||
+ // for Rust compatibility anyway. Furthermore, we assume C++ won't try
|
|
||||||
+ // to unconditionally destroy the contents of the stack allocated buffer
|
|
||||||
+ // (i.e. it's obfuscated behind a union).
|
|
||||||
+ //
|
|
||||||
+ // In effect, we are partially reimplementing the auto array move constructor
|
|
||||||
+ // by leaving behind a valid empty instance.
|
|
||||||
+ let len = self.len();
|
|
||||||
+ if cfg!(feature = "gecko-ffi") && len > 0 {
|
|
||||||
+ new_header.as_mut().data::<T>().copy_from_nonoverlapping(self.data_raw(), len);
|
|
||||||
+ self.set_len(0);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ self.ptr = new_header;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1093,10 +1303,7 @@ mod tests {
|
|
||||||
use std::mem::size_of;
|
|
||||||
assert_eq!(size_of::<ThinVec<u8>>(), size_of::<&u8>());
|
|
||||||
|
|
||||||
- // We don't perform the null-pointer optimization on stable rust.
|
|
||||||
- if cfg!(feature = "unstable") {
|
|
||||||
- assert_eq!(size_of::<Option<ThinVec<u8>>>(), size_of::<&u8>());
|
|
||||||
- }
|
|
||||||
+ assert_eq!(size_of::<Option<ThinVec<u8>>>(), size_of::<&u8>());
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
@@ -1731,7 +1938,6 @@ mod std_tests {
|
|
||||||
assert_eq!(v, &[(), ()]);
|
|
||||||
}
|
|
||||||
|
|
||||||
-/* TODO: support inclusive ranges
|
|
||||||
#[test]
|
|
||||||
fn test_drain_inclusive_range() {
|
|
||||||
let mut v = thin_vec!['a', 'b', 'c', 'd', 'e'];
|
|
||||||
@@ -1761,6 +1967,7 @@ mod std_tests {
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
+ #[cfg(not(feature = "gecko-ffi"))]
|
|
||||||
fn test_drain_max_vec_size() {
|
|
||||||
let mut v = ThinVec::<()>::with_capacity(usize::max_value());
|
|
||||||
unsafe { v.set_len(usize::max_value()); }
|
|
||||||
@@ -1781,7 +1988,6 @@ mod std_tests {
|
|
||||||
let mut v = thin_vec![1, 2, 3, 4, 5];
|
|
||||||
v.drain(5..=5);
|
|
||||||
}
|
|
||||||
-*/
|
|
||||||
|
|
||||||
/* TODO: implement splice?
|
|
||||||
#[test]
|
|
||||||
@@ -2187,7 +2393,7 @@ mod std_tests {
|
|
||||||
assert!(v.capacity() >= 33)
|
|
||||||
}
|
|
||||||
|
|
||||||
-/* TODO: implement try_reserve
|
|
||||||
+/* TODO: implement try_reserve
|
|
||||||
#[test]
|
|
||||||
fn test_try_reserve() {
|
|
||||||
|
|
||||||
--- thunderbird-78.9.0/toolkit/components/cascade_bloom_filter/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:36:12.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/toolkit/components/cascade_bloom_filter/Cargo.toml 2021-03-22 11:37:44.287130273 +0100
|
|
||||||
@@ -8,5 +8,5 @@ nserror = { path = "../../../xpcom/rust/
|
|
||||||
nsstring = { path = "../../../xpcom/rust/nsstring" }
|
|
||||||
rental = "0.5.5"
|
|
||||||
rust_cascade = "0.6.0"
|
|
||||||
-thin-vec = { version = "0.1.0", features = ["gecko-ffi"] }
|
|
||||||
+thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
||||||
xpcom = { path = "../../../xpcom/rust/xpcom" }
|
|
||||||
--- thunderbird-78.9.0/toolkit/components/extensions/storage/webext_storage_bridge/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:36:28.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/toolkit/components/extensions/storage/webext_storage_bridge/Cargo.toml 2021-03-22 11:37:44.288130270 +0100
|
|
||||||
@@ -13,7 +13,7 @@ moz_task = { path = "../../../../../xpco
|
|
||||||
nserror = { path = "../../../../../xpcom/rust/nserror" }
|
|
||||||
nsstring = { path = "../../../../../xpcom/rust/nsstring" }
|
|
||||||
once_cell = "1"
|
|
||||||
-thin-vec = { version = "0.1.0", features = ["gecko-ffi"] }
|
|
||||||
+thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
||||||
xpcom = { path = "../../../../../xpcom/rust/xpcom" }
|
|
||||||
serde = "1"
|
|
||||||
serde_json = "1"
|
|
||||||
--- thunderbird-78.9.0/toolkit/components/kvstore/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:36:33.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/toolkit/components/kvstore/Cargo.toml 2021-03-22 11:37:44.289130267 +0100
|
|
||||||
@@ -18,7 +18,7 @@ rkv = "0.10.2"
|
|
||||||
storage_variant = { path = "../../../storage/variant" }
|
|
||||||
xpcom = { path = "../../../xpcom/rust/xpcom" }
|
|
||||||
tempfile = "3"
|
|
||||||
-thin-vec = { version = "0.1.0", features = ["gecko-ffi"] }
|
|
||||||
+thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
||||||
|
|
||||||
# Get rid of failure's dependency on backtrace. Eventually
|
|
||||||
# backtrace will move into Rust core, but we don't need it here.
|
|
||||||
--- thunderbird-78.9.0/toolkit/components/places/bookmark_sync/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:36:25.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/toolkit/components/places/bookmark_sync/Cargo.toml 2021-03-22 11:37:44.289130267 +0100
|
|
||||||
@@ -19,5 +19,5 @@ url = "2.0"
|
|
||||||
xpcom = { path = "../../../../xpcom/rust/xpcom" }
|
|
||||||
|
|
||||||
[dependencies.thin-vec]
|
|
||||||
-version = "0.1.0"
|
|
||||||
+version = "0.2.1"
|
|
||||||
features = ["gecko-ffi"]
|
|
||||||
--- thunderbird-78.9.0/tools/profiler/rust-helper/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:36:33.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/tools/profiler/rust-helper/Cargo.toml 2021-03-22 11:37:44.290130265 +0100
|
|
||||||
@@ -23,7 +23,7 @@ features = ["endian_fd", "elf32", "elf64
|
|
||||||
default-features = false
|
|
||||||
|
|
||||||
[dependencies.thin-vec]
|
|
||||||
-version = "0.1.0"
|
|
||||||
+version = "0.2.1"
|
|
||||||
features = ["gecko-ffi"]
|
|
||||||
|
|
||||||
[features]
|
|
||||||
--- thunderbird-78.9.0/xpcom/rust/xpcom/Cargo.toml.D87019-thin-vec-big-endian.diff 2021-03-19 22:36:33.000000000 +0100
|
|
||||||
+++ thunderbird-78.9.0/xpcom/rust/xpcom/Cargo.toml 2021-03-22 11:37:44.291130262 +0100
|
|
||||||
@@ -9,4 +9,4 @@ nsstring = { path = "../nsstring" }
|
|
||||||
nserror = { path = "../nserror" }
|
|
||||||
threadbound = "0.1"
|
|
||||||
xpcom_macros = { path = "xpcom_macros" }
|
|
||||||
-thin-vec = { version = "0.1.0", features = ["gecko-ffi"] }
|
|
||||||
+thin-vec = { version = "0.2.1", features = ["gecko-ffi"] }
|
|
@ -1,118 +0,0 @@
|
|||||||
# HG changeset patch
|
|
||||||
# User Rob Lemley <rob@thunderbird.net>
|
|
||||||
# Date 1662996130 0
|
|
||||||
# Mon Sep 12 15:22:10 2022 +0000
|
|
||||||
# Node ID 5dfb405f325609c62215f9d74e01dba029b84611
|
|
||||||
# Parent 9998ed5c2bcee289b03828eba670053614fa26da
|
|
||||||
Bug 1790446 - Stop rewriting RNP config.h.in when updating the source from upstream. r=dandarnell
|
|
||||||
|
|
||||||
Differential Revision: https://phabricator.services.mozilla.com/D157151
|
|
||||||
|
|
||||||
diff --git a/comm/python/thirdroc/thirdroc/rnp.py b/comm/python/thirdroc/thirdroc/rnp.py
|
|
||||||
--- a/comm/python/thirdroc/thirdroc/rnp.py
|
|
||||||
+++ b/comm/python/thirdroc/thirdroc/rnp.py
|
|
||||||
@@ -11,19 +11,18 @@ import re
|
|
||||||
from packaging.version import parse
|
|
||||||
|
|
||||||
from mozbuild.preprocessor import Preprocessor
|
|
||||||
|
|
||||||
|
|
||||||
-def rnp_source_update(rnp_root, version_str, revision, timestamp, bug_report):
|
|
||||||
+def rnp_source_update(rnp_root, version_str, revision, timestamp):
|
|
||||||
"""
|
|
||||||
Update RNP source files: generate version.h and mangle config.h.in
|
|
||||||
:param rnp_root:
|
|
||||||
:type rnp_root:
|
|
||||||
:param string version_str: latest version
|
|
||||||
:param string revision: revision hash (short form)
|
|
||||||
:param float timestamp: UNIX timestamp from revision
|
|
||||||
- :param string bug_report: where to report bugs for this RNP build
|
|
||||||
"""
|
|
||||||
version = parse(version_str)
|
|
||||||
version_major = version.major
|
|
||||||
version_minor = version.minor
|
|
||||||
version_patch = version.micro
|
|
||||||
@@ -36,20 +35,17 @@ def rnp_source_update(rnp_root, version_
|
|
||||||
RNP_VERSION_MINOR=version_minor,
|
|
||||||
RNP_VERSION_PATCH=version_patch,
|
|
||||||
RNP_VERSION=version_str,
|
|
||||||
RNP_VERSION_FULL=version_full,
|
|
||||||
RNP_VERSION_COMMIT_TIMESTAMP=str(timestamp),
|
|
||||||
- BUGREPORT_EMAIL=bug_report,
|
|
||||||
)
|
|
||||||
src_lib = os.path.join(rnp_root, "src", "lib")
|
|
||||||
version_h_in = os.path.join(src_lib, "version.h.in")
|
|
||||||
version_h = os.path.join(src_lib, "version.h")
|
|
||||||
- config_h_in = os.path.join(src_lib, "config.h.in")
|
|
||||||
readme_rnp = os.path.join(rnp_root, "..", "README.rnp")
|
|
||||||
|
|
||||||
generate_version_h(version_h_in, version_h, defines)
|
|
||||||
- mangle_config_h_in(config_h_in, defines)
|
|
||||||
update_readme(readme_rnp, revision)
|
|
||||||
|
|
||||||
|
|
||||||
def rnp_preprocess(tmpl, dest, defines):
|
|
||||||
"""
|
|
||||||
@@ -79,30 +75,10 @@ def generate_version_h(template, destina
|
|
||||||
with open(template) as tmpl:
|
|
||||||
with open(destination, "w") as dest:
|
|
||||||
rnp_preprocess(tmpl, dest, defines)
|
|
||||||
|
|
||||||
|
|
||||||
-def mangle_config_h_in(template, defines):
|
|
||||||
- """
|
|
||||||
- Mangle RNP's config.h.in so that it will work with CONFIGURE_DEFINE_FILES
|
|
||||||
- :param string template: path to config.h.in
|
|
||||||
- :param dict defines: result of get_defines()
|
|
||||||
- """
|
|
||||||
- with open(template) as tmpl:
|
|
||||||
- tmp_string = StringIO()
|
|
||||||
- rnp_preprocess(tmpl, tmp_string, defines)
|
|
||||||
-
|
|
||||||
- tmp_string.seek(0)
|
|
||||||
-
|
|
||||||
- with open(template, "w") as dest:
|
|
||||||
- for line in tmp_string:
|
|
||||||
- if line.startswith("#cmakedefine"):
|
|
||||||
- line = line.replace("#cmakedefine", "#undef")
|
|
||||||
- dest.write(line)
|
|
||||||
- dest.write("\n")
|
|
||||||
-
|
|
||||||
-
|
|
||||||
def update_readme(path, revision):
|
|
||||||
"""
|
|
||||||
Updates the commit hash in README.rnp
|
|
||||||
:param string path: Path to README.rnp
|
|
||||||
:param string revision: revision to insert
|
|
||||||
diff --git a/comm/third_party/update_rnp.sh b/comm/third_party/update_rnp.sh
|
|
||||||
--- a/comm/third_party/update_rnp.sh
|
|
||||||
+++ b/comm/third_party/update_rnp.sh
|
|
||||||
@@ -42,26 +42,23 @@ TAGLIST=$(git -C "${RNPgit}" tag --list
|
|
||||||
|
|
||||||
LATEST_VERSION=$($THIRDROC latest_version $TAGLIST)
|
|
||||||
REVISION=$(git -C "${RNPgit}" rev-parse --verify HEAD)
|
|
||||||
TIMESTAMP=$(git -C "${RNPgit}" show -s --format=%ct)
|
|
||||||
|
|
||||||
-BUGREPORT="https://bugzilla.mozilla.org/enter_bug.cgi?product=Thunderbird"
|
|
||||||
-
|
|
||||||
# Cleanup rnp checkout
|
|
||||||
rm -rf ${RNPgit}/{.git,.github,.cirrus.yml,.clang-format,.gitignore}
|
|
||||||
rm -rf ${RNPgit}/{_config.yml,docker.sh,ci,cmake,git-hooks,travis.sh,vcpkg.txt}
|
|
||||||
rm -rf ${RNPgit}/{Brewfile,CMakeLists.txt,CMakeSettings.json}
|
|
||||||
|
|
||||||
# Do the switch
|
|
||||||
rm -rf rnp
|
|
||||||
mv "${RNPgit}" rnp
|
|
||||||
-# Build version.h/config.h.in
|
|
||||||
+# Build version.h
|
|
||||||
$THIRDROC rnp_source_update rnp/ \
|
|
||||||
"${LATEST_VERSION}" \
|
|
||||||
"${REVISION}" \
|
|
||||||
- "${TIMESTAMP}" \
|
|
||||||
- "${BUGREPORT}"
|
|
||||||
+ "${TIMESTAMP}"
|
|
||||||
|
|
||||||
# Restore moz.build
|
|
||||||
hg revert rnp/moz.build rnp/module.ver rnp/rnp.symbols rnp/src/lib/rnp/rnp_export.h \
|
|
||||||
rnp/src/rnp/moz.build rnp/src/rnpkeys/moz.build
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
|||||||
diff -up firefox-72.0/gfx/skia/skia/include/private/SkHalf.h.aarch64-skia firefox-72.0/gfx/skia/skia/include/private/SkHalf.h
|
|
||||||
--- firefox-72.0/gfx/skia/skia/include/private/SkHalf.h.aarch64-skia 2020-01-02 22:33:02.000000000 +0100
|
|
||||||
+++ firefox-72.0/gfx/skia/skia/include/private/SkHalf.h 2020-01-03 09:00:37.537296105 +0100
|
|
||||||
@@ -40,7 +40,7 @@ static inline Sk4h SkFloatToHalf_finite_
|
|
||||||
|
|
||||||
static inline Sk4f SkHalfToFloat_finite_ftz(uint64_t rgba) {
|
|
||||||
Sk4h hs = Sk4h::Load(&rgba);
|
|
||||||
-#if !defined(SKNX_NO_SIMD) && defined(SK_CPU_ARM64)
|
|
||||||
+#if 0 // !defined(SKNX_NO_SIMD) && defined(SK_CPU_ARM64)
|
|
||||||
float32x4_t fs;
|
|
||||||
asm ("fcvtl %[fs].4s, %[hs].4h \n" // vcvt_f32_f16(...)
|
|
||||||
: [fs] "=w" (fs) // =w: write-only NEON register
|
|
||||||
@@ -62,7 +62,7 @@ static inline Sk4f SkHalfToFloat_finite_
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline Sk4h SkFloatToHalf_finite_ftz(const Sk4f& fs) {
|
|
||||||
-#if !defined(SKNX_NO_SIMD) && defined(SK_CPU_ARM64)
|
|
||||||
+#if 0 // !defined(SKNX_NO_SIMD) && defined(SK_CPU_ARM64)
|
|
||||||
float32x4_t vec = fs.fVec;
|
|
||||||
asm ("fcvtn %[vec].4h, %[vec].4s \n" // vcvt_f16_f32(vec)
|
|
||||||
: [vec] "+w" (vec)); // +w: read-write NEON register
|
|
||||||
diff -up firefox-72.0/gfx/skia/skia/src/opts/SkRasterPipeline_opts.h.aarch64-skia firefox-72.0/gfx/skia/skia/src/opts/SkRasterPipeline_opts.h
|
|
||||||
--- firefox-72.0/gfx/skia/skia/src/opts/SkRasterPipeline_opts.h.aarch64-skia 2020-01-03 09:00:37.538296107 +0100
|
|
||||||
+++ firefox-72.0/gfx/skia/skia/src/opts/SkRasterPipeline_opts.h 2020-01-03 10:11:41.259219508 +0100
|
|
||||||
@@ -1087,7 +1087,7 @@ SI F from_half(U16 h) {
|
|
||||||
}
|
|
||||||
|
|
||||||
SI U16 to_half(F f) {
|
|
||||||
-#if defined(JUMPER_IS_NEON) && defined(SK_CPU_ARM64) \
|
|
||||||
+#if 0 //defined(JUMPER_IS_NEON) && defined(SK_CPU_ARM64) \
|
|
||||||
&& !defined(SK_BUILD_FOR_GOOGLE3) // Temporary workaround for some Google3 builds.
|
|
||||||
return vcvt_f16_f32(f);
|
|
||||||
|
|
||||||
diff -up firefox-72.0/gfx/skia/skia/third_party/skcms/src/Transform_inl.h.aarch64-skia firefox-72.0/gfx/skia/skia/third_party/skcms/src/Transform_inl.h
|
|
||||||
--- firefox-72.0/gfx/skia/skia/third_party/skcms/src/Transform_inl.h.aarch64-skia 2020-01-03 09:00:37.538296107 +0100
|
|
||||||
+++ firefox-72.0/gfx/skia/skia/third_party/skcms/src/Transform_inl.h 2020-01-03 10:11:53.513250979 +0100
|
|
||||||
@@ -183,8 +183,6 @@ SI F F_from_Half(U16 half) {
|
|
||||||
SI U16 Half_from_F(F f) {
|
|
||||||
#if defined(USING_NEON_FP16)
|
|
||||||
return bit_pun<U16>(f);
|
|
||||||
-#elif defined(USING_NEON_F16C)
|
|
||||||
- return (U16)vcvt_f16_f32(f);
|
|
||||||
#elif defined(USING_AVX512F)
|
|
||||||
return (U16)_mm512_cvtps_ph((__m512 )f, _MM_FROUND_CUR_DIRECTION );
|
|
||||||
#elif defined(USING_AVX_F16C)
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -up firefox-73.0/media/libaom/moz.build.old firefox-73.0/media/libaom/moz.build
|
|
||||||
--- firefox-73.0/media/libaom/moz.build.old 2020-02-07 23:13:28.000000000 +0200
|
|
||||||
+++ firefox-73.0/media/libaom/moz.build 2020-02-17 10:30:08.509805092 +0200
|
|
||||||
@@ -55,7 +55,7 @@ elif CONFIG['CPU_ARCH'] == 'arm':
|
|
||||||
|
|
||||||
for f in SOURCES:
|
|
||||||
if f.endswith('neon.c'):
|
|
||||||
- SOURCES[f].flags += CONFIG['VPX_ASFLAGS']
|
|
||||||
+ SOURCES[f].flags += CONFIG['NEON_FLAGS']
|
|
||||||
|
|
||||||
if CONFIG['OS_TARGET'] == 'Android':
|
|
||||||
# For cpu-features.h
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -up firefox-66.0/media/libopus/silk/arm/arm_silk_map.c.old firefox-66.0/media/libopus/silk/arm/arm_silk_map.c
|
|
||||||
--- firefox-66.0/media/libopus/silk/arm/arm_silk_map.c.old 2019-03-12 21:07:35.356677522 +0100
|
|
||||||
+++ firefox-66.0/media/libopus/silk/arm/arm_silk_map.c 2019-03-12 21:07:42.937693394 +0100
|
|
||||||
@@ -28,7 +28,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
# include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#include "main_FIX.h"
|
|
||||||
+#include "fixed/main_FIX.h"
|
|
||||||
#include "NSQ.h"
|
|
||||||
#include "SigProc_FIX.h"
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
|||||||
diff -up firefox-102.0/third_party/python/PyYAML/lib3/yaml/reader.py.build-ascii-decode-fail-rhel7 firefox-102.0/third_party/python/PyYAML/lib3/yaml/reader.py
|
|
||||||
--- firefox-102.0/third_party/python/PyYAML/lib3/yaml/reader.py.build-ascii-decode-fail-rhel7 2022-06-23 09:11:39.000000000 +0200
|
|
||||||
+++ firefox-102.0/third_party/python/PyYAML/lib3/yaml/reader.py 2022-08-16 13:24:31.697757209 +0200
|
|
||||||
@@ -73,6 +73,8 @@ class Reader(object):
|
|
||||||
self.name = "<unicode string>"
|
|
||||||
self.check_printable(stream)
|
|
||||||
self.buffer = stream+'\0'
|
|
||||||
+ #self.encoding = 'utf-8'
|
|
||||||
+ #self.raw_decode = codecs.utf_8_decode
|
|
||||||
elif isinstance(stream, bytes):
|
|
||||||
self.name = "<byte string>"
|
|
||||||
self.raw_buffer = stream
|
|
||||||
@@ -83,6 +85,11 @@ class Reader(object):
|
|
||||||
self.eof = False
|
|
||||||
self.raw_buffer = None
|
|
||||||
self.determine_encoding()
|
|
||||||
+ print("DEBUG_OUTPUT:")
|
|
||||||
+ print(self.name)
|
|
||||||
+ print(self.encoding)
|
|
||||||
+ print(self.stream)
|
|
||||||
+ #print(self.stream.read())
|
|
||||||
|
|
||||||
def peek(self, index=0):
|
|
||||||
try:
|
|
||||||
diff -up firefox-102.0/toolkit/components/nimbus/generate/generate_feature_manifest.py.build-ascii-decode-fail-rhel7 firefox-102.0/toolkit/components/nimbus/generate/generate_feature_manifest.py
|
|
||||||
--- firefox-102.0/toolkit/components/nimbus/generate/generate_feature_manifest.py.build-ascii-decode-fail-rhel7 2022-08-16 14:16:33.432529817 +0200
|
|
||||||
+++ firefox-102.0/toolkit/components/nimbus/generate/generate_feature_manifest.py 2022-08-17 08:01:38.175878171 +0200
|
|
||||||
@@ -37,7 +37,7 @@ def generate_feature_manifest(fd, input_
|
|
||||||
write_fm_js_headers(fd)
|
|
||||||
nimbus_dir_path = pathlib.Path(input_file).parent
|
|
||||||
try:
|
|
||||||
- with open(input_file, "r") as yaml_input:
|
|
||||||
+ with open(input_file, "r", encoding="utf-8") as yaml_input:
|
|
||||||
data = yaml.safe_load(yaml_input)
|
|
||||||
with pathlib.Path(nimbus_dir_path, FEATURE_MANIFEST_SCHEMA).open() as f:
|
|
||||||
schema = json.load(f)
|
|
||||||
@@ -92,7 +92,7 @@ def generate_platform_feature_manifest(f
|
|
||||||
)
|
|
||||||
|
|
||||||
try:
|
|
||||||
- with open(input_file, "r") as yaml_input:
|
|
||||||
+ with open(input_file, "r", encoding="utf-8") as yaml_input:
|
|
||||||
data = yaml.safe_load(yaml_input)
|
|
||||||
fd.write(file_structure(data))
|
|
||||||
except (IOError) as e:
|
|
@ -1,12 +1,12 @@
|
|||||||
diff -up firefox-97.0/toolkit/moz.configure.disable-elfhack firefox-97.0/toolkit/moz.configure
|
diff -up firefox-115.0.2/toolkit/moz.configure.disable-elfhack firefox-115.0.2/toolkit/moz.configure
|
||||||
--- firefox-97.0/toolkit/moz.configure.disable-elfhack 2022-02-08 09:58:47.518047952 +0100
|
--- firefox-115.0.2/toolkit/moz.configure.disable-elfhack 2023-07-18 12:21:22.507358334 +0200
|
||||||
+++ firefox-97.0/toolkit/moz.configure 2022-02-08 10:17:49.552945956 +0100
|
+++ firefox-115.0.2/toolkit/moz.configure 2023-07-18 12:52:55.972727498 +0200
|
||||||
@@ -1273,7 +1273,7 @@ with only_when("--enable-compile-environ
|
@@ -1520,7 +1520,7 @@ with only_when("--enable-compile-environ
|
||||||
help="{Enable|Disable} elf hacks",
|
"Cannot enable elfhack with lld."
|
||||||
)
|
" Use --enable-linker=bfd, --enable-linker=gold, or --disable-elf-hack"
|
||||||
|
)
|
||||||
|
- return True
|
||||||
|
+ return False
|
||||||
|
|
||||||
- set_config("USE_ELF_HACK", depends_if("--enable-elf-hack")(lambda _: True))
|
set_config("USE_ELF_HACK", use_elf_hack)
|
||||||
+ set_config("USE_ELF_HACK", depends_if("--enable-elf-hack")(lambda _: False))
|
|
||||||
|
|
||||||
|
|
||||||
@depends(build_environment)
|
|
||||||
|
12
build-ppc64-abiv2.patch
Normal file
12
build-ppc64-abiv2.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up firefox-115.0.2/security/nss/lib/freebl/sha512-p8.s.ppc-abiv2 firefox-115.0.2/security/nss/lib/freebl/sha512-p8.s
|
||||||
|
--- firefox-115.0.2/security/nss/lib/freebl/sha512-p8.s.ppc-abiv2 2023-07-25 09:01:42.602375809 +0200
|
||||||
|
+++ firefox-115.0.2/security/nss/lib/freebl/sha512-p8.s 2023-07-25 09:01:48.273373924 +0200
|
||||||
|
@@ -3,7 +3,7 @@
|
||||||
|
# See the full LICENSE under scripts/.
|
||||||
|
|
||||||
|
.machine "any"
|
||||||
|
-.abiversion 2
|
||||||
|
+.abiversion 1
|
||||||
|
.text
|
||||||
|
|
||||||
|
.globl sha512_block_p8
|
@ -1,49 +0,0 @@
|
|||||||
diff -up firefox-102.0/media/ffvpx/config_common.h.dav1d-remove firefox-102.0/media/ffvpx/config_common.h
|
|
||||||
--- firefox-102.0/media/ffvpx/config_common.h.dav1d-remove 2022-08-08 12:48:33.218128539 +0200
|
|
||||||
+++ firefox-102.0/media/ffvpx/config_common.h 2022-08-08 12:48:52.986003374 +0200
|
|
||||||
@@ -24,15 +24,11 @@
|
|
||||||
#undef CONFIG_VP8_VAAPI_HWACCEL
|
|
||||||
#undef CONFIG_VP9_VAAPI_HWACCEL
|
|
||||||
#undef CONFIG_AV1_VAAPI_HWACCEL
|
|
||||||
-#undef CONFIG_LIBDAV1D
|
|
||||||
-#undef CONFIG_AV1_DECODER
|
|
||||||
#define CONFIG_VAAPI 1
|
|
||||||
#define CONFIG_VAAPI_1 1
|
|
||||||
#define CONFIG_VP8_VAAPI_HWACCEL 1
|
|
||||||
#define CONFIG_VP9_VAAPI_HWACCEL 1
|
|
||||||
#define CONFIG_AV1_VAAPI_HWACCEL 1
|
|
||||||
-#define CONFIG_LIBDAV1D 1
|
|
||||||
-#define CONFIG_AV1_DECODER 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
diff -up firefox-102.0/media/ffvpx/libavcodec/moz.build.dav1d-remove firefox-102.0/media/ffvpx/libavcodec/moz.build
|
|
||||||
--- firefox-102.0/media/ffvpx/libavcodec/moz.build.dav1d-remove 2022-08-08 12:44:24.098710736 +0200
|
|
||||||
+++ firefox-102.0/media/ffvpx/libavcodec/moz.build 2022-08-08 12:46:42.635828719 +0200
|
|
||||||
@@ -104,17 +104,23 @@ if not CONFIG['MOZ_FFVPX_AUDIOONLY']:
|
|
||||||
]
|
|
||||||
if CONFIG['MOZ_WAYLAND']:
|
|
||||||
LOCAL_INCLUDES += ['/media/mozva']
|
|
||||||
+ if CONFIG['MOZ_DAV1D_ASM']:
|
|
||||||
+ SOURCES += [
|
|
||||||
+ 'libdav1d.c',
|
|
||||||
+ ]
|
|
||||||
SOURCES += [
|
|
||||||
'atsc_a53.c',
|
|
||||||
- 'libdav1d.c',
|
|
||||||
'vaapi_av1.c',
|
|
||||||
'vaapi_decode.c',
|
|
||||||
'vaapi_vp8.c',
|
|
||||||
'vaapi_vp9.c',
|
|
||||||
]
|
|
||||||
+ if CONFIG['MOZ_DAV1D_ASM']:
|
|
||||||
+ USE_LIBS += [
|
|
||||||
+ 'dav1d',
|
|
||||||
+ 'media_libdav1d_asm',
|
|
||||||
+ ]
|
|
||||||
USE_LIBS += [
|
|
||||||
- 'dav1d',
|
|
||||||
- 'media_libdav1d_asm',
|
|
||||||
'mozva'
|
|
||||||
]
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
--- thunderbird-102.4.0/python/mozbuild/mozbuild/nodeutil.py.build-rhel7-lower-node-min-version 2022-10-14 21:42:10.000000000 +0200
|
--- firefox-102.4.0/python/mozbuild/mozbuild/nodeutil.py.lower-node-min-version 2022-10-10 17:55:56.000000000 +0200
|
||||||
+++ thunderbird-102.4.0/python/mozbuild/mozbuild/nodeutil.py 2022-10-17 18:49:44.490667820 +0200
|
+++ firefox-102.4.0/python/mozbuild/mozbuild/nodeutil.py 2022-10-17 14:57:47.476182627 +0200
|
||||||
@@ -13,7 +13,7 @@ from mozboot.util import get_tools_dir
|
@@ -13,7 +13,7 @@ from mozboot.util import get_tools_dir
|
||||||
from mozfile import which
|
from mozfile import which
|
||||||
from six import PY3
|
from six import PY3
|
||||||
|
|
||||||
-NODE_MIN_VERSION = StrictVersion("10.24.1")
|
-NODE_MIN_VERSION = StrictVersion("12.22.12")
|
||||||
+NODE_MIN_VERSION = StrictVersion("10.24.0")
|
+NODE_MIN_VERSION = StrictVersion("10.24.0")
|
||||||
NPM_MIN_VERSION = StrictVersion("6.14.12")
|
NPM_MIN_VERSION = StrictVersion("6.14.16")
|
||||||
|
|
||||||
|
|
||||||
|
12
build-tb-rnp-openssl.patch
Normal file
12
build-tb-rnp-openssl.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up thunderbird-115.1.0/comm/third_party/rnp/moz.build.rnp-openssl thunderbird-115.1.0/comm/third_party/rnp/moz.build
|
||||||
|
--- thunderbird-115.1.0/comm/third_party/rnp/moz.build.rnp-openssl 2023-08-07 16:38:39.272780256 +0200
|
||||||
|
+++ thunderbird-115.1.0/comm/third_party/rnp/moz.build 2023-08-07 16:38:42.822780087 +0200
|
||||||
|
@@ -93,7 +93,7 @@ elif CONFIG["MZLA_LIBRNP_BACKEND"] == "o
|
||||||
|
# Supported, but not with RHEL's OpenSSL, disabled for now;
|
||||||
|
"ENABLE_BRAINPOOL": False,
|
||||||
|
})
|
||||||
|
- rnp_defines["PACKAGE_STRING"] = rnp_defines["PACKAGE_STRING"][:-1] + '-openssl"'
|
||||||
|
+ #rnp_defines["PACKAGE_STRING"] = rnp_defines["PACKAGE_STRING"][:-1] + '-openssl"'
|
||||||
|
if CONFIG["MZLA_LIBRNP_OPENSSL_VERSION"][0] == "3":
|
||||||
|
rnp_defines["CRYPTO_BACKEND_OPENSSL3"] = True
|
||||||
|
|
@ -1,39 +0,0 @@
|
|||||||
diff -up firefox-81.0/toolkit/modules/GMPInstallManager.jsm.old firefox-81.0/toolkit/modules/GMPInstallManager.jsm
|
|
||||||
--- firefox-81.0/toolkit/modules/GMPInstallManager.jsm.old 2020-09-25 10:39:04.769458703 +0200
|
|
||||||
+++ firefox-81.0/toolkit/modules/GMPInstallManager.jsm 2020-09-25 10:39:22.038504747 +0200
|
|
||||||
@@ -54,10 +54,6 @@ function getScopedLogger(prefix) {
|
|
||||||
|
|
||||||
const LOCAL_GMP_SOURCES = [
|
|
||||||
{
|
|
||||||
- id: "gmp-gmpopenh264",
|
|
||||||
- src: "chrome://global/content/gmp-sources/openh264.json",
|
|
||||||
- },
|
|
||||||
- {
|
|
||||||
id: "gmp-widevinecdm",
|
|
||||||
src: "chrome://global/content/gmp-sources/widevinecdm.json",
|
|
||||||
},
|
|
||||||
diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn
|
|
||||||
--- a/toolkit/content/jar.mn
|
|
||||||
+++ b/toolkit/content/jar.mn
|
|
||||||
@@ -108,7 +108,6 @@ toolkit.jar:
|
|
||||||
#ifdef XP_MACOSX
|
|
||||||
content/global/macWindowMenu.js
|
|
||||||
#endif
|
|
||||||
- content/global/gmp-sources/openh264.json (gmp-sources/openh264.json)
|
|
||||||
content/global/gmp-sources/widevinecdm.json (gmp-sources/widevinecdm.json)
|
|
||||||
|
|
||||||
# Third party files
|
|
||||||
diff --git a/toolkit/modules/GMPInstallManager.jsm b/toolkit/modules/GMPInstallManager.jsm
|
|
||||||
--- a/toolkit/modules/GMPInstallManager.jsm
|
|
||||||
+++ b/toolkit/modules/GMPInstallManager.jsm
|
|
||||||
@@ -238,6 +234,9 @@ GMPInstallManager.prototype = {
|
|
||||||
* downloaderr, verifyerr or previouserrorencountered
|
|
||||||
*/
|
|
||||||
installAddon(gmpAddon) {
|
|
||||||
+ if (gmpAddon.isOpenH264) {
|
|
||||||
+ return Promise.reject({ type: "disabled" });
|
|
||||||
+ }
|
|
||||||
if (this._deferred) {
|
|
||||||
let log = getScopedLogger("GMPInstallManager.installAddon");
|
|
||||||
log.error("previous error encountered");
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
|||||||
diff -up firefox-73.0/build/unix/run-mozilla.sh.old firefox-73.0/build/unix/run-mozilla.sh
|
|
||||||
--- firefox-73.0/build/unix/run-mozilla.sh.old 2020-02-12 09:58:00.150895904 +0100
|
|
||||||
+++ firefox-73.0/build/unix/run-mozilla.sh 2020-02-12 09:58:06.505860696 +0100
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-#!/bin/sh
|
|
||||||
+#!/usr/bin/sh
|
|
||||||
#
|
|
||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
@ -1,11 +0,0 @@
|
|||||||
--- thunderbird-102.6.0/build/moz.configure/nss.configure.firefox-nss-version 2022-12-09 19:00:45.849518718 +0100
|
|
||||||
+++ thunderbird-102.6.0/build/moz.configure/nss.configure 2022-12-09 19:02:47.739198796 +0100
|
|
||||||
@@ -9,7 +9,7 @@ system_lib_option("--with-system-nss", h
|
|
||||||
imply_option("--with-system-nspr", True, when="--with-system-nss")
|
|
||||||
|
|
||||||
nss_pkg = pkg_check_modules(
|
|
||||||
- "NSS", "nss >= 3.79.2", when="--with-system-nss", config=False
|
|
||||||
+ "NSS", "nss >= 3.79", when="--with-system-nss", config=False
|
|
||||||
)
|
|
||||||
|
|
||||||
set_config("MOZ_SYSTEM_NSS", True, when="--with-system-nss")
|
|
@ -1,6 +1,6 @@
|
|||||||
--- !Policy
|
--- !Policy
|
||||||
product_versions:
|
product_versions:
|
||||||
- rhel-9
|
- rhel-8
|
||||||
decision_context: osci_compose_gate
|
decision_context: osci_compose_gate
|
||||||
rules:
|
rules:
|
||||||
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}
|
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}
|
||||||
|
14
get_rust_bundled_provides.sh
Executable file
14
get_rust_bundled_provides.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Get the list of the compiled bundled rust crates.
|
||||||
|
# Usage: $0 build.log
|
||||||
|
|
||||||
|
if [ -z $1 ]; then
|
||||||
|
echo Get the list of the compiled bundled rust crates.
|
||||||
|
echo Usage: $0 build.log
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
while read LINE; do
|
||||||
|
name=`echo $LINE | cut -d\ -f1`
|
||||||
|
version=`echo $LINE | cut -d\ -f2|sed -e 's/^v//g'`
|
||||||
|
echo "Provides: bundled(crate($name)) = $version"
|
||||||
|
done < <(cat $1 |grep "[0-9]\+[ ]*Compiling [a-z]"|sed -e 's/.*Compiling //'g| sort|uniq)
|
@ -1,15 +0,0 @@
|
|||||||
diff -up firefox-84.0/security/sandbox/linux/moz.build.1516803 firefox-84.0/security/sandbox/linux/moz.build
|
|
||||||
--- firefox-84.0/security/sandbox/linux/moz.build.1516803 2020-12-10 16:17:55.425139545 +0100
|
|
||||||
+++ firefox-84.0/security/sandbox/linux/moz.build 2020-12-10 16:29:21.945860841 +0100
|
|
||||||
@@ -114,9 +114,8 @@ if CONFIG["CC_TYPE"] in ("clang", "gcc")
|
|
||||||
# gcc lto likes to put the top level asm in syscall.cc in a different partition
|
|
||||||
# from the function using it which breaks the build. Work around that by
|
|
||||||
# forcing there to be only one partition.
|
|
||||||
-for f in CONFIG["OS_CXXFLAGS"]:
|
|
||||||
- if f.startswith("-flto") and CONFIG["CC_TYPE"] != "clang":
|
|
||||||
- LDFLAGS += ["--param lto-partitions=1"]
|
|
||||||
+if CONFIG['CC_TYPE'] != 'clang':
|
|
||||||
+ LDFLAGS += ['--param', 'lto-partitions=1']
|
|
||||||
|
|
||||||
DEFINES["NS_NO_XPCOM"] = True
|
|
||||||
DisableStlWrapping()
|
|
@ -1,14 +0,0 @@
|
|||||||
--- firefox-81.0.1/build/mach_initialize.py.old 2020-10-06 14:16:06.212974910 +0200
|
|
||||||
+++ firefox-81.0.1/build/mach_initialize.py 2020-10-06 14:19:03.313179557 +0200
|
|
||||||
@@ -507,7 +507,10 @@ class ImportHook(object):
|
|
||||||
# doesn't happen or because it doesn't matter).
|
|
||||||
if not os.path.exists(module.__file__[:-1]):
|
|
||||||
if os.path.exists(module.__file__):
|
|
||||||
- os.remove(module.__file__)
|
|
||||||
+ try:
|
|
||||||
+ os.remove(module.__file__)
|
|
||||||
+ except:
|
|
||||||
+ pass
|
|
||||||
del sys.modules[module.__name__]
|
|
||||||
module = self(name, globals, locals, fromlist, level)
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
diff --git a/third_party/libwebrtc/moz.build b/third_party/libwebrtc/moz.build
|
|
||||||
index 8579f8bb3622..d9ca79d4fcb8 100644
|
|
||||||
--- a/third_party/libwebrtc/moz.build
|
|
||||||
+++ b/third_party/libwebrtc/moz.build
|
|
||||||
@@ -520,7 +520,10 @@ if CONFIG["CPU_ARCH"] == "ppc64" and CONFIG["OS_TARGET"] == "Linux":
|
|
||||||
"/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
|
|
||||||
"/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
|
|
||||||
"/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
|
|
||||||
- "/third_party/libwebrtc/modules/audio_coding/isac_gn"
|
|
||||||
+ "/third_party/libwebrtc/modules/audio_coding/isac_gn",
|
|
||||||
+ "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn",
|
|
||||||
+ "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
|
|
||||||
+ "/third_party/libwebrtc/modules/desktop_capture/primitives_gn"
|
|
||||||
]
|
|
||||||
|
|
||||||
if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
# HG changeset patch
|
|
||||||
# User Steve Singer <steve@ssinger.info>
|
|
||||||
# Date 1558451540 -7200
|
|
||||||
# Tue May 21 17:12:20 2019 +0200
|
|
||||||
# Node ID 433beec63e6b5f409683af20a0c1ab137cc7bfad
|
|
||||||
# Parent c0fdccc716e80a6d289c94f5d507ae141c62a3bf
|
|
||||||
Bug 1005535 - Get skia GPU building on big endian.
|
|
||||||
|
|
||||||
diff --git a/gfx/skia/skia/src/gpu/GrColor.h b/gfx/skia/skia/src/gpu/GrColor.h
|
|
||||||
--- a/gfx/skia/skia/src/gpu/GrColor.h
|
|
||||||
+++ b/gfx/skia/skia/src/gpu/GrColor.h
|
|
||||||
@@ -59,17 +59,17 @@ static inline GrColor GrColorPackRGBA(un
|
|
||||||
#define GrColorUnpackG(color) (((color) >> GrColor_SHIFT_G) & 0xFF)
|
|
||||||
#define GrColorUnpackB(color) (((color) >> GrColor_SHIFT_B) & 0xFF)
|
|
||||||
#define GrColorUnpackA(color) (((color) >> GrColor_SHIFT_A) & 0xFF)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Since premultiplied means that alpha >= color, we construct a color with
|
|
||||||
* each component==255 and alpha == 0 to be "illegal"
|
|
||||||
*/
|
|
||||||
-#define GrColor_ILLEGAL (~(0xFF << GrColor_SHIFT_A))
|
|
||||||
+#define GrColor_ILLEGAL ((uint32_t)(~(0xFF << GrColor_SHIFT_A)))
|
|
||||||
|
|
||||||
/** Normalizes and coverts an uint8_t to a float. [0, 255] -> [0.0, 1.0] */
|
|
||||||
static inline float GrNormalizeByteToFloat(uint8_t value) {
|
|
||||||
static const float ONE_OVER_255 = 1.f / 255.f;
|
|
||||||
return value * ONE_OVER_255;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Used to pick vertex attribute types. */
|
|
@ -1,7 +1,7 @@
|
|||||||
diff -up firefox-87.0/extensions/pref/autoconfig/src/nsReadConfig.cpp.1170092 firefox-87.0/extensions/pref/autoconfig/src/nsReadConfig.cpp
|
diff -up firefox-115.0.2/extensions/pref/autoconfig/src/nsReadConfig.cpp.1170092 firefox-115.0.2/extensions/pref/autoconfig/src/nsReadConfig.cpp
|
||||||
--- firefox-87.0/extensions/pref/autoconfig/src/nsReadConfig.cpp.1170092 2021-03-18 14:48:36.000000000 +0100
|
--- firefox-115.0.2/extensions/pref/autoconfig/src/nsReadConfig.cpp.1170092 2023-07-10 21:08:53.000000000 +0200
|
||||||
+++ firefox-87.0/extensions/pref/autoconfig/src/nsReadConfig.cpp 2021-03-22 19:20:02.429310184 +0100
|
+++ firefox-115.0.2/extensions/pref/autoconfig/src/nsReadConfig.cpp 2023-07-17 10:33:23.443355156 +0200
|
||||||
@@ -249,8 +249,20 @@ nsresult nsReadConfig::openAndEvaluateJS
|
@@ -263,8 +263,20 @@ nsresult nsReadConfig::openAndEvaluateJS
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
|
||||||
rv = NS_NewLocalFileInputStream(getter_AddRefs(inStr), jsFile);
|
rv = NS_NewLocalFileInputStream(getter_AddRefs(inStr), jsFile);
|
||||||
@ -23,10 +23,10 @@ diff -up firefox-87.0/extensions/pref/autoconfig/src/nsReadConfig.cpp.1170092 fi
|
|||||||
} else {
|
} else {
|
||||||
nsAutoCString location("resource://gre/defaults/autoconfig/");
|
nsAutoCString location("resource://gre/defaults/autoconfig/");
|
||||||
location += aFileName;
|
location += aFileName;
|
||||||
diff -up firefox-87.0/modules/libpref/Preferences.cpp.1170092 firefox-87.0/modules/libpref/Preferences.cpp
|
diff -up firefox-115.0.2/modules/libpref/Preferences.cpp.1170092 firefox-115.0.2/modules/libpref/Preferences.cpp
|
||||||
--- firefox-87.0/modules/libpref/Preferences.cpp.1170092 2021-03-18 14:48:54.000000000 +0100
|
--- firefox-115.0.2/modules/libpref/Preferences.cpp.1170092 2023-07-10 21:09:00.000000000 +0200
|
||||||
+++ firefox-87.0/modules/libpref/Preferences.cpp 2021-03-22 19:20:02.429310184 +0100
|
+++ firefox-115.0.2/modules/libpref/Preferences.cpp 2023-07-17 10:33:23.444355156 +0200
|
||||||
@@ -4499,6 +4499,9 @@ nsresult Preferences::InitInitialObjects
|
@@ -4825,6 +4825,9 @@ nsresult Preferences::InitInitialObjects
|
||||||
//
|
//
|
||||||
// Thus, in the omni.jar case, we always load app-specific default
|
// Thus, in the omni.jar case, we always load app-specific default
|
||||||
// preferences from omni.jar, whether or not `$app == $gre`.
|
// preferences from omni.jar, whether or not `$app == $gre`.
|
||||||
@ -36,10 +36,10 @@ diff -up firefox-87.0/modules/libpref/Preferences.cpp.1170092 firefox-87.0/modul
|
|||||||
|
|
||||||
nsresult rv = NS_ERROR_FAILURE;
|
nsresult rv = NS_ERROR_FAILURE;
|
||||||
UniquePtr<nsZipFind> find;
|
UniquePtr<nsZipFind> find;
|
||||||
diff -up firefox-87.0/toolkit/xre/nsXREDirProvider.cpp.1170092 firefox-87.0/toolkit/xre/nsXREDirProvider.cpp
|
diff -up firefox-115.0.2/toolkit/xre/nsXREDirProvider.cpp.1170092 firefox-115.0.2/toolkit/xre/nsXREDirProvider.cpp
|
||||||
--- firefox-87.0/toolkit/xre/nsXREDirProvider.cpp.1170092 2021-03-18 14:52:00.000000000 +0100
|
--- firefox-115.0.2/toolkit/xre/nsXREDirProvider.cpp.1170092 2023-07-10 22:57:20.000000000 +0200
|
||||||
+++ firefox-87.0/toolkit/xre/nsXREDirProvider.cpp 2021-03-22 19:37:56.574480347 +0100
|
+++ firefox-115.0.2/toolkit/xre/nsXREDirProvider.cpp 2023-07-17 10:56:25.309692121 +0200
|
||||||
@@ -65,6 +65,7 @@
|
@@ -72,6 +72,7 @@
|
||||||
#endif
|
#endif
|
||||||
#ifdef XP_UNIX
|
#ifdef XP_UNIX
|
||||||
# include <ctype.h>
|
# include <ctype.h>
|
||||||
@ -47,13 +47,11 @@ diff -up firefox-87.0/toolkit/xre/nsXREDirProvider.cpp.1170092 firefox-87.0/tool
|
|||||||
#endif
|
#endif
|
||||||
#ifdef XP_IOS
|
#ifdef XP_IOS
|
||||||
# include "UIKitDirProvider.h"
|
# include "UIKitDirProvider.h"
|
||||||
@@ -552,6 +553,21 @@ nsXREDirProvider::GetFile(const char* aP
|
@@ -478,6 +479,17 @@ nsXREDirProvider::GetFile(const char* aP
|
||||||
}
|
rv = file->AppendNative(nsLiteralCString(PREF_OVERRIDE_DIRNAME));
|
||||||
}
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
}
|
rv = EnsureDirectoryExists(file);
|
||||||
+
|
+ } else if (!strcmp(aProperty, NS_APP_PREFS_SYSTEM_CONFIG_DIR)) {
|
||||||
+#if defined(XP_UNIX)
|
|
||||||
+ if (!strcmp(aProperty, NS_APP_PREFS_SYSTEM_CONFIG_DIR)) {
|
|
||||||
+ nsCString sysConfigDir = nsLiteralCString("/etc/");
|
+ nsCString sysConfigDir = nsLiteralCString("/etc/");
|
||||||
+ nsCOMPtr<nsIXULAppInfo> appInfo = do_GetService("@mozilla.org/xre/app-info;1");
|
+ nsCOMPtr<nsIXULAppInfo> appInfo = do_GetService("@mozilla.org/xre/app-info;1");
|
||||||
+ if (!appInfo)
|
+ if (!appInfo)
|
||||||
@ -62,14 +60,12 @@ diff -up firefox-87.0/toolkit/xre/nsXREDirProvider.cpp.1170092 firefox-87.0/tool
|
|||||||
+ appInfo->GetName(appName);
|
+ appInfo->GetName(appName);
|
||||||
+ ToLowerCase(appName);
|
+ ToLowerCase(appName);
|
||||||
+ sysConfigDir.Append(appName);
|
+ sysConfigDir.Append(appName);
|
||||||
+ return NS_NewNativeLocalFile(sysConfigDir, false, aFile);
|
+ NS_NewNativeLocalFile(sysConfigDir, false, getter_AddRefs(file));
|
||||||
+ }
|
+ rv = EnsureDirectoryExists(file);
|
||||||
+#endif
|
} else {
|
||||||
+
|
// We don't know anything about this property. Fail without warning, because
|
||||||
if (NS_FAILED(rv) || !file) return NS_ERROR_FAILURE;
|
// otherwise we'll get too much warning spam due to
|
||||||
|
@@ -694,6 +706,16 @@ nsXREDirProvider::GetFiles(const char* a
|
||||||
if (ensureFilePermissions) {
|
|
||||||
@@ -874,6 +890,16 @@ nsresult nsXREDirProvider::GetFilesInter
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -86,10 +82,10 @@ diff -up firefox-87.0/toolkit/xre/nsXREDirProvider.cpp.1170092 firefox-87.0/tool
|
|||||||
rv = NS_NewArrayEnumerator(aResult, directories, NS_GET_IID(nsIFile));
|
rv = NS_NewArrayEnumerator(aResult, directories, NS_GET_IID(nsIFile));
|
||||||
} else if (!strcmp(aProperty, NS_APP_CHROME_DIR_LIST)) {
|
} else if (!strcmp(aProperty, NS_APP_CHROME_DIR_LIST)) {
|
||||||
// NS_APP_CHROME_DIR_LIST is only used to get default (native) icons
|
// NS_APP_CHROME_DIR_LIST is only used to get default (native) icons
|
||||||
diff -up firefox-87.0/xpcom/io/nsAppDirectoryServiceDefs.h.1170092 firefox-87.0/xpcom/io/nsAppDirectoryServiceDefs.h
|
diff -up firefox-115.0.2/xpcom/io/nsAppDirectoryServiceDefs.h.1170092 firefox-115.0.2/xpcom/io/nsAppDirectoryServiceDefs.h
|
||||||
--- firefox-87.0/xpcom/io/nsAppDirectoryServiceDefs.h.1170092 2021-03-18 14:51:58.000000000 +0100
|
--- firefox-115.0.2/xpcom/io/nsAppDirectoryServiceDefs.h.1170092 2023-07-10 21:09:13.000000000 +0200
|
||||||
+++ firefox-87.0/xpcom/io/nsAppDirectoryServiceDefs.h 2021-03-22 19:20:02.430310213 +0100
|
+++ firefox-115.0.2/xpcom/io/nsAppDirectoryServiceDefs.h 2023-07-17 10:33:23.444355156 +0200
|
||||||
@@ -59,6 +59,7 @@
|
@@ -58,6 +58,7 @@
|
||||||
#define NS_APP_PREFS_DEFAULTS_DIR_LIST "PrefDL"
|
#define NS_APP_PREFS_DEFAULTS_DIR_LIST "PrefDL"
|
||||||
#define NS_APP_PREFS_OVERRIDE_DIR \
|
#define NS_APP_PREFS_OVERRIDE_DIR \
|
||||||
"PrefDOverride" // Directory for per-profile defaults
|
"PrefDOverride" // Directory for per-profile defaults
|
@ -1,43 +1,34 @@
|
|||||||
# HG changeset patch
|
# HG changeset patch
|
||||||
# Parent b5471d23321d16a0bacc25b7afd27d2e16adba1a
|
# Parent 9fcbd287056a40084b1e679f787bf683b291f323
|
||||||
Taken from https://bugzilla.mozilla.org/show_bug.cgi?id=1504834
|
Taken from https://bugzilla.mozilla.org/show_bug.cgi?id=1504834
|
||||||
|
|
||||||
diff --git a/gfx/2d/DrawTargetSkia.cpp b/gfx/2d/DrawTargetSkia.cpp
|
diff --git a/gfx/2d/DrawTargetSkia.cpp b/gfx/2d/DrawTargetSkia.cpp
|
||||||
--- a/gfx/2d/DrawTargetSkia.cpp
|
--- a/gfx/2d/DrawTargetSkia.cpp
|
||||||
+++ b/gfx/2d/DrawTargetSkia.cpp
|
+++ b/gfx/2d/DrawTargetSkia.cpp
|
||||||
@@ -130,18 +130,17 @@ static IntRect CalculateSurfaceBounds(co
|
@@ -156,7 +156,8 @@ static IntRect CalculateSurfaceBounds(co
|
||||||
Rect sampledBounds = inverse.TransformBounds(*aBounds);
|
|
||||||
if (!sampledBounds.ToIntRect(&bounds)) {
|
|
||||||
return surfaceBounds;
|
|
||||||
}
|
|
||||||
|
|
||||||
return surfaceBounds.Intersect(bounds);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-static const int kARGBAlphaOffset =
|
static const int kARGBAlphaOffset =
|
||||||
- SurfaceFormat::A8R8G8B8_UINT32 == SurfaceFormat::B8G8R8A8 ? 3 : 0;
|
- SurfaceFormat::A8R8G8B8_UINT32 == SurfaceFormat::B8G8R8A8 ? 3 : 0;
|
||||||
+static const int kARGBAlphaOffset = 0; // Skia is always BGRA SurfaceFormat::A8R8G8B8_UINT32 == SurfaceFormat::B8G8R8A8 ? 3 : 0;
|
+ 0; // Skia is always BGRA SurfaceFormat::A8R8G8B8_UINT32 ==
|
||||||
|
+ // SurfaceFormat::B8G8R8A8 ? 3 : 0;
|
||||||
|
|
||||||
static bool VerifyRGBXFormat(uint8_t* aData, const IntSize& aSize,
|
static bool VerifyRGBXFormat(uint8_t* aData, const IntSize& aSize,
|
||||||
const int32_t aStride, SurfaceFormat aFormat) {
|
const int32_t aStride, SurfaceFormat aFormat) {
|
||||||
if (aFormat != SurfaceFormat::B8G8R8X8 || aSize.IsEmpty()) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
// We should've initialized the data to be opaque already
|
|
||||||
// On debug builds, verify that this is actually true.
|
|
||||||
diff --git a/gfx/2d/Types.h b/gfx/2d/Types.h
|
diff --git a/gfx/2d/Types.h b/gfx/2d/Types.h
|
||||||
--- a/gfx/2d/Types.h
|
--- a/gfx/2d/Types.h
|
||||||
+++ b/gfx/2d/Types.h
|
+++ b/gfx/2d/Types.h
|
||||||
@@ -84,25 +84,18 @@ enum class SurfaceFormat : int8_t {
|
@@ -89,18 +89,11 @@ enum class SurfaceFormat : int8_t {
|
||||||
Depth,
|
|
||||||
|
|
||||||
// This represents the unknown format.
|
// This represents the unknown format.
|
||||||
UNKNOWN,
|
UNKNOWN, // TODO: Replace uses with Maybe<SurfaceFormat>.
|
||||||
|
|
||||||
// The following values are endian-independent synonyms. The _UINT32 suffix
|
-// The following values are endian-independent synonyms. The _UINT32 suffix
|
||||||
// indicates that the name reflects the layout when viewed as a uint32_t
|
-// indicates that the name reflects the layout when viewed as a uint32_t
|
||||||
// value.
|
-// value.
|
||||||
-#if MOZ_LITTLE_ENDIAN()
|
-#if MOZ_LITTLE_ENDIAN()
|
||||||
|
+ // The following values are endian-independent synonyms. The _UINT32 suffix
|
||||||
|
+ // indicates that the name reflects the layout when viewed as a uint32_t
|
||||||
|
+ // value.
|
||||||
A8R8G8B8_UINT32 = B8G8R8A8, // 0xAARRGGBB
|
A8R8G8B8_UINT32 = B8G8R8A8, // 0xAARRGGBB
|
||||||
X8R8G8B8_UINT32 = B8G8R8X8, // 0x00RRGGBB
|
X8R8G8B8_UINT32 = B8G8R8X8, // 0x00RRGGBB
|
||||||
-#elif MOZ_BIG_ENDIAN()
|
-#elif MOZ_BIG_ENDIAN()
|
||||||
@ -49,20 +40,10 @@ diff --git a/gfx/2d/Types.h b/gfx/2d/Types.h
|
|||||||
|
|
||||||
// The following values are OS and endian-independent synonyms.
|
// The following values are OS and endian-independent synonyms.
|
||||||
//
|
//
|
||||||
// TODO(aosmond): When everything blocking bug 1581828 has been resolved, we
|
diff --git a/gfx/skia/skia/modules/skcms/skcms.cc b/gfx/skia/skia/modules/skcms/skcms.cc
|
||||||
// can make this use R8B8G8A8 and R8B8G8X8 for non-Windows platforms.
|
--- a/gfx/skia/skia/modules/skcms/skcms.cc
|
||||||
OS_RGBA = A8R8G8B8_UINT32,
|
+++ b/gfx/skia/skia/modules/skcms/skcms.cc
|
||||||
OS_RGBX = X8R8G8B8_UINT32
|
@@ -30,6 +30,8 @@
|
||||||
};
|
|
||||||
diff --git a/gfx/skia/skia/third_party/skcms/skcms.cc b/gfx/skia/skia/third_party/skcms/skcms.cc
|
|
||||||
--- a/gfx/skia/skia/third_party/skcms/skcms.cc
|
|
||||||
+++ b/gfx/skia/skia/third_party/skcms/skcms.cc
|
|
||||||
@@ -25,16 +25,18 @@
|
|
||||||
// it'd be a lot slower. But we want all those headers included so we
|
|
||||||
// can use their features after runtime checks later.
|
|
||||||
#include <smmintrin.h>
|
|
||||||
#include <avxintrin.h>
|
|
||||||
#include <avx2intrin.h>
|
|
||||||
#include <avx512fintrin.h>
|
#include <avx512fintrin.h>
|
||||||
#include <avx512dqintrin.h>
|
#include <avx512dqintrin.h>
|
||||||
#endif
|
#endif
|
||||||
@ -70,30 +51,21 @@ diff --git a/gfx/skia/skia/third_party/skcms/skcms.cc b/gfx/skia/skia/third_part
|
|||||||
+ #define SKCMS_PORTABLE
|
+ #define SKCMS_PORTABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// sizeof(x) will return size_t, which is 32-bit on some machines and 64-bit on others.
|
static bool runtime_cpu_detection = true;
|
||||||
// We have better testing on 64-bit machines, so force 32-bit machines to behave like 64-bit.
|
@@ -324,20 +326,28 @@ enum {
|
||||||
//
|
|
||||||
// Please do not use sizeof() directly, and size_t only when required.
|
|
||||||
// (We have no way of enforcing these requests...)
|
|
||||||
#define SAFE_SIZEOF(x) ((uint64_t)sizeof(x))
|
|
||||||
@@ -275,30 +277,38 @@ enum {
|
|
||||||
skcms_Signature_sf32 = 0x73663332,
|
|
||||||
// XYZ is also a PCS signature, so it's defined in skcms.h
|
|
||||||
// skcms_Signature_XYZ = 0x58595A20,
|
|
||||||
};
|
|
||||||
|
|
||||||
static uint16_t read_big_u16(const uint8_t* ptr) {
|
static uint16_t read_big_u16(const uint8_t* ptr) {
|
||||||
uint16_t be;
|
uint16_t be;
|
||||||
memcpy(&be, ptr, sizeof(be));
|
memcpy(&be, ptr, sizeof(be));
|
||||||
-#if defined(_MSC_VER)
|
-#if defined(_MSC_VER)
|
||||||
|
- return _byteswap_ushort(be);
|
||||||
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||||
+ return be;
|
+ return be;
|
||||||
+#else
|
#else
|
||||||
|
- return __builtin_bswap16(be);
|
||||||
+ #if defined(_MSC_VER)
|
+ #if defined(_MSC_VER)
|
||||||
return _byteswap_ushort(be);
|
+ return _byteswap_ushort(be);
|
||||||
-#else
|
|
||||||
+ #else
|
+ #else
|
||||||
return __builtin_bswap16(be);
|
+ return __builtin_bswap16(be);
|
||||||
+ #endif
|
+ #endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -102,20 +74,16 @@ diff --git a/gfx/skia/skia/third_party/skcms/skcms.cc b/gfx/skia/skia/third_part
|
|||||||
uint32_t be;
|
uint32_t be;
|
||||||
memcpy(&be, ptr, sizeof(be));
|
memcpy(&be, ptr, sizeof(be));
|
||||||
-#if defined(_MSC_VER)
|
-#if defined(_MSC_VER)
|
||||||
|
- return _byteswap_ulong(be);
|
||||||
+#if __BYTE_ORDER == __ORDER_BIG_ENDIAN__
|
+#if __BYTE_ORDER == __ORDER_BIG_ENDIAN__
|
||||||
+ return be;
|
+ return be;
|
||||||
+#else
|
#else
|
||||||
|
- return __builtin_bswap32(be);
|
||||||
+ #if defined(_MSC_VER)
|
+ #if defined(_MSC_VER)
|
||||||
return _byteswap_ulong(be);
|
+ return _byteswap_ulong(be);
|
||||||
-#else
|
|
||||||
+ #else
|
+ #else
|
||||||
return __builtin_bswap32(be);
|
+ return __builtin_bswap32(be);
|
||||||
+ #endif
|
+ #endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static int32_t read_big_i32(const uint8_t* ptr) {
|
|
||||||
return (int32_t)read_big_u32(ptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
static float read_big_fixed(const uint8_t* ptr) {
|
|
||||||
|
@ -1,64 +1,17 @@
|
|||||||
# HG changeset patch
|
# HG changeset patch
|
||||||
# Parent d1d66f7e4d0e7fd45e91e4fcee07555e72046d48
|
# Parent 09cd4ac2cc607e85aa572425b824fbab386af607
|
||||||
For FF68, AntiAliasing of XULTexts seem to be broken on big endian (s390x). Text and icons of the sandwich-menu to the
|
For FF68, AntiAliasing of XULTexts seem to be broken on big endian (s390x). Text and icons of the sandwich-menu to the
|
||||||
right of the address bar, as well as plugin-windows appears transparant, which usually means unreadable (white on white).
|
right of the address bar, as well as plugin-windows appears transparant, which usually means unreadable (white on white).
|
||||||
|
|
||||||
diff --git a/gfx/skia/skia/include/private/SkNx.h b/gfx/skia/skia/include/private/SkNx.h
|
|
||||||
--- a/gfx/skia/skia/include/private/SkNx.h
|
|
||||||
+++ b/gfx/skia/skia/include/private/SkNx.h
|
|
||||||
@@ -233,17 +233,28 @@ struct SkNx<1,T> {
|
|
||||||
AI SkNx operator<<(int bits) const { return fVal << bits; }
|
|
||||||
AI SkNx operator>>(int bits) const { return fVal >> bits; }
|
|
||||||
|
|
||||||
AI SkNx operator+(const SkNx& y) const { return fVal + y.fVal; }
|
|
||||||
AI SkNx operator-(const SkNx& y) const { return fVal - y.fVal; }
|
|
||||||
AI SkNx operator*(const SkNx& y) const { return fVal * y.fVal; }
|
|
||||||
AI SkNx operator/(const SkNx& y) const { return fVal / y.fVal; }
|
|
||||||
|
|
||||||
+ // On Big endian the commented out variant doesn't work,
|
|
||||||
+ // and honestly, I have no idea why it exists in the first place.
|
|
||||||
+ // The reason its broken is, I think, that it defaults to the double-variant of ToBits()
|
|
||||||
+ // which gets a 64-bit integer, and FromBits returns 32-bit,
|
|
||||||
+ // cutting off the wrong half again.
|
|
||||||
+ // Overall, I see no reason to have ToBits and FromBits at all (even for floats/doubles).
|
|
||||||
+ // Still we are only "fixing" this for big endian and leave little endian alone (never touch a running system)
|
|
||||||
+#ifdef SK_CPU_BENDIAN
|
|
||||||
+ AI SkNx operator&(const SkNx& y) const { return fVal & y.fVal; }
|
|
||||||
+#else
|
|
||||||
AI SkNx operator&(const SkNx& y) const { return FromBits(ToBits(fVal) & ToBits(y.fVal)); }
|
|
||||||
+#endif
|
|
||||||
AI SkNx operator|(const SkNx& y) const { return FromBits(ToBits(fVal) | ToBits(y.fVal)); }
|
|
||||||
AI SkNx operator^(const SkNx& y) const { return FromBits(ToBits(fVal) ^ ToBits(y.fVal)); }
|
|
||||||
|
|
||||||
AI SkNx operator==(const SkNx& y) const { return FromBits(fVal == y.fVal ? ~0 : 0); }
|
|
||||||
AI SkNx operator!=(const SkNx& y) const { return FromBits(fVal != y.fVal ? ~0 : 0); }
|
|
||||||
AI SkNx operator<=(const SkNx& y) const { return FromBits(fVal <= y.fVal ? ~0 : 0); }
|
|
||||||
AI SkNx operator>=(const SkNx& y) const { return FromBits(fVal >= y.fVal ? ~0 : 0); }
|
|
||||||
AI SkNx operator< (const SkNx& y) const { return FromBits(fVal < y.fVal ? ~0 : 0); }
|
|
||||||
diff --git a/gfx/skia/skia/src/opts/SkBlitMask_opts.h b/gfx/skia/skia/src/opts/SkBlitMask_opts.h
|
diff --git a/gfx/skia/skia/src/opts/SkBlitMask_opts.h b/gfx/skia/skia/src/opts/SkBlitMask_opts.h
|
||||||
--- a/gfx/skia/skia/src/opts/SkBlitMask_opts.h
|
--- a/gfx/skia/skia/src/opts/SkBlitMask_opts.h
|
||||||
+++ b/gfx/skia/skia/src/opts/SkBlitMask_opts.h
|
+++ b/gfx/skia/skia/src/opts/SkBlitMask_opts.h
|
||||||
@@ -198,17 +198,23 @@ namespace SK_OPTS_NS {
|
@@ -210,6 +210,8 @@ namespace SK_OPTS_NS {
|
||||||
const SkAlpha* mask, size_t maskRB,
|
|
||||||
int w, int h) {
|
|
||||||
auto fn = [](const Sk4px& d, const Sk4px& aa) {
|
|
||||||
// = (s + d(1-sa))aa + d(1-aa)
|
|
||||||
// = s*aa + d(1-sa*aa)
|
|
||||||
// ~~~>
|
// ~~~>
|
||||||
// a = 1*aa + d(1-1*aa) = aa + d(1-aa)
|
// a = 1*aa + d(1-1*aa) = aa + d(1-aa)
|
||||||
// c = 0*aa + d(1-1*aa) = d(1-aa)
|
// c = 0*aa + d(1-1*aa) = d(1-aa)
|
||||||
+
|
+ // TODO: Check this for endian-issues!
|
||||||
+ // For big endian we have to swap the alpha-mask from 0,0,0,255 to 255,0,0,0
|
+ // Do we need to switch 255 to the front for all of those tuples?
|
||||||
+#ifdef SK_CPU_BENDIAN
|
return (aa & Sk4px(skvx::byte16{0,0,0,255, 0,0,0,255, 0,0,0,255, 0,0,0,255}))
|
||||||
+ return Sk4px(Sk16b(aa) & Sk16b(255,0,0,0, 255,0,0,0, 255,0,0,0, 255,0,0,0))
|
|
||||||
+#else
|
|
||||||
return Sk4px(Sk16b(aa) & Sk16b(0,0,0,255, 0,0,0,255, 0,0,0,255, 0,0,0,255))
|
|
||||||
+#endif
|
|
||||||
+ d.approxMulDiv255(aa.inv());
|
+ d.approxMulDiv255(aa.inv());
|
||||||
};
|
};
|
||||||
while (h --> 0) {
|
|
||||||
Sk4px::MapDstAlpha(w, dst, mask, fn);
|
|
||||||
dst += dstRB / sizeof(*dst);
|
|
||||||
mask += maskRB / sizeof(*mask);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
diff -up firefox-99.0/dom/media/mp4/MP4Demuxer.cpp.1670333 firefox-99.0/dom/media/mp4/MP4Demuxer.cpp
|
diff -up firefox-115.0/dom/media/mp4/MP4Demuxer.cpp.1670333 firefox-115.0/dom/media/mp4/MP4Demuxer.cpp
|
||||||
--- firefox-99.0/dom/media/mp4/MP4Demuxer.cpp.1670333 2022-03-31 01:24:44.000000000 +0200
|
--- firefox-115.0/dom/media/mp4/MP4Demuxer.cpp.1670333 2023-06-06 23:14:43.000000000 +0200
|
||||||
+++ firefox-99.0/dom/media/mp4/MP4Demuxer.cpp 2022-04-04 09:58:35.606351546 +0200
|
+++ firefox-115.0/dom/media/mp4/MP4Demuxer.cpp 2023-06-08 08:15:48.214109403 +0200
|
||||||
@@ -31,6 +31,8 @@ mozilla::LogModule* GetDemuxerLog() { re
|
@@ -32,6 +32,8 @@ mozilla::LogModule* GetDemuxerLog() { re
|
||||||
DDMOZ_LOG(gMediaDemuxerLog, mozilla::LogLevel::Debug, "::%s: " arg, \
|
DDMOZ_LOG(gMediaDemuxerLog, mozilla::LogLevel::Debug, "::%s: " arg, \
|
||||||
__func__, ##__VA_ARGS__)
|
__func__, ##__VA_ARGS__)
|
||||||
|
|
||||||
@ -9,8 +9,8 @@ diff -up firefox-99.0/dom/media/mp4/MP4Demuxer.cpp.1670333 firefox-99.0/dom/medi
|
|||||||
+
|
+
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
||||||
DDLoggedTypeDeclNameAndBase(MP4TrackDemuxer, MediaTrackDemuxer);
|
using TimeUnit = media::TimeUnit;
|
||||||
@@ -394,6 +396,12 @@ already_AddRefed<MediaRawData> MP4TrackD
|
@@ -404,6 +406,12 @@ already_AddRefed<MediaRawData> MP4TrackD
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case H264::FrameType::OTHER: {
|
case H264::FrameType::OTHER: {
|
||||||
bool keyframe = type == H264::FrameType::I_FRAME;
|
bool keyframe = type == H264::FrameType::I_FRAME;
|
||||||
@ -23,19 +23,19 @@ diff -up firefox-99.0/dom/media/mp4/MP4Demuxer.cpp.1670333 firefox-99.0/dom/medi
|
|||||||
if (sample->mKeyframe != keyframe) {
|
if (sample->mKeyframe != keyframe) {
|
||||||
NS_WARNING(nsPrintfCString("Frame incorrectly marked as %skeyframe "
|
NS_WARNING(nsPrintfCString("Frame incorrectly marked as %skeyframe "
|
||||||
"@ pts:%" PRId64 " dur:%" PRId64
|
"@ pts:%" PRId64 " dur:%" PRId64
|
||||||
diff -up firefox-99.0/dom/media/platforms/PDMFactory.cpp.1670333 firefox-99.0/dom/media/platforms/PDMFactory.cpp
|
diff -up firefox-115.0/dom/media/platforms/PDMFactory.cpp.1670333 firefox-115.0/dom/media/platforms/PDMFactory.cpp
|
||||||
--- firefox-99.0/dom/media/platforms/PDMFactory.cpp.1670333 2022-03-31 01:24:44.000000000 +0200
|
--- firefox-115.0/dom/media/platforms/PDMFactory.cpp.1670333 2023-06-06 23:14:44.000000000 +0200
|
||||||
+++ firefox-99.0/dom/media/platforms/PDMFactory.cpp 2022-04-04 10:09:57.383419125 +0200
|
+++ firefox-115.0/dom/media/platforms/PDMFactory.cpp 2023-06-08 08:09:33.145289602 +0200
|
||||||
@@ -58,6 +58,8 @@
|
@@ -67,6 +67,8 @@
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
+bool gUseKeyframeFromContainer = false;
|
+bool gUseKeyframeFromContainer = false;
|
||||||
+
|
+
|
||||||
namespace mozilla {
|
using DecodeSupport = mozilla::media::DecodeSupport;
|
||||||
|
using DecodeSupportSet = mozilla::media::DecodeSupportSet;
|
||||||
#define PDM_INIT_LOG(msg, ...) \
|
using MediaCodec = mozilla::media::MediaCodec;
|
||||||
@@ -495,7 +497,7 @@ void PDMFactory::CreateRddPDMs() {
|
@@ -562,7 +564,7 @@ void PDMFactory::CreateRddPDMs() {
|
||||||
#ifdef MOZ_FFMPEG
|
#ifdef MOZ_FFMPEG
|
||||||
if (StaticPrefs::media_ffmpeg_enabled() &&
|
if (StaticPrefs::media_ffmpeg_enabled() &&
|
||||||
StaticPrefs::media_rdd_ffmpeg_enabled() &&
|
StaticPrefs::media_rdd_ffmpeg_enabled() &&
|
||||||
@ -44,21 +44,22 @@ diff -up firefox-99.0/dom/media/platforms/PDMFactory.cpp.1670333 firefox-99.0/do
|
|||||||
mFailureFlags += GetFailureFlagBasedOnFFmpegStatus(
|
mFailureFlags += GetFailureFlagBasedOnFFmpegStatus(
|
||||||
FFmpegRuntimeLinker::LinkStatusCode());
|
FFmpegRuntimeLinker::LinkStatusCode());
|
||||||
}
|
}
|
||||||
@@ -602,8 +604,9 @@ void PDMFactory::CreateDefaultPDMs() {
|
@@ -738,9 +740,10 @@ void PDMFactory::CreateDefaultPDMs() {
|
||||||
|
|
||||||
CreateAndStartupPDM<AgnosticDecoderModule>();
|
CreateAndStartupPDM<AgnosticDecoderModule>();
|
||||||
|
|
||||||
- if (StaticPrefs::media_gmp_decoder_enabled() &&
|
- if (StaticPrefs::media_gmp_decoder_enabled() &&
|
||||||
+ if (StaticPrefs::media_gmp_decoder_enabled() && !mFFmpegUsed &&
|
+ if (StaticPrefs::media_gmp_decoder_enabled() && !mFFmpegUsed &&
|
||||||
!CreateAndStartupPDM<GMPDecoderModule>()) {
|
!StartupPDM(GMPDecoderModule::Create(),
|
||||||
|
StaticPrefs::media_gmp_decoder_preferred())) {
|
||||||
+ gUseKeyframeFromContainer = true;
|
+ gUseKeyframeFromContainer = true;
|
||||||
mFailureFlags += DecoderDoctorDiagnostics::Flags::GMPPDMFailedToStartup;
|
mFailureFlags += DecoderDoctorDiagnostics::Flags::GMPPDMFailedToStartup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
diff -up firefox-99.0/dom/media/platforms/PDMFactory.h.1670333 firefox-99.0/dom/media/platforms/PDMFactory.h
|
diff -up firefox-115.0/dom/media/platforms/PDMFactory.h.1670333 firefox-115.0/dom/media/platforms/PDMFactory.h
|
||||||
--- firefox-99.0/dom/media/platforms/PDMFactory.h.1670333 2022-03-31 01:24:44.000000000 +0200
|
--- firefox-115.0/dom/media/platforms/PDMFactory.h.1670333 2023-06-06 23:14:42.000000000 +0200
|
||||||
+++ firefox-99.0/dom/media/platforms/PDMFactory.h 2022-04-04 09:58:35.606351546 +0200
|
+++ firefox-115.0/dom/media/platforms/PDMFactory.h 2023-06-08 08:09:33.145289602 +0200
|
||||||
@@ -121,6 +121,7 @@ class PDMFactory final {
|
@@ -103,6 +103,7 @@ class PDMFactory final {
|
||||||
RefPtr<PlatformDecoderModule> mNullPDM;
|
RefPtr<PlatformDecoderModule> mNullPDM;
|
||||||
|
|
||||||
DecoderDoctorDiagnostics::FlagsSet mFailureFlags;
|
DecoderDoctorDiagnostics::FlagsSet mFailureFlags;
|
89
mozilla-bmo1789216-disable-av1.patch
Normal file
89
mozilla-bmo1789216-disable-av1.patch
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
diff --git a/media/ffvpx/libavcodec/allcodecs.c b/media/ffvpx/libavcodec/allcodecs.c
|
||||||
|
--- a/media/ffvpx/libavcodec/allcodecs.c
|
||||||
|
+++ b/media/ffvpx/libavcodec/allcodecs.c
|
||||||
|
@@ -755,12 +755,15 @@
|
||||||
|
extern FFCodec ff_libaom_av1_encoder;
|
||||||
|
extern const FFCodec ff_libaribb24_decoder;
|
||||||
|
extern const FFCodec ff_libcelt_decoder;
|
||||||
|
extern const FFCodec ff_libcodec2_encoder;
|
||||||
|
extern const FFCodec ff_libcodec2_decoder;
|
||||||
|
+#if CONFIG_MOZ_AV1
|
||||||
|
extern const FFCodec ff_libdav1d_decoder;
|
||||||
|
extern const FFCodec ff_libdavs2_decoder;
|
||||||
|
+extern const FFCodec ff_libuavs3d_decoder;
|
||||||
|
+#endif
|
||||||
|
extern const FFCodec ff_libfdk_aac_encoder;
|
||||||
|
extern const FFCodec ff_libfdk_aac_decoder;
|
||||||
|
extern const FFCodec ff_libgsm_encoder;
|
||||||
|
extern const FFCodec ff_libgsm_decoder;
|
||||||
|
extern const FFCodec ff_libgsm_ms_encoder;
|
||||||
|
@@ -783,11 +786,10 @@
|
||||||
|
extern const FFCodec ff_libspeex_encoder;
|
||||||
|
extern const FFCodec ff_libspeex_decoder;
|
||||||
|
extern const FFCodec ff_libsvtav1_encoder;
|
||||||
|
extern const FFCodec ff_libtheora_encoder;
|
||||||
|
extern const FFCodec ff_libtwolame_encoder;
|
||||||
|
-extern const FFCodec ff_libuavs3d_decoder;
|
||||||
|
extern const FFCodec ff_libvo_amrwbenc_encoder;
|
||||||
|
extern const FFCodec ff_libvorbis_encoder;
|
||||||
|
extern const FFCodec ff_libvorbis_decoder;
|
||||||
|
extern const FFCodec ff_libvpx_vp8_encoder;
|
||||||
|
extern const FFCodec ff_libvpx_vp8_decoder;
|
||||||
|
diff --git a/media/ffvpx/libavcodec/codec_list.c b/media/ffvpx/libavcodec/codec_list.c
|
||||||
|
--- a/media/ffvpx/libavcodec/codec_list.c
|
||||||
|
+++ b/media/ffvpx/libavcodec/codec_list.c
|
||||||
|
@@ -9,12 +9,14 @@
|
||||||
|
&ff_flac_decoder,
|
||||||
|
#endif
|
||||||
|
#if CONFIG_MP3_DECODER
|
||||||
|
&ff_mp3_decoder,
|
||||||
|
#endif
|
||||||
|
+#if CONFIG_MOZ_AV1
|
||||||
|
#if CONFIG_LIBDAV1D
|
||||||
|
&ff_libdav1d_decoder,
|
||||||
|
#endif
|
||||||
|
#if CONFIG_AV1_DECODER
|
||||||
|
&ff_av1_decoder,
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
NULL };
|
||||||
|
diff --git a/media/ffvpx/libavcodec/moz.build b/media/ffvpx/libavcodec/moz.build
|
||||||
|
--- a/media/ffvpx/libavcodec/moz.build
|
||||||
|
+++ b/media/ffvpx/libavcodec/moz.build
|
||||||
|
@@ -84,11 +84,10 @@
|
||||||
|
'cbs.c',
|
||||||
|
'cbs_av1.c',
|
||||||
|
'golomb.c',
|
||||||
|
'h264pred.c',
|
||||||
|
'imgconvert.c',
|
||||||
|
- 'libdav1d.c',
|
||||||
|
'mathtables.c',
|
||||||
|
'qsv_api.c',
|
||||||
|
'raw.c',
|
||||||
|
'videodsp.c',
|
||||||
|
'vp8.c',
|
||||||
|
@@ -107,14 +106,19 @@
|
||||||
|
'vp9mvs.c',
|
||||||
|
'vp9prob.c',
|
||||||
|
'vp9recon.c',
|
||||||
|
'vpx_rac.c',
|
||||||
|
]
|
||||||
|
- USE_LIBS += [
|
||||||
|
- 'dav1d',
|
||||||
|
- 'media_libdav1d_asm',
|
||||||
|
- ]
|
||||||
|
+ if CONFIG['MOZ_AV1']:
|
||||||
|
+ USE_LIBS += [
|
||||||
|
+ 'dav1d',
|
||||||
|
+ 'media_libdav1d_asm',
|
||||||
|
+ ]
|
||||||
|
+ SOURCES += [
|
||||||
|
+ 'libdav1d.c',
|
||||||
|
+ ]
|
||||||
|
+
|
||||||
|
if CONFIG['MOZ_WAYLAND']:
|
||||||
|
LOCAL_INCLUDES += ['/media/mozva']
|
||||||
|
SOURCES += [
|
||||||
|
'vaapi_av1.c',
|
||||||
|
'vaapi_decode.c',
|
||||||
|
|
@ -6,15 +6,11 @@ Solution: Problem is with skia once again. Output of webgl seems endian-correct,
|
|||||||
So we swizzle the output of webgl after reading it from readpixels()
|
So we swizzle the output of webgl after reading it from readpixels()
|
||||||
Note: This does not fix all webGL sites, but is a step in the right direction
|
Note: This does not fix all webGL sites, but is a step in the right direction
|
||||||
|
|
||||||
diff --git a/gfx/gl/GLContext.h b/gfx/gl/GLContext.h
|
Index: firefox-115.0/gfx/gl/GLContext.h
|
||||||
--- a/gfx/gl/GLContext.h
|
===================================================================
|
||||||
+++ b/gfx/gl/GLContext.h
|
--- firefox-115.0.orig/gfx/gl/GLContext.h
|
||||||
@@ -1548,16 +1548,23 @@ class GLContext : public GenericAtomicRe
|
+++ firefox-115.0/gfx/gl/GLContext.h
|
||||||
AFTER_GL_CALL;
|
@@ -1560,6 +1560,13 @@ class GLContext : public GenericAtomicRe
|
||||||
}
|
|
||||||
|
|
||||||
void raw_fReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
|
|
||||||
GLenum format, GLenum type, GLvoid* pixels) {
|
|
||||||
BEFORE_GL_CALL;
|
BEFORE_GL_CALL;
|
||||||
mSymbols.fReadPixels(x, y, width, height, format, type, pixels);
|
mSymbols.fReadPixels(x, y, width, height, format, type, pixels);
|
||||||
OnSyncCall();
|
OnSyncCall();
|
||||||
@ -28,8 +24,3 @@ diff --git a/gfx/gl/GLContext.h b/gfx/gl/GLContext.h
|
|||||||
AFTER_GL_CALL;
|
AFTER_GL_CALL;
|
||||||
mHeavyGLCallsSinceLastFlush = true;
|
mHeavyGLCallsSinceLastFlush = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void fReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
|
|
||||||
GLenum format, GLenum type, GLvoid* pixels);
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
diff -up firefox-52.0/gfx/skia/skia/include/core/SkPreConfig.h.arm firefox-52.0/gfx/skia/skia/include/core/SkPreConfig.h
|
|
||||||
--- firefox-52.0/gfx/skia/skia/include/core/SkPreConfig.h.arm 2017-03-03 13:53:52.480754536 +0100
|
|
||||||
+++ firefox-52.0/gfx/skia/skia/include/core/SkPreConfig.h 2017-03-03 13:56:01.476018102 +0100
|
|
||||||
@@ -203,6 +203,10 @@
|
|
||||||
#define SK_ARM_HAS_CRC32
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#if defined(__aarch64__)
|
|
||||||
+ #undef SK_ARM_HAS_NEON
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#if !defined(SKIA_IMPLEMENTATION)
|
|
@ -1,53 +0,0 @@
|
|||||||
# HG changeset patch
|
|
||||||
# User msirringhaus@suse.de
|
|
||||||
# Date 1558452408 -7200
|
|
||||||
# Tue May 21 17:26:48 2019 +0200
|
|
||||||
# Node ID 602e92722e765a3c238d3b96b26c0c8063b5eeb4
|
|
||||||
# Parent 136e1f2c44a3099b3e49a576fa62c8ad77aa431e
|
|
||||||
[mq]: mozilla-s390-context.patch
|
|
||||||
|
|
||||||
diff --git a/js/src/wasm/WasmSignalHandlers.cpp b/js/src/wasm/WasmSignalHandlers.cpp
|
|
||||||
--- a/js/src/wasm/WasmSignalHandlers.cpp
|
|
||||||
+++ b/js/src/wasm/WasmSignalHandlers.cpp
|
|
||||||
@@ -157,16 +157,20 @@ using mozilla::DebugOnly;
|
|
||||||
# define R32_sig(p) ((p)->uc_mcontext.gp_regs[32])
|
|
||||||
# endif
|
|
||||||
# if defined(__linux__) && defined(__loongarch__)
|
|
||||||
# define EPC_sig(p) ((p)->uc_mcontext.pc)
|
|
||||||
# define RRA_sig(p) ((p)->uc_mcontext.gregs[1])
|
|
||||||
# define RSP_sig(p) ((p)->uc_mcontext.gregs[3])
|
|
||||||
# define RFP_sig(p) ((p)->uc_mcontext.gregs[22])
|
|
||||||
# endif
|
|
||||||
+# if defined(__linux__) && defined(__s390x__)
|
|
||||||
+# define GR_sig(p,x) ((p)->uc_mcontext.gregs[x])
|
|
||||||
+# define PSWa_sig(p) ((p)->uc_mcontext.psw.addr)
|
|
||||||
+# endif
|
|
||||||
# elif defined(__NetBSD__)
|
|
||||||
# define EIP_sig(p) ((p)->uc_mcontext.__gregs[_REG_EIP])
|
|
||||||
# define EBP_sig(p) ((p)->uc_mcontext.__gregs[_REG_EBP])
|
|
||||||
# define ESP_sig(p) ((p)->uc_mcontext.__gregs[_REG_ESP])
|
|
||||||
# define RIP_sig(p) ((p)->uc_mcontext.__gregs[_REG_RIP])
|
|
||||||
# define RSP_sig(p) ((p)->uc_mcontext.__gregs[_REG_RSP])
|
|
||||||
# define RBP_sig(p) ((p)->uc_mcontext.__gregs[_REG_RBP])
|
|
||||||
# define R11_sig(p) ((p)->uc_mcontext.__gregs[_REG_R11])
|
|
||||||
@@ -399,16 +403,20 @@ struct macos_aarch64_context {
|
|
||||||
# define PC_sig(p) R32_sig(p)
|
|
||||||
# define SP_sig(p) R01_sig(p)
|
|
||||||
# define FP_sig(p) R01_sig(p)
|
|
||||||
# elif defined(__loongarch__)
|
|
||||||
# define PC_sig(p) EPC_sig(p)
|
|
||||||
# define FP_sig(p) RFP_sig(p)
|
|
||||||
# define SP_sig(p) RSP_sig(p)
|
|
||||||
# define LR_sig(p) RRA_sig(p)
|
|
||||||
+# elif defined(__s390x__)
|
|
||||||
+# define PC_sig(p) PSWa_sig(p)
|
|
||||||
+# define SP_sig(p) GR_sig(p, 15)
|
|
||||||
+# define FP_sig(p) GR_sig(p, 11)
|
|
||||||
# endif
|
|
||||||
|
|
||||||
static void SetContextPC(CONTEXT* context, uint8_t* pc) {
|
|
||||||
# ifdef PC_sig
|
|
||||||
*reinterpret_cast<uint8_t**>(&PC_sig(context)) = pc;
|
|
||||||
# else
|
|
||||||
MOZ_CRASH();
|
|
||||||
# endif
|
|
@ -1,51 +0,0 @@
|
|||||||
# HG changeset patch
|
|
||||||
# Parent acf59ea86dd1d878b43920832093f082dcfc61c0
|
|
||||||
|
|
||||||
diff -r acf59ea86dd1 gfx/skia/skia/src/shaders/gradients/Sk4fLinearGradient.cpp
|
|
||||||
--- a/gfx/skia/skia/src/shaders/gradients/Sk4fLinearGradient.cpp Mon Mar 09 08:26:10 2020 +0100
|
|
||||||
+++ b/gfx/skia/skia/src/shaders/gradients/Sk4fLinearGradient.cpp Fri Mar 27 13:30:28 2020 +0100
|
|
||||||
@@ -7,7 +7,7 @@
|
|
||||||
|
|
||||||
#include "include/core/SkPaint.h"
|
|
||||||
#include "src/shaders/gradients/Sk4fLinearGradient.h"
|
|
||||||
-
|
|
||||||
+#include "src/core/SkEndian.h"
|
|
||||||
#include <cmath>
|
|
||||||
#include <utility>
|
|
||||||
|
|
||||||
@@ -28,6 +28,9 @@
|
|
||||||
|
|
||||||
while (n >= 4) {
|
|
||||||
DstTraits<premul>::store4x(c0, c1, c2, c3, dst, bias0, bias1);
|
|
||||||
+#ifdef SK_CPU_BENDIAN
|
|
||||||
+ SkEndianSwap32s(dst, 4);
|
|
||||||
+#endif
|
|
||||||
dst += 4;
|
|
||||||
|
|
||||||
c0 = c0 + dc4;
|
|
||||||
@@ -37,12 +40,23 @@
|
|
||||||
n -= 4;
|
|
||||||
}
|
|
||||||
if (n & 2) {
|
|
||||||
- DstTraits<premul>::store(c0, dst++, bias0);
|
|
||||||
- DstTraits<premul>::store(c1, dst++, bias1);
|
|
||||||
+ DstTraits<premul>::store(c0, dst, bias0);
|
|
||||||
+#ifdef SK_CPU_BENDIAN
|
|
||||||
+ *dst = SkEndianSwap32(*dst);
|
|
||||||
+#endif
|
|
||||||
+ ++dst;
|
|
||||||
+ DstTraits<premul>::store(c1, dst, bias1);
|
|
||||||
+#ifdef SK_CPU_BENDIAN
|
|
||||||
+ *dst = SkEndianSwap32(*dst);
|
|
||||||
+#endif
|
|
||||||
+ ++dst;
|
|
||||||
c0 = c0 + dc2;
|
|
||||||
}
|
|
||||||
if (n & 1) {
|
|
||||||
DstTraits<premul>::store(c0, dst, bias0);
|
|
||||||
+#ifdef SK_CPU_BENDIAN
|
|
||||||
+ *dst = SkEndianSwap32(*dst);
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
115
pgo.patch
115
pgo.patch
@ -1,115 +0,0 @@
|
|||||||
diff -up firefox-99.0/build/moz.configure/lto-pgo.configure.pgo firefox-99.0/build/moz.configure/lto-pgo.configure
|
|
||||||
--- firefox-99.0/build/moz.configure/lto-pgo.configure.pgo 2022-03-31 01:24:38.000000000 +0200
|
|
||||||
+++ firefox-99.0/build/moz.configure/lto-pgo.configure 2022-04-04 10:15:45.387694143 +0200
|
|
||||||
@@ -247,8 +247,8 @@ def lto(
|
|
||||||
cflags.append("-flto")
|
|
||||||
ldflags.append("-flto")
|
|
||||||
else:
|
|
||||||
- cflags.append("-flto=thin")
|
|
||||||
- ldflags.append("-flto=thin")
|
|
||||||
+ cflags.append("-flto")
|
|
||||||
+ ldflags.append("-flto")
|
|
||||||
|
|
||||||
if target.os == "Android" and value == "cross":
|
|
||||||
# Work around https://github.com/rust-lang/rust/issues/90088
|
|
||||||
@@ -264,7 +264,7 @@ def lto(
|
|
||||||
if value == "full":
|
|
||||||
cflags.append("-flto")
|
|
||||||
else:
|
|
||||||
- cflags.append("-flto=thin")
|
|
||||||
+ cflags.append("-flto")
|
|
||||||
# With clang-cl, -flto can only be used with -c or -fuse-ld=lld.
|
|
||||||
# AC_TRY_LINKs during configure don't have -c, so pass -fuse-ld=lld.
|
|
||||||
cflags.append("-fuse-ld=lld")
|
|
||||||
diff -up firefox-99.0/build/pgo/profileserver.py.pgo firefox-99.0/build/pgo/profileserver.py
|
|
||||||
--- firefox-99.0/build/pgo/profileserver.py.pgo 2022-03-31 01:24:38.000000000 +0200
|
|
||||||
+++ firefox-99.0/build/pgo/profileserver.py 2022-04-04 10:15:45.387694143 +0200
|
|
||||||
@@ -11,7 +11,7 @@ import glob
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
import mozcrash
|
|
||||||
-from mozbuild.base import MozbuildObject, BinaryNotFoundException
|
|
||||||
+from mozbuild.base import MozbuildObject, BinaryNotFoundException, BuildEnvironmentNotFoundException
|
|
||||||
from mozfile import TemporaryDirectory
|
|
||||||
from mozhttpd import MozHttpd
|
|
||||||
from mozprofile import FirefoxProfile, Preferences
|
|
||||||
@@ -87,9 +87,22 @@ if __name__ == "__main__":
|
|
||||||
locations = ServerLocations()
|
|
||||||
locations.add_host(host="127.0.0.1", port=PORT, options="primary,privileged")
|
|
||||||
|
|
||||||
- old_profraw_files = glob.glob("*.profraw")
|
|
||||||
- for f in old_profraw_files:
|
|
||||||
- os.remove(f)
|
|
||||||
+ using_gcc = False
|
|
||||||
+ try:
|
|
||||||
+ if build.config_environment.substs.get('CC_TYPE') == 'gcc':
|
|
||||||
+ using_gcc = True
|
|
||||||
+ except BuildEnvironmentNotFoundException:
|
|
||||||
+ pass
|
|
||||||
+
|
|
||||||
+ if using_gcc:
|
|
||||||
+ for dirpath, _, filenames in os.walk('.'):
|
|
||||||
+ for f in filenames:
|
|
||||||
+ if f.endswith('.gcda'):
|
|
||||||
+ os.remove(os.path.join(dirpath, f))
|
|
||||||
+ else:
|
|
||||||
+ old_profraw_files = glob.glob('*.profraw')
|
|
||||||
+ for f in old_profraw_files:
|
|
||||||
+ os.remove(f)
|
|
||||||
|
|
||||||
with TemporaryDirectory() as profilePath:
|
|
||||||
# TODO: refactor this into mozprofile
|
|
||||||
@@ -212,6 +225,10 @@ if __name__ == "__main__":
|
|
||||||
print("Firefox exited successfully, but produced a crashreport")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
+ print('Copying profile data....')
|
|
||||||
+ os.system('pwd');
|
|
||||||
+ os.system('tar cf profdata.tar.gz `find . -name "*.gcda"`; cd ..; tar xf instrumented/profdata.tar.gz;');
|
|
||||||
+
|
|
||||||
llvm_profdata = env.get("LLVM_PROFDATA")
|
|
||||||
if llvm_profdata:
|
|
||||||
profraw_files = glob.glob("*.profraw")
|
|
||||||
diff -up firefox-99.0/build/unix/mozconfig.unix.pgo firefox-99.0/build/unix/mozconfig.unix
|
|
||||||
--- firefox-99.0/build/unix/mozconfig.unix.pgo 2022-03-31 01:24:38.000000000 +0200
|
|
||||||
+++ firefox-99.0/build/unix/mozconfig.unix 2022-04-04 10:15:45.387694143 +0200
|
|
||||||
@@ -4,6 +4,15 @@ if [ -n "$FORCE_GCC" ]; then
|
|
||||||
CC="$MOZ_FETCHES_DIR/gcc/bin/gcc"
|
|
||||||
CXX="$MOZ_FETCHES_DIR/gcc/bin/g++"
|
|
||||||
|
|
||||||
+ if [ -n "$MOZ_PGO" ]; then
|
|
||||||
+ if [ -z "$USE_ARTIFACT" ]; then
|
|
||||||
+ ac_add_options --enable-lto
|
|
||||||
+ fi
|
|
||||||
+ export AR="$topsrcdir/gcc/bin/gcc-ar"
|
|
||||||
+ export NM="$topsrcdir/gcc/bin/gcc-nm"
|
|
||||||
+ export RANLIB="$topsrcdir/gcc/bin/gcc-ranlib"
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
# We want to make sure we use binutils and other binaries in the tooltool
|
|
||||||
# package.
|
|
||||||
mk_add_options "export PATH=$MOZ_FETCHES_DIR/gcc/bin:$PATH"
|
|
||||||
diff -up firefox-99.0/extensions/spellcheck/src/moz.build.pgo firefox-99.0/extensions/spellcheck/src/moz.build
|
|
||||||
--- firefox-99.0/extensions/spellcheck/src/moz.build.pgo 2022-03-31 01:24:50.000000000 +0200
|
|
||||||
+++ firefox-99.0/extensions/spellcheck/src/moz.build 2022-04-04 10:15:45.387694143 +0200
|
|
||||||
@@ -28,3 +28,5 @@ EXPORTS.mozilla += [
|
|
||||||
"mozInlineSpellChecker.h",
|
|
||||||
"mozSpellChecker.h",
|
|
||||||
]
|
|
||||||
+
|
|
||||||
+CXXFLAGS += ['-fno-devirtualize']
|
|
||||||
diff -up firefox-99.0/toolkit/components/terminator/nsTerminator.cpp.pgo firefox-99.0/toolkit/components/terminator/nsTerminator.cpp
|
|
||||||
--- firefox-99.0/toolkit/components/terminator/nsTerminator.cpp.pgo 2022-04-04 10:15:45.387694143 +0200
|
|
||||||
+++ firefox-99.0/toolkit/components/terminator/nsTerminator.cpp 2022-04-04 10:19:07.022239556 +0200
|
|
||||||
@@ -466,6 +466,11 @@ void nsTerminator::StartWatchdog() {
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+ // Disable watchdog for PGO train builds - writting profile information at
|
|
||||||
+ // exit may take time and it is better to make build hang rather than
|
|
||||||
+ // silently produce poorly performing binary.
|
|
||||||
+ crashAfterMS = INT32_MAX;
|
|
||||||
+
|
|
||||||
UniquePtr<Options> options(new Options());
|
|
||||||
// crashAfterTicks is guaranteed to be > 0 as
|
|
||||||
// crashAfterMS >= ADDITIONAL_WAIT_BEFORE_CRASH_MS >> HEARTBEAT_INTERVAL_MS
|
|
@ -1,23 +0,0 @@
|
|||||||
diff -up firefox-55.0/js/src/old-configure.in.rhbz-1219542-s390 firefox-55.0/js/src/old-configure.in
|
|
||||||
--- firefox-55.0/js/src/old-configure.in.rhbz-1219542-s390 2017-07-31 18:20:48.000000000 +0200
|
|
||||||
+++ firefox-55.0/js/src/old-configure.in 2017-08-02 14:31:32.190243669 +0200
|
|
||||||
@@ -541,7 +541,7 @@ case "$host" in
|
|
||||||
|
|
||||||
*-linux*|*-kfreebsd*-gnu|*-gnu*)
|
|
||||||
HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
|
|
||||||
- HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
|
|
||||||
+ HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O1}"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
@@ -617,8 +617,8 @@ case "$target" in
|
|
||||||
|
|
||||||
*-*linux*)
|
|
||||||
if test "$GNU_CC" -o "$GNU_CXX"; then
|
|
||||||
- MOZ_PGO_OPTIMIZE_FLAGS="-O3"
|
|
||||||
- MOZ_OPTIMIZE_FLAGS="-O3"
|
|
||||||
+ MOZ_PGO_OPTIMIZE_FLAGS="-O1"
|
|
||||||
+ MOZ_OPTIMIZE_FLAGS="-O1"
|
|
||||||
if test -z "$CLANG_CC"; then
|
|
||||||
MOZ_OPTIMIZE_FLAGS="-freorder-blocks $MOZ_OPTIMIZE_FLAGS"
|
|
||||||
fi
|
|
11
sources
11
sources
@ -1,5 +1,6 @@
|
|||||||
SHA512 (nspr-4.34.0-3.el8_1.src.rpm) = fe4715694c297cd8cefa577946358a90103bde73e78a3fdf13d202a3791736e8a48fbece09ee3d15f6d81ae051e26d96400b03bb6bf8630715746c5e1a643543
|
SHA512 (cbindgen-vendor.tar.xz) = 161811f4adfc74e5d92871c78139704d32e1e1ad6b615c85353de300d9647a68f1ca8b1c953f7cc5539d861e9e8d8e42892cae757a3eafea78804e19bc323c16
|
||||||
SHA512 (cbindgen-vendor.tar.xz) = 590e27b6c093a5c1bd839ca39c68537097d0849087a4a385ee6d7b180e9ceadbbb8974fa997f5f75af03e2c243a2f232d0d4c4c46e253ea464521b76c6886067
|
SHA512 (nspr-4.35.0-1.el8_1.src.rpm) = 5123a443fcc42602e31104999be339ae899eb7b1f1e2f1ea87ba4f283eb894d08ab568e421dba1df4770f23be91ff88aa6a0748bce7feef31ed88bee5bdecb2c
|
||||||
SHA512 (nss-3.79.0-11.el8_1.src.rpm) = c4516e7917a45ac2d401700b6a7e23d5942d62fe2307cf130c526eea5a924516f82c2d2426b919c89004c4466c78061ea050721c1889a01fcd436cb562d4b1bd
|
SHA512 (nss-3.90.0-2.el8_1.src.rpm) = 850cd6a343e62d34ad28ac356db03371f0b1f018274901cc700cc4f8138c9929eb159bbb1ebe167f727a69f6499423a54581ca65ed655ee468f1cae8450df85c
|
||||||
SHA512 (thunderbird-102.15.1.processed-source.tar.xz) = 8f138662403623f1259592bdd6c67a7d0293e6e1599508987a83b9f12253747e8a60a285e2dddb57d062f176fb2e63f9ce7f312a3cf91c31f8e918f1f2ee96b6
|
SHA512 (thunderbird-115.2.1.processed-source.tar.xz) = 6dd93c0a78c2e69c7b6b82ba842f0786f7ea9a45596ebf2e146b957a2089be1613d418146b5c2f9865da12b144505a0685ae2d555b4b8c025d7983a13af7ac2e
|
||||||
SHA512 (thunderbird-langpacks-102.15.1-20230913.tar.xz) = aac5cf22f11b8c788b067ad71cb8ae61455b26b964956d7bf604c1b7ec5770454678b2544de05ef7e76cfcb440992dc1735221824955e10ad63655a290b47a96
|
SHA512 (thunderbird-langpacks-115.2.1-20230908.tar.xz) = 1b1d0dd6679b0c8783dd8489aeb8329d08be75055edb0462b29f3418de76a0cb42b8427e20265edf8eaecee42d54c2686112d4d1d71c218ddfc02cb176547881
|
||||||
|
SHA512 (nss-3.90.0-3.el9_0.src.rpm) = f321b9c1bda0b09eee564e2903023435851a4ff2e55bdd5b03012ca51be7999b18d85061f874065d0b25913721eb574f49746a3111f8f1cdd5b21268dddd8367
|
||||||
|
@ -1,31 +1,35 @@
|
|||||||
ac_add_options --enable-application=comm/mail
|
ac_add_options --enable-application=comm/mail
|
||||||
|
|
||||||
ac_add_options --prefix="$PREFIX"
|
ac_add_options --allow-addon-sideload
|
||||||
ac_add_options --libdir="$LIBDIR"
|
ac_add_options --disable-bootstrap
|
||||||
ac_add_options --with-system-zlib
|
ac_add_options --disable-crashreporter
|
||||||
|
#ac_add_options --disable-elf-hack
|
||||||
|
ac_add_options --disable-jemalloc
|
||||||
ac_add_options --disable-strip
|
ac_add_options --disable-strip
|
||||||
ac_add_options --disable-tests
|
ac_add_options --disable-tests
|
||||||
#ac_add_options --enable-libnotify
|
|
||||||
ac_add_options --enable-necko-wifi
|
|
||||||
ac_add_options --disable-updater
|
ac_add_options --disable-updater
|
||||||
ac_add_options --enable-chrome-format=omni
|
ac_add_options --enable-chrome-format=omni
|
||||||
ac_add_options --enable-pulseaudio
|
ac_add_options --enable-default-toolkit=cairo-gtk3-wayland
|
||||||
ac_add_options --without-system-icu
|
|
||||||
ac_add_options --enable-release
|
|
||||||
ac_add_options --allow-addon-sideload
|
|
||||||
ac_add_options --with-system-jpeg
|
|
||||||
ac_add_options --enable-js-shell
|
ac_add_options --enable-js-shell
|
||||||
ac_add_options --with-unsigned-addon-scopes=app,system
|
ac_add_options --enable-necko-wifi
|
||||||
ac_add_options --without-sysroot
|
ac_add_options --enable-official-branding
|
||||||
|
ac_add_options --enable-official-branding
|
||||||
|
ac_add_options --enable-pulseaudio
|
||||||
|
ac_add_options --enable-release
|
||||||
|
ac_add_options --enable-system-ffi
|
||||||
|
ac_add_options --libdir="$LIBDIR"
|
||||||
|
ac_add_options --prefix="$PREFIX"
|
||||||
ac_add_options --update-channel=release
|
ac_add_options --update-channel=release
|
||||||
# investigate this one:
|
|
||||||
ac_add_options --without-wasm-sandboxed-libraries
|
|
||||||
ac_add_options --with-mozilla-api-keyfile=../mozilla-api-key
|
|
||||||
ac_add_options --with-google-location-service-api-keyfile=../google-api-key
|
ac_add_options --with-google-location-service-api-keyfile=../google-api-key
|
||||||
ac_add_options --with-google-safebrowsing-api-keyfile=../google-api-key
|
ac_add_options --with-google-safebrowsing-api-keyfile=../google-api-key
|
||||||
ac_add_options --disable-crashreporter
|
ac_add_options --with-mozilla-api-keyfile=../mozilla-api-key
|
||||||
ac_add_options --enable-official-branding
|
ac_add_options --without-sysroot
|
||||||
ac_add_options --disable-bootstrap
|
ac_add_options --without-system-icu
|
||||||
|
ac_add_options --without-wasm-sandboxed-libraries
|
||||||
|
ac_add_options --with-system-jpeg
|
||||||
|
ac_add_options --with-system-jpeg
|
||||||
|
ac_add_options --with-system-zlib
|
||||||
|
ac_add_options --with-unsigned-addon-scopes=app,system
|
||||||
|
|
||||||
export BUILD_OFFICIAL=1
|
export BUILD_OFFICIAL=1
|
||||||
export MOZILLA_OFFICIAL=1
|
export MOZILLA_OFFICIAL=1
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
MOZ_ARCH=$(uname -m)
|
MOZ_ARCH=$(uname -m)
|
||||||
case $MOZ_ARCH in
|
case $MOZ_ARCH in
|
||||||
x86_64 | s390x | sparc64 )
|
x86_64 | s390x | sparc64 )
|
||||||
MOZ_LIB_DIR="%PREFIX%/lib64"
|
MOZ_LIB_DIR="__PREFIX__/lib64"
|
||||||
SECONDARY_LIB_DIR="%PREFIX%/lib"
|
SECONDARY_LIB_DIR="__PREFIX__/lib"
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
MOZ_LIB_DIR="%PREFIX%/lib"
|
MOZ_LIB_DIR="__PREFIX__/lib"
|
||||||
SECONDARY_LIB_DIR="%PREFIX%/lib64"
|
SECONDARY_LIB_DIR="__PREFIX__/lib64"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ fi
|
|||||||
##
|
##
|
||||||
## Set MOZ_APP_LAUNCHER for gnome-session
|
## Set MOZ_APP_LAUNCHER for gnome-session
|
||||||
##
|
##
|
||||||
export MOZ_APP_LAUNCHER="%PREFIX%/bin/thunderbird"
|
export MOZ_APP_LAUNCHER="__PREFIX__/bin/thunderbird"
|
||||||
|
|
||||||
##
|
##
|
||||||
## Disable the GNOME crash dialog, Moz has it's own
|
## Disable the GNOME crash dialog, Moz has it's own
|
||||||
|
1430
thunderbird.spec
1430
thunderbird.spec
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user