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 020651382C5 for ; Tue, 26 Jan 2021 13:03:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 015E8E0CCA; Tue, 26 Jan 2021 13:03:27 +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 D7C9DE0CCA for ; Tue, 26 Jan 2021 13:03:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 68D6933BEB2 for ; Tue, 26 Jan 2021 13:03:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C32DB476 for ; Tue, 26 Jan 2021 13:03:23 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1611666201.80b87c3abb4124fb1699878443001880c15b1002.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/seamonkey/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/seamonkey/metadata.xml www-client/seamonkey/seamonkey-2.53.6.ebuild X-VCS-Directories: www-client/seamonkey/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 80b87c3abb4124fb1699878443001880c15b1002 X-VCS-Branch: master Date: Tue, 26 Jan 2021 13:03:23 +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: 19ad636b-5fef-4c0a-b132-18412e5eb1f2 X-Archives-Hash: 1650bfa42164bcc8fc687603dfdfd0cc commit: 80b87c3abb4124fb1699878443001880c15b1002 Author: Lars Wendler gentoo org> AuthorDate: Tue Jan 26 13:03:11 2021 +0000 Commit: Lars Wendler gentoo org> CommitDate: Tue Jan 26 13:03:21 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80b87c3a www-client/seamonkey: Added "lto" USE flag Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Lars Wendler gentoo.org> www-client/seamonkey/metadata.xml | 1 + www-client/seamonkey/seamonkey-2.53.6.ebuild | 35 ++++++++++++++++++++++++---- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/www-client/seamonkey/metadata.xml b/www-client/seamonkey/metadata.xml index 1d714b2e631..e527e43b5c4 100644 --- a/www-client/seamonkey/metadata.xml +++ b/www-client/seamonkey/metadata.xml @@ -15,6 +15,7 @@ Build with user-specified compiler optimizations (-Os, -O0, -O1, -O2, -O3) from CFLAGS (unsupported) Allow Gecko Media Plugins (binary blobs) to be automatically downloaded and kept up-to-date in user profiles Use inter-process communication between tabs and plugins. Allows for greater stability in case of plugin crashes + Enable Link Time Optimization (LTO). Requires Gold linker Build roaming extension support (default on) Use the system-wide media-libs/dav1d and media-libs/libaom library instead of bundled diff --git a/www-client/seamonkey/seamonkey-2.53.6.ebuild b/www-client/seamonkey/seamonkey-2.53.6.ebuild index f2fc86ef1b5..f6e913d6d04 100644 --- a/www-client/seamonkey/seamonkey-2.53.6.ebuild +++ b/www-client/seamonkey/seamonkey-2.53.6.ebuild @@ -44,7 +44,7 @@ KEYWORDS="~amd64 ~ppc64 ~x86" SLOT="0" LICENSE="MPL-2.0 GPL-2 LGPL-2.1" SYSTEM_IUSE=( +system-{av1,harfbuzz,icu,jpeg,libevent,libvpx,sqlite} ) -IUSE="+chatzilla +crypt dbus debug +gmp-autoupdate +ipc jack minimal +IUSE="+chatzilla +crypt dbus debug +gmp-autoupdate +ipc jack lto minimal neon pulseaudio +roaming selinux startup-notification ${SYSTEM_IUSE[@]} test wifi" RESTRICT="!test? ( test )" @@ -138,6 +138,7 @@ RDEPEND=" selinux? ( sec-policy/selinux-mozilla ) " DEPEND+="${CDEPEND} + lto? ( sys-devel/binutils[gold] ) amd64? ( virtual/opengl ) x86? ( virtual/opengl ) " @@ -162,7 +163,17 @@ pkg_setup() { pkg_pretend() { # Ensure we have enough disk space to compile - if use debug || use test ; then + if use debug || use lto || use test ; then + CHECKREQS_DISK_BUILD="16G" + else + CHECKREQS_DISK_BUILD="12G" + fi + check-reqs_pkg_setup +} + +spkg_setup() { + # Ensure we have enough disk space to compile + if use debug || use lto || use test ; then CHECKREQS_DISK_BUILD="16G" else CHECKREQS_DISK_BUILD="12G" @@ -236,11 +247,11 @@ src_configure() { # get your own set of keys. _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc - #################################### + ###################################### # # mozconfig, CFLAGS and CXXFLAGS setup # - #################################### + ###################################### mozconfig_init @@ -351,6 +362,22 @@ src_configure() { media/libvpx/moz.build || die fi fi + + if use lto ; then + # Linking only works when using ld.gold when LTO is enabled + mozconfig_add_options_ac "forcing ld=gold due to USE=lto" --enable-linker=gold + # ThinLTO is currently broken, see bmo#1644409 + mozconfig_add_options_ac '+lto' --enable-lto=full + else + if tc-ld-is-gold ; then + mozconfig_add_options_ac "linker is set to gold" --enable-linker=gold + else + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + fi + # LTO flag was handled via configure + filter-flags '-flto*' + ################################## # Former mozconfig_config() end # ##################################