mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 22:41:09 +02:00
ccache: fix building GCC with ccache enabled
This commit is contained in:
parent
1b5d4d776f
commit
4f87afd277
@ -12,7 +12,7 @@ SRC_URI="http://samba.org/ftp/ccache/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-arch/xz-utils
|
||||
@ -25,6 +25,7 @@ src_prepare() {
|
||||
rm -rf zlib || die
|
||||
epatch "${FILESDIR}"/${PN}-3.1.7-no-perl.patch #421609
|
||||
epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
|
||||
epatch "${FILESDIR}"/${PN}-3.2.2-save-temps.patch
|
||||
sed \
|
||||
-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
|
||||
"${FILESDIR}"/ccache-config-3 > ccache-config || die
|
38
sdk_container/src/third_party/coreos-overlay/dev-util/ccache/files/ccache-3.2.2-save-temps.patch
vendored
Normal file
38
sdk_container/src/third_party/coreos-overlay/dev-util/ccache/files/ccache-3.2.2-save-temps.patch
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
From 13259a28a6ace55f9397b2066173fecc4b296833 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Marineau <michael.marineau@coreos.com>
|
||||
Date: Thu, 9 Jul 2015 13:13:33 -0700
|
||||
Subject: [PATCH] Bail out on --save-temps, an alias for -save-temps
|
||||
|
||||
---
|
||||
NEWS.txt | 2 ++
|
||||
compopt.c | 1 +
|
||||
2 files changed, 3 insertions(+)
|
||||
|
||||
diff --git a/NEWS.txt b/NEWS.txt
|
||||
index c1e121d..19b0ae2 100644
|
||||
--- a/NEWS.txt
|
||||
+++ b/NEWS.txt
|
||||
@@ -18,6 +18,8 @@ Bug fixes
|
||||
|
||||
- Avoid calling `exit()` inside an exit handler.
|
||||
|
||||
+- Bail out on compiler option --save-temps in addition to -save-temps.
|
||||
+
|
||||
|
||||
ccache 3.2.2
|
||||
------------
|
||||
diff --git a/compopt.c b/compopt.c
|
||||
index 26e1591..0fc9161 100644
|
||||
--- a/compopt.c
|
||||
+++ b/compopt.c
|
||||
@@ -33,6 +33,7 @@ struct compopt {
|
||||
|
||||
static const struct compopt compopts[] = {
|
||||
{"--param", TAKES_ARG},
|
||||
+ {"--save-temps", TOO_HARD},
|
||||
{"--serialize-diagnostics", TAKES_ARG | TAKES_PATH},
|
||||
{"-A", TAKES_ARG},
|
||||
{"-D", AFFECTS_CPP | TAKES_ARG | TAKES_CONCAT_ARG},
|
||||
--
|
||||
2.3.6
|
||||
|
@ -109,6 +109,3 @@ dev-util/checkbashisms
|
||||
|
||||
# Avoid cross compile error with amd64 stable (elfutils-0.158).
|
||||
=dev-libs/elfutils-0.161 ~amd64
|
||||
|
||||
# Avoid locking bugs that bit us in the 3.1.x series.
|
||||
=dev-util/ccache-3.2.2
|
||||
|
Loading…
x
Reference in New Issue
Block a user