commit: e4aed962d8b2b13cca1109f0e899df83733f3623
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 18 18:42:57 2020 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat Jul 18 18:43:15 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4aed962
www-client/seamonkey: Fixed build with =dev-lang/rust-1.45.0
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
.../seamonkey/files/seamonkey-2.53.3-rust-1.45.0.patch | 15 +++++++++++++++
www-client/seamonkey/seamonkey-2.53.3.ebuild | 5 +++++
2 files changed, 20 insertions(+)
diff --git a/www-client/seamonkey/files/seamonkey-2.53.3-rust-1.45.0.patch
b/www-client/seamonkey/files/seamonkey-2.53.3-rust-1.45.0.patch
new file mode 100644
index 00000000000..e2c6aa20161
--- /dev/null
+++ b/www-client/seamonkey/files/seamonkey-2.53.3-rust-1.45.0.patch
@@ -0,0 +1,15 @@
+--- seamonkey-2.53.3/mozilla/config/rules.mk
++++ seamonkey-2.53.3/mozilla/config/rules.mk
+@@ -871,12 +871,6 @@
+ # These flags are passed via `cargo rustc` and only apply to the final rustc
+ # invocation (i.e., only the top-level crate, not its dependencies).
+ cargo_rustc_flags = $(CARGO_RUSTCFLAGS)
+-ifndef DEVELOPER_OPTIONS
+-ifndef MOZ_DEBUG_RUST
+-# Enable link-time optimization for release builds.
+-cargo_rustc_flags += -C lto
+-endif
+-endif
+
+ rustflags_override = RUSTFLAGS='$(MOZ_RUST_DEFAULT_FLAGS) $(RUSTFLAGS)'
+
diff --git a/www-client/seamonkey/seamonkey-2.53.3.ebuild
b/www-client/seamonkey/seamonkey-2.53.3.ebuild
index 8d4b46d1b78..c81cbe49b6a 100644
--- a/www-client/seamonkey/seamonkey-2.53.3.ebuild
+++ b/www-client/seamonkey/seamonkey-2.53.3.ebuild
@@ -189,6 +189,11 @@ src_prepare() {
edos2unix "${file}"
done
+ if has_version ">=virtual/rust-1.45.0" ; then
+ einfo "Unbreak build with >=rust-1.45.0, bmo#1640982 ..."
+ eapply "${FILESDIR}/${PN}-2.53.3-rust-1.45.0.patch"
+ fi
+
# Allow user to apply any additional patches without modifing ebuild
eapply_user