public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ccache/
Date: Fri, 27 Aug 2021 21:30:04 +0000 (UTC)	[thread overview]
Message-ID: <1630099798.f6988b81e4fc908de6c49e2c733eb524f6ed0438.sam@gentoo> (raw)

commit:     f6988b81e4fc908de6c49e2c733eb524f6ed0438
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 27 21:26:59 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug 27 21:29:58 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6988b81

dev-util/ccache: add 4.4

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/ccache/Manifest          |  1 +
 dev-util/ccache/ccache-4.4.ebuild | 86 +++++++++++++++++++++++++++++++++++++++
 dev-util/ccache/metadata.xml      |  1 +
 3 files changed, 88 insertions(+)

diff --git a/dev-util/ccache/Manifest b/dev-util/ccache/Manifest
index 4e9442f6a4b..a1dab85d544 100644
--- a/dev-util/ccache/Manifest
+++ b/dev-util/ccache/Manifest
@@ -1 +1,2 @@
 DIST ccache-4.3.tar.xz 433508 BLAKE2B 6ab48aa587b4dc86020e3b0f722003dc5c03709626e143a1d38506b6072f9963fc76e89b6d18128dfc28035bf8d24e46ea44f219db69a1b3a294416f0b023090 SHA512 ec082de95ea8b22154ce1e67e0a0fc28266cfb71f382205f7eab14e6ac1c7841027d063041131832b3227d833d99ec874e90df238f35f433de4c381566931c7f
+DIST ccache-4.4.tar.xz 509516 BLAKE2B 6c4519d3cd93be49dfff09f22ada798894c9f4475395443e0dcfcf768178f1520cf26bc5c2e0ea22e06cc3ebd6ddaf930a2d1b517593a10c3253f7faa3131f43 SHA512 a857d1aded9c352eabba9c0f31b43fd17ae91672dabdfc086851448867c9dff6ad6dd7ee60f8e39102d41b7d8cf7866c6bf104e0214e865de45e75a8df7626f0

diff --git a/dev-util/ccache/ccache-4.4.ebuild b/dev-util/ccache/ccache-4.4.ebuild
new file mode 100644
index 00000000000..39f7580581d
--- /dev/null
+++ b/dev-util/ccache/ccache-4.4.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake 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"
+
+LICENSE="GPL-3 LGPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+# Enable 'static-c++' by default to make 'gcc' ebuild Just Work: bug #761220
+IUSE="redis +static-c++ test"
+RESTRICT="!test? ( test )"
+
+DEPEND="app-arch/zstd:=
+	redis? ( dev-libs/hiredis:= )"
+RDEPEND="${DEPEND}
+	dev-util/shadowman
+	sys-apps/gentoo-functions"
+# clang-specific tests use dev-libs/elfutils to compare objects for equality.
+# Let's pull in the dependency unconditionally.
+DEPEND+=" test? ( dev-libs/elfutils )"
+BDEPEND="app-text/asciidoc"
+
+DOCS=( doc/{AUTHORS,MANUAL,NEWS}.adoc CONTRIBUTING.md README.md )
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-3.5-nvcc-test.patch
+	"${FILESDIR}"/${PN}-4.0-objdump.patch
+	"${FILESDIR}"/${PN}-4.1-avoid-run-user.patch
+)
+
+src_prepare() {
+	cmake_src_prepare
+
+	sed \
+		-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
+		"${FILESDIR}"/ccache-config-3 > ccache-config || die
+
+	# mainly used in tests
+	tc-export CC OBJDUMP
+
+	# Avoid dependency on libstdc++.so. Useful for cases when
+	# we would like to use ccache to build older gcc which injects
+	# into ccache locally built (possibly outdated) libstdc++
+	# See bug #761220 for examples.
+	#
+	# Ideally gcc should not use LD_PRELOAD to avoid this type of failures.
+	use static-c++ && append-ldflags -static-libstdc++
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DUSE_CCACHE=OFF
+		-DZSTD_FROM_INTERNET=OFF
+		-DREDIS_STORAGE_BACKEND=$(usex redis)
+	)
+
+	use redis && mycmakeargs+=( -DHIREDIS_FROM_INTERNET_DEFAULT=OFF )
+
+	cmake_src_configure
+}
+
+src_install() {
+	cmake_src_install
+
+	dobin ccache-config
+	insinto /usr/share/shadowman/tools
+	newins - ccache <<<"${EPREFIX}/usr/lib/ccache/bin"
+}
+
+pkg_prerm() {
+	if [[ -z ${REPLACED_BY_VERSION} && ${ROOT:-/} == / ]] ; then
+		eselect compiler-shadow remove ccache
+	fi
+}
+
+pkg_postinst() {
+	if [[ ${ROOT:-/} == / ]]; then
+		eselect compiler-shadow update ccache
+	fi
+}

diff --git a/dev-util/ccache/metadata.xml b/dev-util/ccache/metadata.xml
index f673d3c5836..57030654f60 100644
--- a/dev-util/ccache/metadata.xml
+++ b/dev-util/ccache/metadata.xml
@@ -6,6 +6,7 @@
 		<name>Gentoo Toolchain Project</name>
 	</maintainer>
 	<use>
+		<flag name="redis">Enable Redis backend for storage via <pkg>dev-libs/hiredis</pkg></flag>
 		<flag name="static-c++">Avoid dynamic dependency on gcc's libstdc++.</flag>
 	</use>
 	<longdescription lang="en">


             reply	other threads:[~2021-08-27 21:30 UTC|newest]

Thread overview: 330+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-27 21:30 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-23  7:50 [gentoo-commits] repo/gentoo:master commit in: dev-util/ccache/ Sam James
2025-03-23  7:50 Sam James
2025-03-22  1:56 Sam James
2024-12-20  6:45 Sam James
2024-12-20  6:31 Sam James
2024-10-25  5:46 Arthur Zamarin
2024-10-25  5:46 Arthur Zamarin
2024-10-25  5:46 Arthur Zamarin
2024-10-25  5:46 Arthur Zamarin
2024-10-24 18:34 Arthur Zamarin
2024-10-07 15:56 Sam James
2024-09-13  1:23 Sam James
2024-09-12 12:27 Arthur Zamarin
2024-09-06  3:33 Sam James
2024-09-05 23:10 Jakov Smolić
2024-09-05 23:10 Jakov Smolić
2024-09-05 23:10 Jakov Smolić
2024-09-05 23:10 Jakov Smolić
2024-08-10 23:31 Sam James
2024-06-30 19:41 Sam James
2024-06-05  7:00 Arthur Zamarin
2024-05-31 19:57 Arthur Zamarin
2024-05-31 19:57 Arthur Zamarin
2024-05-18 17:06 Sam James
2024-05-04  9:48 Arthur Zamarin
2024-04-29  2:46 Sam James
2024-04-29  2:38 Sam James
2024-04-29  2:38 Sam James
2024-04-29  2:38 Sam James
2024-04-29  2:38 Sam James
2024-04-29  2:38 Sam James
2024-03-28  5:06 Sam James
2024-02-06  7:25 Sam James
2024-02-06  7:25 Sam James
2024-02-06  7:25 Sam James
2024-02-06  7:25 Sam James
2024-02-06  7:25 Sam James
2024-02-06  6:47 Sam James
2024-02-06  6:47 Sam James
2024-02-06  5:36 Sam James
2023-12-23 19:59 Arthur Zamarin
2023-12-18  9:01 Arthur Zamarin
2023-12-16 19:16 Arthur Zamarin
2023-12-16 19:16 Arthur Zamarin
2023-12-16 11:36 Sam James
2023-12-16 11:33 Sam James
2023-12-16 11:29 Arthur Zamarin
2023-10-02 17:27 Sam James
2023-08-29 23:21 Sam James
2023-06-29  6:18 Sam James
2023-06-27 11:28 Sam James
2023-06-27 10:09 Sam James
2023-06-27  9:08 Jakov Smolić
2023-06-27  9:08 Jakov Smolić
2023-06-27  8:04 Sam James
2023-06-27  7:58 Sam James
2023-06-13 18:12 Sam James
2023-06-12 20:43 Sam James
2023-05-14 10:29 Andreas Sturmlechner
2023-05-14  4:44 Sam James
2023-03-13 22:45 Sam James
2023-03-13 22:35 Sam James
2022-12-16 20:45 Arthur Zamarin
2022-12-02 11:23 Arthur Zamarin
2022-11-29  6:58 Jakov Smolić
2022-11-25 20:40 Arthur Zamarin
2022-11-25  9:58 Arthur Zamarin
2022-11-25  9:15 Matthew Smith
2022-11-25  6:33 Arthur Zamarin
2022-11-25  6:02 Sam James
2022-11-25  5:16 Sam James
2022-11-25  5:16 Sam James
2022-10-29 15:04 Sam James
2022-10-29 15:04 Sam James
2022-10-24 12:18 Sam James
2022-10-18 19:20 Sam James
2022-10-17 19:23 Sam James
2022-08-27 18:57 Sam James
2022-05-14  5:32 WANG Xuerui
2022-04-09 11:28 Sam James
2022-01-03 12:36 Sam James
2022-01-03  9:19 Sam James
2022-01-02 19:31 Arthur Zamarin
2022-01-02  9:59 Sam James
2022-01-02  0:04 Sam James
2022-01-01  9:37 Arthur Zamarin
2022-01-01  5:34 Sam James
2022-01-01  5:34 Sam James
2021-11-18  8:59 Sam James
2021-11-18  8:59 Sam James
2021-11-18  8:59 Sam James
2021-11-14  5:25 Sam James
2021-11-02 22:21 Sam James
2021-11-02  9:14 Agostino Sarubbo
2021-10-30 17:24 Agostino Sarubbo
2021-10-29  6:01 Agostino Sarubbo
2021-10-29  5:52 Agostino Sarubbo
2021-10-29  2:00 Sam James
2021-10-29  2:00 Sam James
2021-10-29  2:00 Sam James
2021-10-08  5:02 Sam James
2021-10-01  3:12 Sam James
2021-09-18  4:25 Sam James
2021-09-17  9:20 Agostino Sarubbo
2021-09-16 18:56 Sam James
2021-09-16  8:05 Agostino Sarubbo
2021-09-16  8:03 Agostino Sarubbo
2021-09-15  7:59 Agostino Sarubbo
2021-09-12  0:48 Sam James
2021-09-06 19:59 Matt Turner
2021-07-27  3:16 Sam James
2021-07-26 11:17 Sam James
2021-07-25 20:09 Sam James
2021-07-23  7:19 Agostino Sarubbo
2021-07-23  7:18 Agostino Sarubbo
2021-07-23  7:17 Agostino Sarubbo
2021-07-22 18:56 Sergei Trofimovich
2021-06-19  9:01 Sergei Trofimovich
2021-06-12 16:05 Sam James
2021-06-12 16:05 Sam James
2021-06-12 15:43 Sam James
2021-06-12 15:43 Sam James
2021-06-12 13:46 Sam James
2021-06-12 13:46 Sam James
2021-06-12 13:46 Sam James
2021-06-11 22:51 Sergei Trofimovich
2021-05-10 21:09 Sergei Trofimovich
2021-05-09 11:53 Sergei Trofimovich
2021-05-04 19:13 Sam James
2021-05-03 16:58 Sam James
2021-05-03 16:57 Sam James
2021-05-03 16:55 Sam James
2021-05-03 16:53 Sam James
2021-05-03 16:51 Sam James
2021-05-02  9:24 Sergei Trofimovich
2021-04-02  9:54 Sergei Trofimovich
2021-04-01 17:55 Sergei Trofimovich
2021-03-28 13:38 Sam James
2021-03-26 11:50 Agostino Sarubbo
2021-03-25 21:29 Sam James
2021-03-25 16:19 Agostino Sarubbo
2021-03-24 19:42 Sam James
2021-03-24 19:42 Sam James
2021-03-24 19:42 Sam James
2021-03-24 19:42 Sam James
2021-02-06 18:27 Sergei Trofimovich
2021-02-06 18:04 Sergei Trofimovich
2021-02-06  0:02 Sam James
2021-02-05 10:13 Sergei Trofimovich
2021-01-03 19:40 Sam James
2021-01-03 19:40 Sam James
2020-12-31 20:21 Sergei Trofimovich
2020-12-31 11:22 Sergei Trofimovich
2020-12-31  1:20 Sam James
2020-11-30  8:14 Sergei Trofimovich
2020-11-14 19:52 Sergei Trofimovich
2020-11-14  9:24 Mikle Kolyada
2020-11-04  8:16 Sergei Trofimovich
2020-11-04  7:58 Sergei Trofimovich
2020-11-04  0:58 Sam James
2020-11-03 22:47 Sergei Trofimovich
2020-11-03 18:50 Sergei Trofimovich
2020-11-03 11:54 Sam James
2020-11-02 10:27 Sam James
2020-09-19  7:38 Sergei Trofimovich
2020-09-04 15:17 Sam James
2020-08-30 23:18 Sam James
2020-08-29 15:24 Thomas Deutschmann
2020-08-29 14:48 Thomas Deutschmann
2020-08-25  0:22 Sam James
2020-08-24 17:33 Sergei Trofimovich
2020-08-06 21:22 Sergei Trofimovich
2020-08-05 14:06 Agostino Sarubbo
2020-08-01  9:01 Sergei Trofimovich
2020-08-01  8:53 Sergei Trofimovich
2020-07-28 17:28 Sergei Trofimovich
2020-07-27 18:36 Sergei Trofimovich
2020-07-25 21:50 Sam James
2020-07-25 19:33 Sam James
2020-07-25 11:17 Sam James
2020-07-21 19:56 Sergei Trofimovich
2020-07-05 10:56 Sergei Trofimovich
2020-06-22 21:16 Sergei Trofimovich
2020-05-30 19:48 Michał Górny
2020-05-29 22:13 Sergei Trofimovich
2020-05-28 15:45 Agostino Sarubbo
2020-05-28 15:39 Agostino Sarubbo
2020-05-28 12:32 Agostino Sarubbo
2020-05-27  6:28 Sergei Trofimovich
2020-05-26 19:31 Agostino Sarubbo
2020-05-25 21:33 Sergei Trofimovich
2020-05-25  9:36 Sergei Trofimovich
2020-05-25  9:29 Sergei Trofimovich
2020-05-02 17:51 Sergei Trofimovich
2020-04-07 10:21 Mart Raudsepp
2020-04-04 15:56 Sergei Trofimovich
2020-03-29 17:21 Sergei Trofimovich
2020-03-23 23:58 Sergei Trofimovich
2020-03-22 14:35 Agostino Sarubbo
2020-03-22 14:30 Agostino Sarubbo
2020-03-22 11:07 Agostino Sarubbo
2020-03-22 10:56 Agostino Sarubbo
2020-03-22 10:55 Agostino Sarubbo
2020-03-22 10:54 Agostino Sarubbo
2020-03-22 10:53 Agostino Sarubbo
2020-03-22 10:53 Agostino Sarubbo
2020-03-19 11:40 Mart Raudsepp
2020-03-16 23:43 Sergei Trofimovich
2020-03-13 19:47 Sergei Trofimovich
2020-02-16  4:28 Sergei Trofimovich
2020-02-13 20:58 Sergei Trofimovich
2020-02-13 13:03 Agostino Sarubbo
2020-02-13 12:46 Agostino Sarubbo
2020-02-13 12:38 Agostino Sarubbo
2020-02-13 12:27 Agostino Sarubbo
2020-02-13 12:19 Agostino Sarubbo
2020-02-13 12:10 Agostino Sarubbo
2020-02-13 12:03 Agostino Sarubbo
2020-02-13  8:57 Agostino Sarubbo
2020-02-12 16:14 Agostino Sarubbo
2020-01-09 11:50 Agostino Sarubbo
2020-01-09 11:49 Agostino Sarubbo
2020-01-08  9:27 Sergei Trofimovich
2020-01-08  9:27 Sergei Trofimovich
2020-01-08  8:15 Agostino Sarubbo
2020-01-07 19:22 Sergei Trofimovich
2020-01-06 23:27 Sergei Trofimovich
2019-11-18 20:00 Sergei Trofimovich
2019-11-14 11:55 Agostino Sarubbo
2019-11-12 21:10 Matt Turner
2019-11-07 15:54 Aaron Bauman
2019-11-03 13:33 Mikle Kolyada
2019-10-24 11:41 Agostino Sarubbo
2019-10-24 11:40 Agostino Sarubbo
2019-10-24  9:12 Agostino Sarubbo
2019-10-23 13:39 Agostino Sarubbo
2019-10-23 12:30 Agostino Sarubbo
2019-10-22 21:34 Sergei Trofimovich
2019-10-22 21:34 Sergei Trofimovich
2019-09-13 15:35 Mikle Kolyada
2019-09-13 15:35 Mikle Kolyada
2019-09-13 15:35 Mikle Kolyada
2019-09-13  6:47 Sergei Trofimovich
2019-08-23 16:33 Agostino Sarubbo
2019-08-23 10:00 Agostino Sarubbo
2019-08-19 11:37 Agostino Sarubbo
2019-08-19  6:57 Sergei Trofimovich
2019-08-19  5:43 Agostino Sarubbo
2019-08-18 10:12 Sergei Trofimovich
2019-08-18 10:10 Sergei Trofimovich
2019-08-18 10:08 Sergei Trofimovich
2019-08-18  9:10 Sergei Trofimovich
2019-08-18  2:14 Aaron Bauman
2019-08-17 23:10 Sergei Trofimovich
2019-08-17 23:10 Sergei Trofimovich
2019-07-29 10:50 Mikle Kolyada
2019-07-29 10:50 Mikle Kolyada
2019-07-29 10:50 Mikle Kolyada
2019-07-29 10:50 Mikle Kolyada
2019-07-26  8:47 Agostino Sarubbo
2019-07-24  8:19 Agostino Sarubbo
2019-07-22 13:54 Agostino Sarubbo
2019-07-21 14:58 Sergei Trofimovich
2019-07-21  8:37 Sergei Trofimovich
2019-07-21  8:25 Sergei Trofimovich
2019-07-21  8:19 Sergei Trofimovich
2019-07-21  8:16 Sergei Trofimovich
2019-07-20 21:23 Aaron Bauman
2019-07-20  8:11 Sergei Trofimovich
2019-07-19 18:57 Sergei Trofimovich
2019-07-19 18:57 Sergei Trofimovich
2019-07-19 18:42 Sergei Trofimovich
2019-06-05 13:29 Agostino Sarubbo
2019-06-01  8:14 Sergei Trofimovich
2019-05-07 18:03 Tobias Klausmann
2019-05-05 16:09 Mikle Kolyada
2019-05-02 16:39 Sergei Trofimovich
2019-04-27 16:25 Sergei Trofimovich
2019-04-27 16:03 Sergei Trofimovich
2019-04-27 15:48 Sergei Trofimovich
2019-04-27  4:30 Aaron Bauman
2019-04-26 19:47 Aaron Bauman
2019-04-26 15:13 Sergei Trofimovich
2019-02-17 15:44 Mikle Kolyada
2019-02-12 12:42 Mikle Kolyada
2019-02-12 12:42 Mikle Kolyada
2019-02-12 12:42 Mikle Kolyada
2019-01-15 22:11 Sergei Trofimovich
2019-01-03 18:45 Sergei Trofimovich
2018-10-28 11:20 Sergei Trofimovich
2018-10-15 21:13 Sergei Trofimovich
2018-09-03 21:22 Sergei Trofimovich
2018-09-03 21:22 Sergei Trofimovich
2018-05-25  3:48 Matt Turner
2018-05-22 22:37 Sergei Trofimovich
2018-05-14 11:49 Tobias Klausmann
2018-05-06 19:56 Sergei Trofimovich
2018-05-02 17:11 Mart Raudsepp
2018-05-01  7:41 Markus Meier
2018-04-24 18:55 Sergei Trofimovich
2018-04-21 22:18 Aaron Bauman
2018-04-21 21:18 Sergei Trofimovich
2018-04-21 20:22 Andreas Hüttel
2018-04-21 20:19 Andreas Hüttel
2018-03-28  4:22 Matt Turner
2018-03-18 10:27 Sergei Trofimovich
2018-03-17 21:42 Matt Turner
2018-03-17 21:42 Matt Turner
2018-03-17 19:45 Matt Turner
2018-03-14  6:00 Markus Meier
2018-03-11 22:20 Sergei Trofimovich
2018-03-11  6:08 Matt Turner
2018-03-03  9:19 Michał Górny
2017-11-26 11:39 David Seifert
2017-11-09 22:05 Mike Gilbert
2017-08-26 13:37 Michał Górny
2017-08-26 13:37 Michał Górny
2017-08-26 13:37 Michał Górny
2017-02-18  5:12 Mike Frysinger
2016-07-21 16:05 Mike Frysinger
2016-05-27 20:40 Mike Frysinger
2016-05-26  0:46 Matt Turner
2016-05-24  6:37 Jeroen Roovers
2016-05-23  4:46 Jeroen Roovers
2016-04-22 20:02 Markus Meier
2016-04-17 16:33 Mike Frysinger
2016-04-09 13:46 Agostino Sarubbo
2015-10-08 20:20 Mike Frysinger
2015-08-16 14:21 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=1630099798.f6988b81e4fc908de6c49e2c733eb524f6ed0438.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