mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
Merge pull request #522 from dm0-/ccache
bump(dev-util/ccache): sync with upstream
This commit is contained in:
commit
f9e280e12e
14
sdk_container/src/third_party/portage-stable/dev-util/ccache/Manifest
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/dev-util/ccache/Manifest
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
AUX ccache-3.1.10-size-on-disk.patch 518 SHA256 63e778782c31420caa395079554a1204cb2d899d745afbc330aee708dbbd7605 SHA512 bf7a160b091798e7de57748f4f9e0d6f027872c713108e3791cfc82bf64d3ed843607267ff0cca9e0848abf8bbcbbb6c19921560032576849a42f29ecc496212 WHIRLPOOL ebbe8a3409efa280554800a75bb5a16a5a798a1504cc5613374a7ab156b7d80ba8ff9914fd1bc61454d09545dc3f2fd8f2ba5857344b0e3546201d9a4ecdb3a4
|
||||||
|
AUX ccache-3.3-size-on-disk.patch 514 SHA256 da5a88dbc82d353729510cc3c6e832b12634af63aa0c30928ab7a7e05044484b SHA512 7e7f01ca602722a1add1615223bb109cecfdf69ab7612a0424732f992331b0addd7b94f684fedb91486f69cbe57fcb1961d1069116a27458f1f5b20a169f2569 WHIRLPOOL c51a75514941c6ca771eab5af99ff452ff19a4fcfb41cfdc546e3efa17f681f1a5aaec40faaf94da7fe03f1bab1be18f82dbb712abb1c197c44463848868f2a5
|
||||||
|
AUX ccache-config-3 2147 SHA256 9b87028bf3aae546251be72b438e9ef615a9986771cb5e7e64b2ba1dc2ff927c SHA512 05d512b001b6a2fdc947d10d810c89683144080a060c24a37422e9b587594e1ee42fa1d7607461571f196819dae92146d861e8ae116e9226e1ff97ea035b3003 WHIRLPOOL 321d4f4d28c447836b3c9bd75f1d6b564b06903a7df7139df3b27695c20f07cc3045655b3eb826418edac5b4c9fd0c7558f7b8764ea025438b352d6528e0af93
|
||||||
|
DIST ccache-3.2.4.tar.xz 302548 SHA256 1c3da93f654e78a4ac71a54b0f63b19bc0fef9aa5522f4ebb9c201d4361cea5d SHA512 d048b70804c81dece97f3ba511b3c109ec0d14e7dca69bc68faeeb61a4a7b5639c03e3e5ad7dad4e42b4bd198d7a7fffa4e3b7ef99590dfd4df0805db6c25db7 WHIRLPOOL 3dc1de9d1cab8769b3776e48746a1967536e7a9d01e4eb23e1ddbaaf2858c16eba170a185312bfdb0a58951c77cd6c79ff30c7cf6ab366ade64c2b6997df7703
|
||||||
|
DIST ccache-3.2.5.tar.xz 304592 SHA256 117011534b199dbe290b08acae1591c81525536a1e140da22e0fbc04c20bab85 SHA512 12612b899044db50c60bea8ed6cfeb54960ab67514d0aabaea5ee71d3d4d83bb00637e02008365d1d061adf5aa546499948a5eb8a0419222f681058c7fd5fd24 WHIRLPOOL 2cad966b419c16d7956fb2644c1113a8817437f313d54dd17fb16ae4a15f67a322b59d1b225307c980d2e17442478b71ef2bb118d2af4025e530e68fb46767cb
|
||||||
|
DIST ccache-3.2.7.tar.xz 305596 SHA256 f1db1ef3cdcf85cf40c7be926c28b4a3beb12ea4d7f1760edf45e753c5147d95 SHA512 4292bd880f7ec39591a4abc232822121e79e706659e36c6aac3f3846fa119ebe18eed3bfefb535e229da8556fe787f1700ff3c63df56d459c6f44260db24b9fa WHIRLPOOL 9abbb67873fb894d1a82e96773b723ec06830dc2a344e4d1fdfc713bc5a9a219b918633ea2b2e9c9a48a0eddc4eca3ca0eb2eb6c8b484e6e469990010dfee904
|
||||||
|
DIST ccache-3.3.3.tar.xz 312160 SHA256 3b02a745da1cfa9eb438af7147e0fd3545e2f6163de9e5b07da86f58859f04ec SHA512 59652955708c11dc4e2a0d76bc3810de0ce4009b93196d7e6a28ecf3829616d278e7dfedbd715136cd20c81f57d3912682bec8dbcd5ebed5aaf6508520b93587 WHIRLPOOL 5da75d4088fe2596eb7dc10354b322e6122114689126c676317747e20c2d82d7d830ff1476a8799844a0e377cbab085c0ccab21480b0231ed68c11a7d1c55991
|
||||||
|
EBUILD ccache-3.2.4.ebuild 2069 SHA256 bdf5ba3562a5071266ab8ca138f46196af4c5852e12dfb1fe0ad2ec8a8ff473a SHA512 dac9988b7e1b624c100fd07c38942178002bf9159d751e43e3417cd001b6b8c875d24a63d0ff88db5b54dd0ece0b17b64e8f70a8ea8465a5fb56834aade5873f WHIRLPOOL 93f5c92f70f757395b8c466c9597b3457a51a376e10b742771189eb0f845aa76228778b58c54f16838e0ec384a544b8f3554c45727f175ba4a769718680e624d
|
||||||
|
EBUILD ccache-3.2.5.ebuild 2088 SHA256 89bd75f94bd090f799cc9f2c2587b102db4e2b5395a876bca46c8edfadfef05d SHA512 4ac66ec215a47a8ecd4a05ce42b0766a59fe2b894e6861d3c101a7dd4c9163712654a428851e2f2b07b4c33161674de3be9c59753761519e50a24c7305541ff4 WHIRLPOOL dfee79aaac54dc5710155fdfcf1faf176cf3e2a852f175654d51271fac152c4819cb8a133e136eda9f5893c80291a0c843c777d1b40f5b05d55084968a928c88
|
||||||
|
EBUILD ccache-3.2.7.ebuild 2081 SHA256 d3bcbfe4d182974a99739d0ed2d84559d7ce0ac74354a0818cee9ac3a8e67302 SHA512 968ef1968c01e4056409c1a78ad049ec1bc2f8f7d72e62ec5952fa5d33bb412a3d4e8bd711aa9fc7fd419c1c9ac4fcbcea0fc38a5eb4fb0779596a165c2e4a4c WHIRLPOOL 3c3db2898cbd7d8a35dd3c9cef563b3a25a3f5560011f4b583e4b2085aa73d974ff044356580a78d94a0ab2a12fcf6f1d91d18c1dd1ecd1184b22ad59d741252
|
||||||
|
EBUILD ccache-3.3.3.ebuild 2078 SHA256 414e28adefcf8eec67dec4e41aa91f0fdb46e89a3cc9e68ad9c4091f64bea394 SHA512 b1ca8999409606dc0cc868b6bba1ba8a0351cc6596a2b5760da916fc6715b9fa184f5a785bd2b1497211b54883a8e0a56be6e35d4e3c8329d5615b5bcea7e895 WHIRLPOOL bee0286f393a3996ece8afb11a4d78d95d75be0a92f3cd45069ef63fc5b64707a45a608582ca5e81c45fe981684a7c87bf114e26dd43ccb33121a0935e517eb1
|
||||||
|
MISC ChangeLog 5226 SHA256 83b5264607643d87e0606d6cd7c423812b0008157298eba1083deee111dd2a53 SHA512 12b70582f98da4a23db1214049c7470bd52889dcffe040b16f771bf500502a5ecbab780b99d51572a2c407c385c77612fa5f3629ce548f733539c450fc7c3b89 WHIRLPOOL 24730eea1a632e8832a419109e05e8ac4598b7f0443cdec7288a97c5a24568422bdd7f132df8e5a28315c29eaa4acc7b9fd4ca31cd67483e1537d9f87cc4e247
|
||||||
|
MISC ChangeLog-2015 19471 SHA256 1ef22a84660ca8147902eec4e11cd99a79a47e25e7099c6a938eaaab05ff34ea SHA512 073c94a370a3d585b6323e1bd1ad78a368a5f300c8978794539c588768d3b1112ffb4e1c37a7a6cb6d86d227b46241be4f3d96089b52793ec9b0ff7127e29dc0 WHIRLPOOL 145e3d871eb96771fdb2768478822ce3e4b4e09ed1a741a51f7639cbd7d48d4c254114b59d8b34887b234fbbcb93bae3dcf6ffa7cbb1a6f5ff69efa52bf9ac0f
|
||||||
|
MISC metadata.xml 535 SHA256 bf767447aba3cf42baab8864adb624dd8f126925a74f148e70519b632bedc1db SHA512 1ea0a9f1079489e0f2cf70f923c0c2594ecabf73aa589fe2ca8474e67f41986757c7074145a5b68bc953cac75580497153356c51283e6a90eae91ac94f2fa910 WHIRLPOOL 4816c46eea6018261b1fe024d53bf577d0641e8ddb7cdcb8f827a9eb57bd209d08b2a2c9a10e07bb2eace0b51490169e5ec0d0c35c76f4060454a611bee3e5c4
|
68
sdk_container/src/third_party/portage-stable/dev-util/ccache/ccache-3.2.4.ebuild
vendored
Normal file
68
sdk_container/src/third_party/portage-stable/dev-util/ccache/ccache-3.2.4.ebuild
vendored
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils readme.gentoo
|
||||||
|
|
||||||
|
DESCRIPTION="fast compiler cache"
|
||||||
|
HOMEPAGE="http://ccache.samba.org/"
|
||||||
|
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"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="app-arch/xz-utils
|
||||||
|
sys-libs/zlib"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
sys-apps/gentoo-functions"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# make sure we always use system zlib
|
||||||
|
rm -rf zlib || die
|
||||||
|
epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
|
||||||
|
sed \
|
||||||
|
-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
|
||||||
|
"${FILESDIR}"/ccache-config-3 > ccache-config || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.txt )
|
||||||
|
default
|
||||||
|
|
||||||
|
dobin ccache-config
|
||||||
|
|
||||||
|
DOC_CONTENTS="
|
||||||
|
To use ccache with **non-Portage** C compiling, add
|
||||||
|
${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}usr/bin.
|
||||||
|
Portage 2.0.46-r11+ will automatically take advantage of ccache with
|
||||||
|
no additional steps. If this is your first install of ccache, type
|
||||||
|
something like this to set a maximum cache size of 2GB:\\n
|
||||||
|
# ccache -M 2G\\n
|
||||||
|
If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
|
||||||
|
# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
|
||||||
|
ccache now supports sys-devel/clang and dev-lang/icc, too!"
|
||||||
|
|
||||||
|
readme.gentoo_create_doc
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_prerm() {
|
||||||
|
if [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --remove-links
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --install-links
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
|
||||||
|
|
||||||
|
# nuke broken symlinks from previous versions that shouldn't exist
|
||||||
|
rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
|
||||||
|
rm -rf "${EROOT}"/usr/lib/ccache.backup || die
|
||||||
|
|
||||||
|
readme.gentoo_print_elog
|
||||||
|
}
|
68
sdk_container/src/third_party/portage-stable/dev-util/ccache/ccache-3.2.5.ebuild
vendored
Normal file
68
sdk_container/src/third_party/portage-stable/dev-util/ccache/ccache-3.2.5.ebuild
vendored
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
inherit eutils readme.gentoo-r1
|
||||||
|
|
||||||
|
DESCRIPTION="fast compiler cache"
|
||||||
|
HOMEPAGE="http://ccache.samba.org/"
|
||||||
|
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"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="app-arch/xz-utils
|
||||||
|
sys-libs/zlib"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
sys-apps/gentoo-functions"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# make sure we always use system zlib
|
||||||
|
rm -rf zlib || die
|
||||||
|
epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
|
||||||
|
sed \
|
||||||
|
-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
|
||||||
|
"${FILESDIR}"/ccache-config-3 > ccache-config || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.txt )
|
||||||
|
default
|
||||||
|
|
||||||
|
dobin ccache-config
|
||||||
|
|
||||||
|
DOC_CONTENTS="
|
||||||
|
To use ccache with **non-Portage** C compiling, add
|
||||||
|
${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin.
|
||||||
|
Portage 2.0.46-r11+ will automatically take advantage of ccache with
|
||||||
|
no additional steps. If this is your first install of ccache, type
|
||||||
|
something like this to set a maximum cache size of 2GB:\\n
|
||||||
|
# ccache -M 2G\\n
|
||||||
|
If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
|
||||||
|
# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
|
||||||
|
ccache now supports sys-devel/clang and dev-lang/icc, too!"
|
||||||
|
|
||||||
|
readme.gentoo_create_doc
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_prerm() {
|
||||||
|
if [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --remove-links
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --install-links
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
|
||||||
|
|
||||||
|
# nuke broken symlinks from previous versions that shouldn't exist
|
||||||
|
rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
|
||||||
|
rm -rf "${EROOT}"/usr/lib/ccache.backup || die
|
||||||
|
|
||||||
|
readme.gentoo_print_elog
|
||||||
|
}
|
67
sdk_container/src/third_party/portage-stable/dev-util/ccache/ccache-3.2.7.ebuild
vendored
Normal file
67
sdk_container/src/third_party/portage-stable/dev-util/ccache/ccache-3.2.7.ebuild
vendored
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
inherit eutils readme.gentoo-r1
|
||||||
|
|
||||||
|
DESCRIPTION="fast compiler cache"
|
||||||
|
HOMEPAGE="http://ccache.samba.org/"
|
||||||
|
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"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="app-arch/xz-utils
|
||||||
|
sys-libs/zlib"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
sys-apps/gentoo-functions"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# make sure we always use system zlib
|
||||||
|
rm -rf zlib || die
|
||||||
|
epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
|
||||||
|
sed \
|
||||||
|
-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
|
||||||
|
"${FILESDIR}"/ccache-config-3 > ccache-config || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.txt )
|
||||||
|
default
|
||||||
|
|
||||||
|
dobin ccache-config
|
||||||
|
|
||||||
|
DOC_CONTENTS="
|
||||||
|
To use ccache with **non-Portage** C compiling, add
|
||||||
|
${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin.
|
||||||
|
Portage 2.0.46-r11+ will automatically take advantage of ccache with
|
||||||
|
no additional steps. If this is your first install of ccache, type
|
||||||
|
something like this to set a maximum cache size of 2GB:\\n
|
||||||
|
# ccache -M 2G\\n
|
||||||
|
If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
|
||||||
|
# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
|
||||||
|
ccache now supports sys-devel/clang and dev-lang/icc, too!"
|
||||||
|
|
||||||
|
readme.gentoo_create_doc
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_prerm() {
|
||||||
|
if [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --remove-links
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --install-links
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
|
||||||
|
|
||||||
|
# nuke broken symlinks from previous versions that shouldn't exist
|
||||||
|
rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
|
||||||
|
rm -rf "${EROOT}"/usr/lib/ccache.backup || die
|
||||||
|
|
||||||
|
readme.gentoo_print_elog
|
||||||
|
}
|
67
sdk_container/src/third_party/portage-stable/dev-util/ccache/ccache-3.3.3.ebuild
vendored
Normal file
67
sdk_container/src/third_party/portage-stable/dev-util/ccache/ccache-3.3.3.ebuild
vendored
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
inherit eutils readme.gentoo-r1
|
||||||
|
|
||||||
|
DESCRIPTION="fast compiler cache"
|
||||||
|
HOMEPAGE="http://ccache.samba.org/"
|
||||||
|
SRC_URI="https://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"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="app-arch/xz-utils
|
||||||
|
sys-libs/zlib"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
sys-apps/gentoo-functions"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# make sure we always use system zlib
|
||||||
|
rm -rf zlib || die
|
||||||
|
epatch "${FILESDIR}"/${PN}-3.3-size-on-disk.patch #456178
|
||||||
|
sed \
|
||||||
|
-e "/^EPREFIX=/s:'':'${EPREFIX}':" \
|
||||||
|
"${FILESDIR}"/ccache-config-3 > ccache-config || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.md )
|
||||||
|
default
|
||||||
|
|
||||||
|
dobin ccache-config
|
||||||
|
|
||||||
|
DOC_CONTENTS="
|
||||||
|
To use ccache with **non-Portage** C compiling, add
|
||||||
|
${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin.
|
||||||
|
Portage 2.0.46-r11+ will automatically take advantage of ccache with
|
||||||
|
no additional steps. If this is your first install of ccache, type
|
||||||
|
something like this to set a maximum cache size of 2GB:\\n
|
||||||
|
# ccache -M 2G\\n
|
||||||
|
If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
|
||||||
|
# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
|
||||||
|
ccache now supports sys-devel/clang and dev-lang/icc, too!"
|
||||||
|
|
||||||
|
readme.gentoo_create_doc
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_prerm() {
|
||||||
|
if [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --remove-links
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --install-links
|
||||||
|
"${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
|
||||||
|
|
||||||
|
# nuke broken symlinks from previous versions that shouldn't exist
|
||||||
|
rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
|
||||||
|
rm -rf "${EROOT}"/usr/lib/ccache.backup || die
|
||||||
|
|
||||||
|
readme.gentoo_print_elog
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
https://bugs.gentoo.org/56178
|
||||||
|
|
||||||
|
stick to the size of files on disk rather than their byte size.
|
||||||
|
this func is only used for stats management, so this should be safe.
|
||||||
|
|
||||||
|
--- a/util.c
|
||||||
|
+++ b/util.c
|
||||||
|
@@ -845,12 +845,7 @@ file_size(struct stat *st)
|
||||||
|
#ifdef _WIN32
|
||||||
|
return (st->st_size + 1023) & ~1023;
|
||||||
|
#else
|
||||||
|
- size_t size = st->st_blocks * 512;
|
||||||
|
- if ((size_t)st->st_size > size) {
|
||||||
|
- /* probably a broken stat() call ... */
|
||||||
|
- size = (st->st_size + 1023) & ~1023;
|
||||||
|
- }
|
||||||
|
- return size;
|
||||||
|
+ return st->st_blocks * 512;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
21
sdk_container/src/third_party/portage-stable/dev-util/ccache/files/ccache-3.3-size-on-disk.patch
vendored
Normal file
21
sdk_container/src/third_party/portage-stable/dev-util/ccache/files/ccache-3.3-size-on-disk.patch
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
https://bugs.gentoo.org/56178
|
||||||
|
|
||||||
|
stick to the size of files on disk rather than their byte size.
|
||||||
|
this func is only used for stats management, so this should be safe.
|
||||||
|
|
||||||
|
--- a/util.c
|
||||||
|
+++ b/util.c
|
||||||
|
@@ -845,12 +845,7 @@ file_size(struct stat *st)
|
||||||
|
#ifdef _WIN32
|
||||||
|
return (st->st_size + 1023) & ~1023;
|
||||||
|
#else
|
||||||
|
- size_t size = st->st_blocks * 512;
|
||||||
|
- if ((size_t)st->st_size > size) {
|
||||||
|
- // Probably a broken stat() call...
|
||||||
|
- size = (st->st_size + 1023) & ~1023;
|
||||||
|
- }
|
||||||
|
- return size;
|
||||||
|
+ return st->st_blocks * 512;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
97
sdk_container/src/third_party/portage-stable/dev-util/ccache/files/ccache-config-3
vendored
Normal file
97
sdk_container/src/third_party/portage-stable/dev-util/ccache/files/ccache-config-3
vendored
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# ccache-config - helper script for ccache and its ebuild
|
||||||
|
#
|
||||||
|
# Copyright 2003-2014 Superlucidity Services, LLC
|
||||||
|
# Copyright 2013-2014 Gentoo Foundation
|
||||||
|
# This program licensed under the GNU GPL version 2.
|
||||||
|
#
|
||||||
|
# This script developed by Zachary T Welch at Superlucidity Services, LLC
|
||||||
|
# it was cloned from the distcc-config script
|
||||||
|
#
|
||||||
|
# Additional features to come; this provides a starting point
|
||||||
|
|
||||||
|
EPREFIX=''
|
||||||
|
|
||||||
|
. "${EPREFIX}"/lib/gentoo/functions.sh 2>/dev/null || {
|
||||||
|
ebegin() { echo " * $* ..."; }
|
||||||
|
eend() {
|
||||||
|
local r=${1:-$?}
|
||||||
|
[ ${r} -eq 0 ] && echo " [ OK ]" || echo " [ !! ]"
|
||||||
|
return $r
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
LIBDIR="lib"
|
||||||
|
|
||||||
|
# this should be getopt'd someday (override with CC_QUIET=1)
|
||||||
|
CC_VERBOSE=1
|
||||||
|
unset _CC_QUIET
|
||||||
|
c_quiet() {
|
||||||
|
[ -n "${CC_QUIET:-${_CC_QUIET}}" ] || [ -z "${CC_VERBOSE}" ]
|
||||||
|
}
|
||||||
|
|
||||||
|
c_ebegin() { c_quiet || ebegin "$@" ; }
|
||||||
|
c_eend() { c_quiet || eend "$@" ; }
|
||||||
|
|
||||||
|
###
|
||||||
|
# the following functions manage the ccache symlinks
|
||||||
|
# they allow the user or other scripts (namely gcc-config) to
|
||||||
|
# automatically update ccache's links when upgrading toolchains
|
||||||
|
#
|
||||||
|
cc_path() {
|
||||||
|
echo ${ROOT%/}${EPREFIX}/usr/${LIBDIR}/ccache/bin/$1
|
||||||
|
}
|
||||||
|
cc_remove_link() {
|
||||||
|
local t=$(cc_path "$1")
|
||||||
|
if [ -L ${t} ]; then
|
||||||
|
c_ebegin "Removing ${t}"
|
||||||
|
rm -f "${t}"
|
||||||
|
c_eend
|
||||||
|
|
||||||
|
# Trim the empty dir if possible. #517242
|
||||||
|
t=${t%/*}
|
||||||
|
if rmdir "${t}" 2>/dev/null; then
|
||||||
|
rmdir "${t%/*}" 2>/dev/null
|
||||||
|
fi
|
||||||
|
:
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
cc_install_link() {
|
||||||
|
# Search the PATH for the specified compiler
|
||||||
|
# then create shadow link in /usr/lib/ccache/bin to ccache
|
||||||
|
|
||||||
|
if command -v "$1" >/dev/null ; then
|
||||||
|
# first be sure any old link is removed
|
||||||
|
_CC_QUIET=1
|
||||||
|
cc_remove_link "$1"
|
||||||
|
unset _CC_QUIET
|
||||||
|
|
||||||
|
# then create the new link
|
||||||
|
local t=$(cc_path "$1")
|
||||||
|
c_ebegin "Creating ccache shadow link ${t}"
|
||||||
|
mkdir -p -m 0755 "${t%/*}" && ln -s "${EPREFIX}"/usr/bin/ccache "${t}"
|
||||||
|
c_eend
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
cc_links() {
|
||||||
|
local a
|
||||||
|
for a in gcc cc c++ g++ icc icpc clang clang++ ; do
|
||||||
|
"cc_${1}_link" "${2}${2:+-}${a}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
###
|
||||||
|
# main routine
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
--install-links )
|
||||||
|
cc_links install "$2"
|
||||||
|
;;
|
||||||
|
--remove-links )
|
||||||
|
cc_links remove "$2"
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo "usage: $0 {--install-links|--remove-links} [ CHOST ]"
|
||||||
|
;;
|
||||||
|
esac
|
15
sdk_container/src/third_party/portage-stable/dev-util/ccache/metadata.xml
vendored
Normal file
15
sdk_container/src/third_party/portage-stable/dev-util/ccache/metadata.xml
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>robbat2@gentoo.org</email>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>toolchain@gentoo.org</email>
|
||||||
|
<name>Gentoo Toolchain Project</name>
|
||||||
|
</maintainer>
|
||||||
|
<longdescription lang="en">
|
||||||
|
ccache acts as a caching pre-processor to C/C++ compilers, improving
|
||||||
|
compilation time when recompiling previously compiled source.
|
||||||
|
</longdescription>
|
||||||
|
</pkgmetadata>
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-util/ccache-3.2.4
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-util/ccache-3.2.4
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=install postinst prepare prerm
|
||||||
|
DEPEND=app-arch/xz-utils sys-libs/zlib
|
||||||
|
DESCRIPTION=fast compiler cache
|
||||||
|
EAPI=5
|
||||||
|
HOMEPAGE=http://ccache.samba.org/
|
||||||
|
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
|
||||||
|
LICENSE=GPL-3
|
||||||
|
RDEPEND=app-arch/xz-utils sys-libs/zlib sys-apps/gentoo-functions
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://samba.org/ftp/ccache/ccache-3.2.4.tar.xz
|
||||||
|
_eclasses_=eutils 9d81603248f2ba3ec59124320d123e5e multilib 3972ca401cf7dbb430df9995f5d8d580 readme.gentoo df3fc8fdaf5a519e7d48c83e7592c95f toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85
|
||||||
|
_md5_=ed57d4f08b90603699f782d60bd7e375
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-util/ccache-3.2.5
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-util/ccache-3.2.5
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=install postinst prepare prerm
|
||||||
|
DEPEND=app-arch/xz-utils sys-libs/zlib
|
||||||
|
DESCRIPTION=fast compiler cache
|
||||||
|
EAPI=5
|
||||||
|
HOMEPAGE=http://ccache.samba.org/
|
||||||
|
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
|
||||||
|
LICENSE=GPL-3
|
||||||
|
RDEPEND=app-arch/xz-utils sys-libs/zlib sys-apps/gentoo-functions
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://samba.org/ftp/ccache/ccache-3.2.5.tar.xz
|
||||||
|
_eclasses_=eutils 9d81603248f2ba3ec59124320d123e5e multilib 3972ca401cf7dbb430df9995f5d8d580 readme.gentoo-r1 03878c06495db70bc36bd717383c09f7 toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85
|
||||||
|
_md5_=eb09737e597b4fe04da94307b2a3334f
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-util/ccache-3.2.7
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-util/ccache-3.2.7
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=install postinst prepare prerm
|
||||||
|
DEPEND=app-arch/xz-utils sys-libs/zlib
|
||||||
|
DESCRIPTION=fast compiler cache
|
||||||
|
EAPI=5
|
||||||
|
HOMEPAGE=http://ccache.samba.org/
|
||||||
|
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
|
||||||
|
LICENSE=GPL-3
|
||||||
|
RDEPEND=app-arch/xz-utils sys-libs/zlib sys-apps/gentoo-functions
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=http://samba.org/ftp/ccache/ccache-3.2.7.tar.xz
|
||||||
|
_eclasses_=eutils 9d81603248f2ba3ec59124320d123e5e multilib 3972ca401cf7dbb430df9995f5d8d580 readme.gentoo-r1 03878c06495db70bc36bd717383c09f7 toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85
|
||||||
|
_md5_=4579caab104ec57426c3439c51e95b88
|
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-util/ccache-3.3.3
vendored
Normal file
12
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-util/ccache-3.3.3
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
DEFINED_PHASES=install postinst prepare prerm
|
||||||
|
DEPEND=app-arch/xz-utils sys-libs/zlib
|
||||||
|
DESCRIPTION=fast compiler cache
|
||||||
|
EAPI=5
|
||||||
|
HOMEPAGE=http://ccache.samba.org/
|
||||||
|
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
|
||||||
|
LICENSE=GPL-3
|
||||||
|
RDEPEND=app-arch/xz-utils sys-libs/zlib sys-apps/gentoo-functions
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=https://samba.org/ftp/ccache/ccache-3.3.3.tar.xz
|
||||||
|
_eclasses_=eutils 9d81603248f2ba3ec59124320d123e5e multilib 3972ca401cf7dbb430df9995f5d8d580 readme.gentoo-r1 03878c06495db70bc36bd717383c09f7 toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85
|
||||||
|
_md5_=2a90fb45819d742236198d65707fdc64
|
Loading…
Reference in New Issue
Block a user