From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8CAD3138334 for ; Sat, 14 Sep 2019 20:35:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8AF83E0896; Sat, 14 Sep 2019 20:35:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 61673E0896 for ; Sat, 14 Sep 2019 20:35:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A844D34B1AB for ; Sat, 14 Sep 2019 20:35:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2CA9B71A for ; Sat, 14 Sep 2019 20:35:02 +0000 (UTC) From: "Jory Pratt" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jory Pratt" Message-ID: <1568131607.4694c68a6b60520d02af98fc1fced6dfc642ee93.anarchy@gentoo> Subject: [gentoo-commits] proj/mozilla:master commit in: www-client/firefox/files/, www-client/firefox/ X-VCS-Repository: proj/mozilla X-VCS-Files: www-client/firefox/files/firefox-69.0-lto-gcc-fix.patch www-client/firefox/firefox-69.0-r1.ebuild www-client/firefox/firefox-69.0.ebuild X-VCS-Directories: www-client/firefox/ www-client/firefox/files/ X-VCS-Committer: anarchy X-VCS-Committer-Name: Jory Pratt X-VCS-Revision: 4694c68a6b60520d02af98fc1fced6dfc642ee93 X-VCS-Branch: master Date: Sat, 14 Sep 2019 20:35:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1f2d8d89-dd25-4ce6-874e-d090ce30ca31 X-Archives-Hash: 4b2dff83ba6fe3f4442a6edb6d554e5d commit: 4694c68a6b60520d02af98fc1fced6dfc642ee93 Author: Jory Pratt gentoo org> AuthorDate: Tue Sep 10 16:06:47 2019 +0000 Commit: Jory Pratt gentoo org> CommitDate: Tue Sep 10 16:06:47 2019 +0000 URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=4694c68a www-client/firefox: fix lto builds Closes: https://bugs.gentoo.org/689358 Closes: https://bugs.gentoo.org/693654 Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Jory Pratt gentoo.org> .../firefox/files/firefox-69.0-lto-gcc-fix.patch | 26 ++++++++++++++++++++++ ...{firefox-69.0.ebuild => firefox-69.0-r1.ebuild} | 6 ++--- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/www-client/firefox/files/firefox-69.0-lto-gcc-fix.patch b/www-client/firefox/files/firefox-69.0-lto-gcc-fix.patch new file mode 100644 index 0000000..9fe9673 --- /dev/null +++ b/www-client/firefox/files/firefox-69.0-lto-gcc-fix.patch @@ -0,0 +1,26 @@ +# HG changeset patch +# Parent 79ae951dc72ba16a2451c4cde7298aa986376b0c +Fix lto builds of sandbox on linux + +diff --git a/security/sandbox/linux/moz.build b/security/sandbox/linux/moz.build +--- a/security/sandbox/linux/moz.build ++++ b/security/sandbox/linux/moz.build +@@ -95,17 +95,17 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc') + CXXFLAGS += ['-Wno-shadow'] + SOURCES['../chromium/sandbox/linux/services/syscall_wrappers.cc'].flags += [ + '-Wno-empty-body', + ] + + # gcc lto likes to put the top level asm in syscall.cc in a different partition + # from the function using it which breaks the build. Work around that by + # forcing there to be only one partition. +-for f in CONFIG['OS_CXXFLAGS']: ++for f in CONFIG['MOZ_LTO_CFLAGS']: + if f.startswith('-flto') and CONFIG['CC_TYPE'] != 'clang': + LDFLAGS += ['--param', 'lto-partitions=1'] + + DEFINES['NS_NO_XPCOM'] = True + DisableStlWrapping() + + LOCAL_INCLUDES += ['/security/sandbox/linux'] + LOCAL_INCLUDES += ['/security/sandbox/chromium-shim'] diff --git a/www-client/firefox/firefox-69.0.ebuild b/www-client/firefox/firefox-69.0-r1.ebuild similarity index 99% rename from www-client/firefox/firefox-69.0.ebuild rename to www-client/firefox/firefox-69.0-r1.ebuild index 8e13dc4..4e89b4f 100644 --- a/www-client/firefox/firefox-69.0.ebuild +++ b/www-client/firefox/firefox-69.0-r1.ebuild @@ -257,6 +257,7 @@ src_unpack() { src_prepare() { use !wayland && rm -f "${WORKDIR}/firefox/2019_mozilla-bug1539471.patch" eapply "${WORKDIR}/firefox" + eapply "${FILESDIR}${PN}-69.0-lto-gcc-fix.patch" # Allow user to apply any additional patches without modifing ebuild eapply_user @@ -384,9 +385,6 @@ src_configure() { show_old_compiler_warning=1 fi - # Bug 689358 - append-cxxflags -flto - if ! use cpu_flags_x86_avx2 ; then local _gcc_version_with_ipa_cdtor_fix="8.3" local _current_gcc_version="$(gcc-major-version).$(gcc-minor-version)" @@ -431,7 +429,7 @@ src_configure() { if use clang ; then # This is upstream's default mozconfig_annotate "forcing ld=lld due to USE=clang" --enable-linker=lld - elif tc-ld-is-gold ; then + elif tc-ld-is-gold || use lto ; then mozconfig_annotate "linker is set to gold" --enable-linker=gold else mozconfig_annotate "linker is set to bfd" --enable-linker=bfd