From fb48ad119e854f0ca4773079576a67caca47344a Mon Sep 17 00:00:00 2001 From: Duncaen Date: Tue, 10 Aug 2021 14:12:22 +0200 Subject: [PATCH] firefox: update to 91.0, rebuild for icu-69.1 --- srcpkgs/firefox/patches/lto-thin.patch | 19 +++++++++++++++++++ srcpkgs/firefox/template | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/firefox/patches/lto-thin.patch diff --git a/srcpkgs/firefox/patches/lto-thin.patch b/srcpkgs/firefox/patches/lto-thin.patch new file mode 100644 index 00000000000..e85cbce3658 --- /dev/null +++ b/srcpkgs/firefox/patches/lto-thin.patch @@ -0,0 +1,19 @@ +$OpenBSD: patch-config_makefiles_rust_mk,v 1.6 2021/01/26 15:52:58 landry Exp $ + +use lto=thin to reduce memory pressure when building gkrust +https://bugzilla.mozilla.org/show_bug.cgi?id=1644409 +https://bugzilla.mozilla.org/show_bug.cgi?id=1640982 + +Index: config/makefiles/rust.mk +--- a/config/makefiles/rust.mk.orig ++++ a/config/makefiles/rust.mk +@@ -70,7 +70,8 @@ ifndef MOZ_DEBUG_RUST + # gkrust_gtest. And not when doing cross-language LTO. + ifndef MOZ_LTO_RUST_CROSS + ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE))) +-cargo_rustc_flags += -Clto ++cargo_rustc_flags += -Clto=thin ++export CARGO_PROFILE_RELEASE_LTO=thin + endif + # We need -Cembed-bitcode=yes for all crates when using -Clto. + RUSTFLAGS += -Cembed-bitcode=yes diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index 08c8efadf2d..f9693404b84 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -3,15 +3,15 @@ # THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/firefox-i18n". # pkgname=firefox -version=90.0.1 +version=91.0 revision=1 build_helper="rust" short_desc="Mozilla Firefox web browser" -maintainer="Orphaned " +maintainer="Duncaen " license="MPL-2.0, GPL-2.0-or-later, LGPL-2.1-or-later" homepage="https://www.mozilla.org/firefox/" distfiles="${MOZILLA_SITE}/${pkgname}/releases/${version}/source/${pkgname}-${version}.source.tar.xz" -checksum=85796ca5857e2196c8722719423d3f164396efdefb2988d3efd6d5c399dc0a87 +checksum=2a4d1f788ab77f68380d4e6ab0b36bd1efd1a4ac9e9c6d10e39377894c077901 lib32disabled=yes