From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ccache/files/, dev-util/ccache/
Date: Sat, 27 Jun 2020 09:21:30 +0000 (UTC) [thread overview]
Message-ID: <1593249687.068ded854ecce99aa28cb5bbd78f16769aaccf3a.slyfox@gentoo> (raw)
commit: 068ded854ecce99aa28cb5bbd78f16769aaccf3a
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 27 09:21:17 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Jun 27 09:21:27 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=068ded85
dev-util/ccache: use ${CHOST}-objdump
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
dev-util/ccache/ccache-3.7.10.ebuild | 6 ++++++
dev-util/ccache/files/ccache-3.7.10-objdump.patch | 15 +++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/dev-util/ccache/ccache-3.7.10.ebuild b/dev-util/ccache/ccache-3.7.10.ebuild
index 32f24f67e07..900d8f39d69 100644
--- a/dev-util/ccache/ccache-3.7.10.ebuild
+++ b/dev-util/ccache/ccache-3.7.10.ebuild
@@ -3,6 +3,8 @@
EAPI=7
+inherit toolchain-funcs
+
DESCRIPTION="fast compiler cache"
HOMEPAGE="https://ccache.dev/"
SRC_URI="https://github.com/ccache/ccache/releases/download/v${PV}/ccache-${PV}.tar.xz"
@@ -26,6 +28,7 @@ RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${PN}-3.5-nvcc-test.patch
+ "${FILESDIR}"/${P}-objdump.patch
)
src_prepare() {
@@ -34,6 +37,9 @@ src_prepare() {
sed \
-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
"${FILESDIR}"/ccache-config-3 > ccache-config || die
+
+ # mainly used in tests
+ tc-export OBJDUMP
}
src_configure() {
diff --git a/dev-util/ccache/files/ccache-3.7.10-objdump.patch b/dev-util/ccache/files/ccache-3.7.10-objdump.patch
new file mode 100644
index 00000000000..bad334a5c54
--- /dev/null
+++ b/dev-util/ccache/files/ccache-3.7.10-objdump.patch
@@ -0,0 +1,15 @@
+Allow ${CHOST}-objdump (or any other override)
+--- a/test/suites/debug_prefix_map.bash
++++ b/test/suites/debug_prefix_map.bash
+@@ -24,9 +24,9 @@ objdump_cmd() {
+ if $HOST_OS_APPLE; then
+ xcrun dwarfdump -r0 $1
+ elif $HOST_OS_FREEBSD; then
+- objdump -W $1
++ ${OBJDUMP-objdump} -W $1
+ else
+- objdump -g $1
++ ${OBJDUMP-objdump} -g $1
+ fi
+ }
+
next reply other threads:[~2020-06-27 9:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-27 9:21 Sergei Trofimovich [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-30 2:09 [gentoo-commits] repo/gentoo:master commit in: dev-util/ccache/files/, dev-util/ccache/ Sam James
2024-01-05 7:32 Sam James
2024-01-05 7:10 Sam James
2023-08-08 2:10 Sam James
2023-06-13 18:12 Sam James
2022-04-17 18:32 Sam James
2021-02-16 23:35 Sergei Trofimovich
2020-11-26 8:29 Sergei Trofimovich
2020-11-22 21:20 Sergei Trofimovich
2020-11-22 20:57 Sergei Trofimovich
2020-10-02 22:25 Sergei Trofimovich
2020-03-24 22:30 Sergei Trofimovich
2019-01-03 18:45 Sergei Trofimovich
2016-11-10 5:40 Mike Frysinger
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=1593249687.068ded854ecce99aa28cb5bbd78f16769aaccf3a.slyfox@gentoo \
--to=slyfox@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