diff --git a/mp4parse-rust-8b5b652d38e007e736bb442ccd5aa5ed699db100.patch b/mp4parse-rust-8b5b652d38e007e736bb442ccd5aa5ed699db100.patch new file mode 100644 index 0000000..fd7a09e --- /dev/null +++ b/mp4parse-rust-8b5b652d38e007e736bb442ccd5aa5ed699db100.patch @@ -0,0 +1,18 @@ +--- thunderbird-102.11.1/third_party/rust/mp4parse/src/lib.rs.mp4parse-rust-8b5b652d38e007e736bb442ccd5aa5ed699db100 2023-05-24 00:50:52.000000000 +0200 ++++ thunderbird-102.11.1/third_party/rust/mp4parse/src/lib.rs 2023-06-08 14:17:40.193695212 +0200 +@@ -3184,8 +3184,13 @@ macro_rules! impl_mul { + type Output = $output; + + fn mul(self, rhs: $rhs) -> Self::Output { +- static_assertions::const_assert!(<$output>::MAX <= <$inner>::MAX as u64); +- static_assertions::const_assert!(<$lhs>::MAX * <$rhs>::MAX <= <$output>::MAX); ++ static_assertions::const_assert!( ++ <$output as UpperBounded>::MAX <= <$inner>::MAX as u64 ++ ); ++ static_assertions::const_assert!( ++ <$lhs as UpperBounded>::MAX * <$rhs as UpperBounded>::MAX ++ <= <$output as UpperBounded>::MAX ++ ); + + let lhs: $inner = self.get().into(); + let rhs: $inner = rhs.get().into(); diff --git a/thunderbird.spec b/thunderbird.spec index 488a626..29de379 100644 --- a/thunderbird.spec +++ b/thunderbird.spec @@ -140,6 +140,10 @@ Patch426: gcc13-header-dependencies.patch # https://github.com/rust-lang/rust-bindgen/pull/2339 Patch427: rust-bindgen-2319-2339.patch +# Needed with rust 1.70 +# https://github.com/mozilla/mp4parse-rust/commit/8b5b652d38e007e736bb442ccd5aa5ed699db100 +Patch428: mp4parse-rust-8b5b652d38e007e736bb442ccd5aa5ed699db100.patch + # PPC fix Patch304: mozilla-1245783.patch @@ -339,6 +343,8 @@ popd # MUST ONLY be applied for building against clang LLVM 16. # Would crash with earlier clang. %patch -P 427 -p1 -b .rust-bindgen-2319-2339 +# Needed with rust 1.70 +%patch -P 428 -p1 -b .mp4parse-rust-8b5b652d38e007e736bb442ccd5aa5ed699db100 %endif %patch -P 501 -p1 -b .expat-CVE-2022-25235