Commit Graph

1 Commits

Author SHA1 Message Date
Eike Rathke 8007dbe364 Related: #2192800 Fix FTBFS with clang LLVM 16
Add rust-bindgen patch for building against clang LLVM 16 on
c9s/rhel-9.3.0

With clang LLVM 16 rust-bindgen 0.56.0 is too old, see
https://github.com/rust-lang/rust-bindgen/pull/2319
https://github.com/rust-lang/rust-bindgen/issues/2312
https://github.com/rust-lang/rust-bindgen/issues/2488
https://github.com/rust-lang/rust-bindgen/pull/2339
https://github.com/rust-lang/rust-bindgen/issues/2325

Introduce dist_to_rhel9_minor() and rhel9_minor_version.
Rename dist_to_rhel_minor() to dist_to_rhel8_minor() and
rhel_minor_version to rhel8_minor_version.

Add mp4parse-rust patch to build with rust 1.70

Discovered as
8b5b652d38
apparently its commit summary "Fix unstable-name-collisions warning by using
fully qualified path" being completely unrelated to the original error message:

    error[E0277]: the trait bound `u64: Mul<NonZeroU8>` is not satisfied
	--> /builddir/build/BUILD/thunderbird-102.11.1/third_party/rust/mp4parse/src/lib.rs:3188:62
	 |
    3188 |                 static_assertions::const_assert!(<$lhs>::MAX * <$rhs>::MAX <= <$output>::MAX);
	 |                                                              ^ no implementation for `u64 * NonZeroU8`
2023-06-09 13:41:52 +02:00