From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ccache/, dev-util/ccache/files/
Date: Wed, 7 Feb 2024 19:20:30 +0000 (UTC) [thread overview]
Message-ID: <1707333602.6cfab692a4eef1b616f6b5fda4592f289e62b42a.sam@gentoo> (raw)
commit: 6cfab692a4eef1b616f6b5fda4592f289e62b42a
Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Wed Feb 7 07:09:32 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 7 19:20:02 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cfab692
dev-util/ccache: use prefix.eclass to inject eprefix into ccache-config
It is a slightly simpler ebuild handling, and avoids QA warnings from
iwdevtools when the sed doesn't apply.
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-util/ccache/ccache-4.8.3.ebuild | 9 ++++-----
dev-util/ccache/ccache-4.9.1.ebuild | 7 +++----
dev-util/ccache/ccache-4.9.ebuild | 7 +++----
dev-util/ccache/files/ccache-config-3 | 2 +-
4 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/dev-util/ccache/ccache-4.8.3.ebuild b/dev-util/ccache/ccache-4.8.3.ebuild
index 554266100f5b..8c1e04988bf3 100644
--- a/dev-util/ccache/ccache-4.8.3.ebuild
+++ b/dev-util/ccache/ccache-4.8.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -18,7 +18,7 @@ MY_DOCS_VERSION=$(ver_cut 1-2)
MY_DOCS_USEFLAG="+doc"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/joelrosdahl.asc
-inherit cmake toolchain-funcs flag-o-matic verify-sig
+inherit cmake toolchain-funcs flag-o-matic prefix verify-sig
DESCRIPTION="Fast compiler cache"
HOMEPAGE="https://ccache.dev/"
@@ -78,9 +78,8 @@ src_unpack() {
src_prepare() {
cmake_src_prepare
- sed \
- -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
- "${FILESDIR}"/ccache-config-3 > ccache-config || die
+ cp "${FILESDIR}"/ccache-config-3 ccache-config || die
+ eprefixify ccache-config
}
src_configure() {
diff --git a/dev-util/ccache/ccache-4.9.1.ebuild b/dev-util/ccache/ccache-4.9.1.ebuild
index 108c29bbdd7a..73795e42934e 100644
--- a/dev-util/ccache/ccache-4.9.1.ebuild
+++ b/dev-util/ccache/ccache-4.9.1.ebuild
@@ -18,7 +18,7 @@ MY_DOCS_VERSION=$(ver_cut 1-2)
MY_DOCS_USEFLAG="+doc"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/joelrosdahl.asc
-inherit cmake toolchain-funcs flag-o-matic verify-sig
+inherit cmake toolchain-funcs flag-o-matic prefix verify-sig
DESCRIPTION="Fast compiler cache"
HOMEPAGE="https://ccache.dev/"
@@ -78,9 +78,8 @@ src_unpack() {
src_prepare() {
cmake_src_prepare
- sed \
- -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
- "${FILESDIR}"/ccache-config-3 > ccache-config || die
+ cp "${FILESDIR}"/ccache-config-3 ccache-config || die
+ eprefixify ccache-config
}
src_configure() {
diff --git a/dev-util/ccache/ccache-4.9.ebuild b/dev-util/ccache/ccache-4.9.ebuild
index 68cf3874b664..ae1a041c2953 100644
--- a/dev-util/ccache/ccache-4.9.ebuild
+++ b/dev-util/ccache/ccache-4.9.ebuild
@@ -18,7 +18,7 @@ MY_DOCS_VERSION=$(ver_cut 1-2)
MY_DOCS_USEFLAG="+doc"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/joelrosdahl.asc
-inherit cmake toolchain-funcs flag-o-matic verify-sig
+inherit cmake toolchain-funcs flag-o-matic prefix verify-sig
DESCRIPTION="Fast compiler cache"
HOMEPAGE="https://ccache.dev/"
@@ -78,9 +78,8 @@ src_unpack() {
src_prepare() {
cmake_src_prepare
- sed \
- -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
- "${FILESDIR}"/ccache-config-3 > ccache-config || die
+ cp "${FILESDIR}"/ccache-config-3 ccache-config || die
+ eprefixify ccache-config
}
src_configure() {
diff --git a/dev-util/ccache/files/ccache-config-3 b/dev-util/ccache/files/ccache-config-3
index 7f604f0016ef..631d671794d8 100644
--- a/dev-util/ccache/files/ccache-config-3
+++ b/dev-util/ccache/files/ccache-config-3
@@ -11,7 +11,7 @@
#
# Additional features to come; this provides a starting point
-EPREFIX=''
+EPREFIX='@GENTOO_PORTAGE_EPREFIX@'
. "${EPREFIX}"/lib/gentoo/functions.sh 2>/dev/null || {
ebegin() { echo " * $* ..."; }
next reply other threads:[~2024-02-07 19:20 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-07 19:20 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-10 5:06 [gentoo-commits] repo/gentoo:master commit in: dev-util/ccache/, dev-util/ccache/files/ Sam James
2024-12-20 6:29 Sam James
2024-08-10 20:02 Sam James
2024-05-31 18:46 Sam James
2024-03-24 18:02 Sam James
2023-05-20 4:39 Sam James
2023-05-17 4:01 Sam James
2022-09-23 1:56 Sam James
2022-08-22 21:08 Sam James
2022-05-20 19:26 Matt Turner
2022-04-09 11:26 Sam James
2022-04-09 4:30 Sam James
2021-06-18 10:15 Sergei Trofimovich
2020-11-18 19:07 Sergei Trofimovich
2020-10-19 18:49 Sergei Trofimovich
2019-02-02 23:40 Sergei Trofimovich
2019-01-04 21:13 Sergei Trofimovich
2018-10-15 21:13 Sergei Trofimovich
2018-08-15 8:39 Sergei Trofimovich
2016-05-27 20: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=1707333602.6cfab692a4eef1b616f6b5fda4592f289e62b42a.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