From: "Guilherme Amadio" <amadio@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/perf/files/, dev-util/perf/
Date: Sat, 05 Apr 2025 10:31:15 +0000 (UTC) [thread overview]
Message-ID: <1743849047.4ef45fcf6e98371d3daab6f48472812ed932e89d.amadio@gentoo> (raw)
commit: 4ef45fcf6e98371d3daab6f48472812ed932e89d
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 5 10:09:34 2025 +0000
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Sat Apr 5 10:30:47 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ef45fcf
dev-util/perf: fix build failure with LTO
Closes: https://bugs.gentoo.org/951151
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
dev-util/perf/files/perf-6.14-lto.patch | 17 +++++++++++++++++
dev-util/perf/perf-6.14.ebuild | 1 +
2 files changed, 18 insertions(+)
diff --git a/dev-util/perf/files/perf-6.14-lto.patch b/dev-util/perf/files/perf-6.14-lto.patch
new file mode 100644
index 000000000000..e5e54fd00b22
--- /dev/null
+++ b/dev-util/perf/files/perf-6.14-lto.patch
@@ -0,0 +1,17 @@
+
+Adapted to v6.14 from patch submitted upstream:
+https://lore.kernel.org/all/20250321082038.27901-2-holger@applied-asynchrony.com/
+
+Bug: https://bugs.gentoo.org/951151
+
+--- a/tools/perf/Makefile.config
++++ b/tools/perf/Makefile.config
+@@ -820,7 +820,7 @@ else
+ PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS))
+ PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null)
+ PERL_EMBED_CCOPTS := $(filter-out -specs=%,$(PERL_EMBED_CCOPTS))
+- PERL_EMBED_CCOPTS := $(filter-out -flto=auto -ffat-lto-objects, $(PERL_EMBED_CCOPTS))
++ PERL_EMBED_CCOPTS := $(filter-out -flto=% -ffat-lto-objects, $(PERL_EMBED_CCOPTS))
+ PERL_EMBED_LDOPTS := $(filter-out -specs=%,$(PERL_EMBED_LDOPTS))
+ FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
+
diff --git a/dev-util/perf/perf-6.14.ebuild b/dev-util/perf/perf-6.14.ebuild
index 853641e48508..99e4b1b918ce 100644
--- a/dev-util/perf/perf-6.14.ebuild
+++ b/dev-util/perf/perf-6.14.ebuild
@@ -185,6 +185,7 @@ src_prepare() {
pushd "${S_K}" >/dev/null || die
# Gentoo patches go here
+ eapply "${FILESDIR}"/${P}-lto.patch
popd || die
# Drop some upstream too-developer-oriented flags and fix the
next reply other threads:[~2025-04-05 10:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-05 10:31 Guilherme Amadio [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-11 16:15 [gentoo-commits] repo/gentoo:master commit in: dev-util/perf/files/, dev-util/perf/ Guilherme Amadio
2024-10-04 15:07 Guilherme Amadio
2024-08-06 10:16 Guilherme Amadio
2023-07-06 16:12 Guilherme Amadio
2023-07-06 7:44 Guilherme Amadio
2023-04-15 5:13 Sam James
2022-11-17 5:09 Michał Górny
2021-11-11 8:56 Guilherme Amadio
2020-02-15 16:05 Yixun Lan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1743849047.4ef45fcf6e98371d3daab6f48472812ed932e89d.amadio@gentoo \
--to=amadio@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox