From: "Sam James" <sam@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, 15 Apr 2023 05:13:19 +0000 (UTC) [thread overview]
Message-ID: <1681535481.d1a3661d06ab2036402024ea792bad26b7eb2cda.sam@gentoo> (raw)
commit: d1a3661d06ab2036402024ea792bad26b7eb2cda
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 15 05:11:21 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 15 05:11:21 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1a3661d
dev-util/perf: fix build w/ clang 16
Closes: https://bugs.gentoo.org/904169
Thanks-to: Maciej S. Szmigiero <mail <AT> maciej.szmigiero.name>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-util/perf/files/perf-6.0-c++17.patch | 39 ++++++++++++++++++++++++++++++++
dev-util/perf/perf-6.0-r1.ebuild | 1 +
dev-util/perf/perf-6.2-r1.ebuild | 1 +
3 files changed, 41 insertions(+)
diff --git a/dev-util/perf/files/perf-6.0-c++17.patch b/dev-util/perf/files/perf-6.0-c++17.patch
new file mode 100644
index 000000000000..08c34bc552ca
--- /dev/null
+++ b/dev-util/perf/files/perf-6.0-c++17.patch
@@ -0,0 +1,39 @@
+https://bugs.gentoo.org/904169
+--- a/tools/perf/Makefile.config
++++ b/tools/perf/Makefile.config
+@@ -309,7 +309,7 @@
+ CORE_CFLAGS += -Wextra
+ CORE_CFLAGS += -std=gnu11
+
+-CXXFLAGS += -std=gnu++14 -fno-exceptions -fno-rtti
++CXXFLAGS += -std=gnu++17 -fno-exceptions -fno-rtti
+ CXXFLAGS += -Wall
+ CXXFLAGS += -fno-omit-frame-pointer
+ CXXFLAGS += -ggdb3
+--- a/tools/build/feature/Makefile
++++ b/tools/build/feature/Makefile
+@@ -339,7 +339,7 @@
+ $(BUILD)
+
+ $(OUTPUT)test-llvm.bin:
+- $(BUILDXX) -std=gnu++14 \
++ $(BUILDXX) -std=gnu++17 \
+ -I$(shell $(LLVM_CONFIG) --includedir) \
+ -L$(shell $(LLVM_CONFIG) --libdir) \
+ $(shell $(LLVM_CONFIG) --libs) \
+@@ -347,12 +347,12 @@
+ > $(@:.bin=.make.output) 2>&1
+
+ $(OUTPUT)test-llvm-version.bin:
+- $(BUILDXX) -std=gnu++14 \
++ $(BUILDXX) -std=gnu++17 \
+ -I$(shell $(LLVM_CONFIG) --includedir) \
+ > $(@:.bin=.make.output) 2>&1
+
+ $(OUTPUT)test-clang.bin:
+- $(BUILDXX) -std=gnu++14 \
++ $(BUILDXX) -std=gnu++17 \
+ -I$(shell $(LLVM_CONFIG) --includedir) \
+ -L$(shell $(LLVM_CONFIG) --libdir) \
+ -lclang-cpp $(shell $(LLVM_CONFIG) --libs) \
+
diff --git a/dev-util/perf/perf-6.0-r1.ebuild b/dev-util/perf/perf-6.0-r1.ebuild
index be9dbc82a5f9..04184b462006 100644
--- a/dev-util/perf/perf-6.0-r1.ebuild
+++ b/dev-util/perf/perf-6.0-r1.ebuild
@@ -145,6 +145,7 @@ src_prepare() {
pushd "${S_K}" >/dev/null || die
eapply "${FILESDIR}"/${P}-clang.patch
+ eapply "${FILESDIR}"/perf-6.0-c++17.patch
popd || die
# Drop some upstream too-developer-oriented flags and fix the
diff --git a/dev-util/perf/perf-6.2-r1.ebuild b/dev-util/perf/perf-6.2-r1.ebuild
index 8dc6385d598e..8a46cf67337d 100644
--- a/dev-util/perf/perf-6.2-r1.ebuild
+++ b/dev-util/perf/perf-6.2-r1.ebuild
@@ -145,6 +145,7 @@ src_prepare() {
pushd "${S_K}" >/dev/null || die
eapply "${FILESDIR}"/perf-6.0-clang.patch
+ eapply "${FILESDIR}"/perf-6.0-c++17.patch
popd || die
# Drop some upstream too-developer-oriented flags and fix the
next reply other threads:[~2023-04-15 5:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-15 5:13 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-05 10:31 [gentoo-commits] repo/gentoo:master commit in: dev-util/perf/files/, dev-util/perf/ Guilherme Amadio
2024-11-11 16:15 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
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=1681535481.d1a3661d06ab2036402024ea792bad26b7eb2cda.sam@gentoo \
--to=sam@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