1 |
commit: 6676442e3694fcd557ffdbffb028b9ee1fe6d830 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 26 08:32:53 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 26 08:33:34 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6676442e |
7 |
|
8 |
sys-devel/binutils: make gprofng optional (masked USE flag) |
9 |
|
10 |
We can enable this by default in future, but it's brand new |
11 |
in 2.39 with several bugs: |
12 |
- Doesn't build on musl (https://sourceware.org/bugzilla/show_bug.cgi?id=29477) |
13 |
- No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521) |
14 |
- Broken at runtime without Java (https://sourceware.org/bugzilla/show_bug.cgi?id=29479) |
15 |
- binutils-config (and this ebuild?) needs adaptation first (https://bugs.gentoo.org/865113) |
16 |
|
17 |
Bug: https://bugs.gentoo.org/865113 |
18 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
19 |
|
20 |
profiles/base/package.use.mask | 4 ++++ |
21 |
sys-devel/binutils/binutils-2.39.ebuild | 10 +++++++++- |
22 |
sys-devel/binutils/binutils-9999.ebuild | 10 +++++++++- |
23 |
sys-devel/binutils/metadata.xml | 1 + |
24 |
4 files changed, 23 insertions(+), 2 deletions(-) |
25 |
|
26 |
diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask |
27 |
index 81fc4c65ee87..9678d0c1b0eb 100644 |
28 |
--- a/profiles/base/package.use.mask |
29 |
+++ b/profiles/base/package.use.mask |
30 |
@@ -6,6 +6,10 @@ |
31 |
# This file is only for generic masks. For arch-specific masks (i.e. |
32 |
# mask everywhere, unmask on arch/*) use arch/base. |
33 |
|
34 |
+# Sam James <sam@g.o> (2022-08-26) |
35 |
+# Broken at runtime for now (bug #865113). |
36 |
+sys-devel/binutils gprofng |
37 |
+ |
38 |
# Matthew Smith <matthew@g.o> (2022-08-19) |
39 |
# Upstream recommends that tbb be built with a patch to avoid bugs. |
40 |
# https://github.com/rui314/mold/releases/tag/v1.4.1 |
41 |
|
42 |
diff --git a/sys-devel/binutils/binutils-2.39.ebuild b/sys-devel/binutils/binutils-2.39.ebuild |
43 |
index d3766ed10148..297f02af663b 100644 |
44 |
--- a/sys-devel/binutils/binutils-2.39.ebuild |
45 |
+++ b/sys-devel/binutils/binutils-2.39.ebuild |
46 |
@@ -8,7 +8,7 @@ inherit elisp-common libtool flag-o-matic gnuconfig strip-linguas toolchain-func |
47 |
DESCRIPTION="Tools necessary to build programs" |
48 |
HOMEPAGE="https://sourceware.org/binutils/" |
49 |
LICENSE="GPL-3+" |
50 |
-IUSE="cet default-gold doc emacs gold multitarget +nls pgo +plugins static-libs test vanilla" |
51 |
+IUSE="cet default-gold doc emacs gold gprofng multitarget +nls pgo +plugins static-libs test vanilla" |
52 |
REQUIRED_USE="default-gold? ( gold )" |
53 |
|
54 |
# Variables that can be set here (ignored for live ebuilds) |
55 |
@@ -286,6 +286,14 @@ src_configure() { |
56 |
# Ideally we would like automagic-or-disabled here. |
57 |
# But the check does not quite work on i686: bug #760926. |
58 |
$(use_enable cet) |
59 |
+ |
60 |
+ # We can enable this by default in future, but it's brand new |
61 |
+ # in 2.39 with several bugs: |
62 |
+ # - Doesn't build on musl (https://sourceware.org/bugzilla/show_bug.cgi?id=29477) |
63 |
+ # - No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521) |
64 |
+ # - Broken at runtime without Java (https://sourceware.org/bugzilla/show_bug.cgi?id=29479) |
65 |
+ # - binutils-config (and this ebuild?) needs adaptation first (https://bugs.gentoo.org/865113) |
66 |
+ $(use_enable gprofng) |
67 |
) |
68 |
|
69 |
if ! is_cross ; then |
70 |
|
71 |
diff --git a/sys-devel/binutils/binutils-9999.ebuild b/sys-devel/binutils/binutils-9999.ebuild |
72 |
index aa5e1dcfdffe..98858772e782 100644 |
73 |
--- a/sys-devel/binutils/binutils-9999.ebuild |
74 |
+++ b/sys-devel/binutils/binutils-9999.ebuild |
75 |
@@ -8,7 +8,7 @@ inherit elisp-common libtool flag-o-matic gnuconfig strip-linguas toolchain-func |
76 |
DESCRIPTION="Tools necessary to build programs" |
77 |
HOMEPAGE="https://sourceware.org/binutils/" |
78 |
LICENSE="GPL-3+" |
79 |
-IUSE="cet default-gold doc emacs +gold multitarget +nls pgo +plugins static-libs test vanilla" |
80 |
+IUSE="cet default-gold doc emacs gold gprofng multitarget +nls pgo +plugins static-libs test vanilla" |
81 |
REQUIRED_USE="default-gold? ( gold )" |
82 |
|
83 |
# Variables that can be set here (ignored for live ebuilds) |
84 |
@@ -285,6 +285,14 @@ src_configure() { |
85 |
# Ideally we would like automagic-or-disabled here. |
86 |
# But the check does not quite work on i686: bug #760926. |
87 |
$(use_enable cet) |
88 |
+ |
89 |
+ # We can enable this by default in future, but it's brand new |
90 |
+ # in 2.39 with several bugs: |
91 |
+ # - Doesn't build on musl (https://sourceware.org/bugzilla/show_bug.cgi?id=29477) |
92 |
+ # - No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521) |
93 |
+ # - Broken at runtime without Java (https://sourceware.org/bugzilla/show_bug.cgi?id=29479) |
94 |
+ # - binutils-config (and this ebuild?) needs adaptation first (https://bugs.gentoo.org/865113) |
95 |
+ $(use_enable gprofng) |
96 |
) |
97 |
|
98 |
if ! is_cross ; then |
99 |
|
100 |
diff --git a/sys-devel/binutils/metadata.xml b/sys-devel/binutils/metadata.xml |
101 |
index e05bf0bdd552..9b80e61912f4 100644 |
102 |
--- a/sys-devel/binutils/metadata.xml |
103 |
+++ b/sys-devel/binutils/metadata.xml |
104 |
@@ -9,6 +9,7 @@ |
105 |
<flag name="cet">Enable Intel Control-flow Enforcement Technology.</flag> |
106 |
<flag name="default-gold">Set ld to point to ld.gold instead of ld.bfd</flag> |
107 |
<flag name="gold">Build ld.gold linker</flag> |
108 |
+ <flag name="gprofng">Enable the next-generation gprofng profiler</flag> |
109 |
<flag name="pgo">Build binutils with Profile Guided Optimization (PGO) and LTO</flag> |
110 |
<flag name="plugins">Enable plugin support in tools</flag> |
111 |
<flag name="multitarget">Adds support to binutils for cross compiling (does not work with gas)</flag> |