diff options
author | hawkeye116477 | 2020-07-24 16:26:01 +0200 |
---|---|---|
committer | hawkeye116477 | 2020-07-24 16:26:01 +0200 |
commit | 4c2db2695fb9a6d424233c679e75a2b02920a57d (patch) | |
tree | 8899c6603dca8186a4d11e6a7fc07de995a41a9b | |
parent | 565d138243f28197400359c0ded1027adfa74e04 (diff) | |
download | aur-4c2db2695fb9a6d424233c679e75a2b02920a57d.tar.gz |
Fix compiling with Rust 1.45.0
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | BMO1640982.patch | 25 | ||||
-rw-r--r-- | PKGBUILD | 8 |
3 files changed, 33 insertions, 2 deletions
@@ -60,6 +60,7 @@ pkgbase = waterfox-classic-kpe source = pgo_fix_missing_kdejs.patch source = classic-kde.patch::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb-rpm-arch-AppImage/29877042dd393774197b134426e37cb0dbabef34/waterfox-classic-kpe/patches/classic-kde.patch source = classic-kde-xul.patch::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb-rpm-arch-AppImage/29877042dd393774197b134426e37cb0dbabef34/waterfox-classic-kpe/patches/classic-kde-xul.patch + source = BMO1640982.patch sha256sums = SKIP sha256sums = 03b734e8127678ebb260f69702f3be3cba1431c70b67a6e9f0dae62df091f516 sha256sums = 0850a8a8dea9003c67a8ee1fa5eb19a6599eaad9f2ad09db753b74dc5048fdbc @@ -71,6 +72,7 @@ pkgbase = waterfox-classic-kpe sha256sums = bf6743660623b7c9a43b94edc8acbcade07aa222ff2102a2808809df333ebe8e sha256sums = 6ff820e43a48ce9450e59e02877ff574a1921d0b286737d55949ad40865add08 sha256sums = 7b408abf1048c7da504ba1e8fe1da51199f6c011bbe80af1595d9fd810445612 + sha256sums = 33d7feed2093e45a3849785daf67a506052bc37f5c7e3813f7d318b9cfeb5129 pkgname = waterfox-classic-kpe diff --git a/BMO1640982.patch b/BMO1640982.patch new file mode 100644 index 00000000000..0759571e50d --- /dev/null +++ b/BMO1640982.patch @@ -0,0 +1,25 @@ +From 62bf60d79c7023ecd187a68f779fad6126924a4c Mon Sep 17 00:00:00 2001 +Date: Wed, 22 Jul 2020 17:16:03 +0200 +Subject: [PATCH] Bug 1640982 - Set CARGO_PROFILE_RELEASE_LTO=true when + enabling rust LTO. + +--- + config/rules.mk | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/config/rules.mk b/config/rules.mk +index 21f3d69724c6..429194a4d0a6 100644 +--- a/config/rules.mk ++++ b/config/rules.mk +@@ -867,7 +867,11 @@ cargo_rustc_flags = $(CARGO_RUSTCFLAGS) + ifndef DEVELOPER_OPTIONS + ifndef MOZ_DEBUG_RUST + # Enable link-time optimization for release builds. ++# Pass -Clto for older versions of rust, and CARGO_PROFILE_RELEASE_LTO=true ++# for newer ones that support it. Combining the latter with -Clto works, so ++# set both everywhere. + cargo_rustc_flags += -C lto ++export CARGO_PROFILE_RELEASE_LTO=true + endif + endif + @@ -36,7 +36,8 @@ source=("git+https://github.com/MrAlex94/Waterfox.git#commit=$_commit" "dont-statically-link-libstdc++.patch::$_filesurl/patches/dont-statically-link-libstdc%2B%2B.patch" pgo_fix_missing_kdejs.patch "classic-kde.patch::$_filesurl/patches/classic-kde.patch" - "classic-kde-xul.patch::$_filesurl/patches/classic-kde-xul.patch") + "classic-kde-xul.patch::$_filesurl/patches/classic-kde-xul.patch" + BMO1640982.patch) sha256sums=('SKIP' '03b734e8127678ebb260f69702f3be3cba1431c70b67a6e9f0dae62df091f516' '0850a8a8dea9003c67a8ee1fa5eb19a6599eaad9f2ad09db753b74dc5048fdbc' @@ -47,7 +48,8 @@ sha256sums=('SKIP' '877bc1f0e768d96118bb739725e590467773dd897c31263099e52b8d7aaaa4c8' 'bf6743660623b7c9a43b94edc8acbcade07aa222ff2102a2808809df333ebe8e' '6ff820e43a48ce9450e59e02877ff574a1921d0b286737d55949ad40865add08' - '7b408abf1048c7da504ba1e8fe1da51199f6c011bbe80af1595d9fd810445612') + '7b408abf1048c7da504ba1e8fe1da51199f6c011bbe80af1595d9fd810445612' + '33d7feed2093e45a3849785daf67a506052bc37f5c7e3813f7d318b9cfeb5129') prepare() { # Fix openSUSE's patches for Waterfox @@ -68,6 +70,8 @@ prepare() { patch -Np1 -i ../classic-kde-xul.patch patch -Np1 -i ../pgo_fix_missing_kdejs.patch + patch -Np1 -i ../BMO1640982.patch + cat >.mozconfig <<END export CC=clang export CXX=clang++ |