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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EDC06158094 for ; Fri, 26 Aug 2022 08:35:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21CC2E08BB; Fri, 26 Aug 2022 08:35:50 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 00BBBE08BB for ; Fri, 26 Aug 2022 08:35:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DB79333E695 for ; Fri, 26 Aug 2022 08:35:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3007B59F for ; Fri, 26 Aug 2022 08:35:47 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1661502814.6676442e3694fcd557ffdbffb028b9ee1fe6d830.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils/, profiles/base/ X-VCS-Repository: repo/gentoo X-VCS-Files: profiles/base/package.use.mask sys-devel/binutils/binutils-2.39.ebuild sys-devel/binutils/binutils-9999.ebuild sys-devel/binutils/metadata.xml X-VCS-Directories: profiles/base/ sys-devel/binutils/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 6676442e3694fcd557ffdbffb028b9ee1fe6d830 X-VCS-Branch: master Date: Fri, 26 Aug 2022 08:35:47 +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: b775bbb0-b324-4846-9fa4-b82006a7cbad X-Archives-Hash: cb89b2791e293c21d60d817e28f6ffeb commit: 6676442e3694fcd557ffdbffb028b9ee1fe6d830 Author: Sam James gentoo org> AuthorDate: Fri Aug 26 08:32:53 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Aug 26 08:33:34 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6676442e sys-devel/binutils: make gprofng optional (masked USE flag) We can enable this by default in future, but it's brand new in 2.39 with several bugs: - Doesn't build on musl (https://sourceware.org/bugzilla/show_bug.cgi?id=29477) - No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521) - Broken at runtime without Java (https://sourceware.org/bugzilla/show_bug.cgi?id=29479) - binutils-config (and this ebuild?) needs adaptation first (https://bugs.gentoo.org/865113) Bug: https://bugs.gentoo.org/865113 Signed-off-by: Sam James gentoo.org> profiles/base/package.use.mask | 4 ++++ sys-devel/binutils/binutils-2.39.ebuild | 10 +++++++++- sys-devel/binutils/binutils-9999.ebuild | 10 +++++++++- sys-devel/binutils/metadata.xml | 1 + 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask index 81fc4c65ee87..9678d0c1b0eb 100644 --- a/profiles/base/package.use.mask +++ b/profiles/base/package.use.mask @@ -6,6 +6,10 @@ # This file is only for generic masks. For arch-specific masks (i.e. # mask everywhere, unmask on arch/*) use arch/base. +# Sam James (2022-08-26) +# Broken at runtime for now (bug #865113). +sys-devel/binutils gprofng + # Matthew Smith (2022-08-19) # Upstream recommends that tbb be built with a patch to avoid bugs. # https://github.com/rui314/mold/releases/tag/v1.4.1 diff --git a/sys-devel/binutils/binutils-2.39.ebuild b/sys-devel/binutils/binutils-2.39.ebuild index d3766ed10148..297f02af663b 100644 --- a/sys-devel/binutils/binutils-2.39.ebuild +++ b/sys-devel/binutils/binutils-2.39.ebuild @@ -8,7 +8,7 @@ inherit elisp-common libtool flag-o-matic gnuconfig strip-linguas toolchain-func DESCRIPTION="Tools necessary to build programs" HOMEPAGE="https://sourceware.org/binutils/" LICENSE="GPL-3+" -IUSE="cet default-gold doc emacs gold multitarget +nls pgo +plugins static-libs test vanilla" +IUSE="cet default-gold doc emacs gold gprofng multitarget +nls pgo +plugins static-libs test vanilla" REQUIRED_USE="default-gold? ( gold )" # Variables that can be set here (ignored for live ebuilds) @@ -286,6 +286,14 @@ src_configure() { # Ideally we would like automagic-or-disabled here. # But the check does not quite work on i686: bug #760926. $(use_enable cet) + + # We can enable this by default in future, but it's brand new + # in 2.39 with several bugs: + # - Doesn't build on musl (https://sourceware.org/bugzilla/show_bug.cgi?id=29477) + # - No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521) + # - Broken at runtime without Java (https://sourceware.org/bugzilla/show_bug.cgi?id=29479) + # - binutils-config (and this ebuild?) needs adaptation first (https://bugs.gentoo.org/865113) + $(use_enable gprofng) ) if ! is_cross ; then diff --git a/sys-devel/binutils/binutils-9999.ebuild b/sys-devel/binutils/binutils-9999.ebuild index aa5e1dcfdffe..98858772e782 100644 --- a/sys-devel/binutils/binutils-9999.ebuild +++ b/sys-devel/binutils/binutils-9999.ebuild @@ -8,7 +8,7 @@ inherit elisp-common libtool flag-o-matic gnuconfig strip-linguas toolchain-func DESCRIPTION="Tools necessary to build programs" HOMEPAGE="https://sourceware.org/binutils/" LICENSE="GPL-3+" -IUSE="cet default-gold doc emacs +gold multitarget +nls pgo +plugins static-libs test vanilla" +IUSE="cet default-gold doc emacs gold gprofng multitarget +nls pgo +plugins static-libs test vanilla" REQUIRED_USE="default-gold? ( gold )" # Variables that can be set here (ignored for live ebuilds) @@ -285,6 +285,14 @@ src_configure() { # Ideally we would like automagic-or-disabled here. # But the check does not quite work on i686: bug #760926. $(use_enable cet) + + # We can enable this by default in future, but it's brand new + # in 2.39 with several bugs: + # - Doesn't build on musl (https://sourceware.org/bugzilla/show_bug.cgi?id=29477) + # - No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521) + # - Broken at runtime without Java (https://sourceware.org/bugzilla/show_bug.cgi?id=29479) + # - binutils-config (and this ebuild?) needs adaptation first (https://bugs.gentoo.org/865113) + $(use_enable gprofng) ) if ! is_cross ; then diff --git a/sys-devel/binutils/metadata.xml b/sys-devel/binutils/metadata.xml index e05bf0bdd552..9b80e61912f4 100644 --- a/sys-devel/binutils/metadata.xml +++ b/sys-devel/binutils/metadata.xml @@ -9,6 +9,7 @@ Enable Intel Control-flow Enforcement Technology. Set ld to point to ld.gold instead of ld.bfd Build ld.gold linker + Enable the next-generation gprofng profiler Build binutils with Profile Guided Optimization (PGO) and LTO Enable plugin support in tools Adds support to binutils for cross compiling (does not work with gas)