Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ccache/, dev-util/ccache/files/
Date: Fri, 27 May 2016 20:40:38
Message-Id: 1464381619.0c06be89f43a6e357bcf55e3bc8e97ffad5f7633.vapier@gentoo
1 commit: 0c06be89f43a6e357bcf55e3bc8e97ffad5f7633
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 27 20:40:15 2016 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Fri May 27 20:40:19 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c06be89
7
8 dev-util/ccache: drop old <3.2.4 versions
9
10 dev-util/ccache/Manifest | 6 -
11 dev-util/ccache/ccache-2.4-r9.ebuild | 83 ---------
12 dev-util/ccache/ccache-3.1.10-r1.ebuild | 69 --------
13 dev-util/ccache/ccache-3.1.9-r4.ebuild | 71 --------
14 dev-util/ccache/ccache-3.2.1-r1.ebuild | 69 --------
15 dev-util/ccache/ccache-3.2.2.ebuild | 69 --------
16 dev-util/ccache/ccache-3.2.3.ebuild | 68 --------
17 dev-util/ccache/files/ccache-2.4-profile.patch | 27 ---
18 .../ccache/files/ccache-2.4-respectflags.patch | 13 --
19 dev-util/ccache/files/ccache-2.4-utimes.patch | 105 ------------
20 dev-util/ccache/files/ccache-2.4-xrealloc.patch | 35 ----
21 .../files/ccache-3.1.10-real-temp-files.patch | 185 ---------------------
22 dev-util/ccache/files/ccache-3.1.7-no-perl.patch | 15 --
23 .../ccache/files/ccache-3.1.9-test-gcc-4.8.patch | 156 -----------------
24 dev-util/ccache/files/ccache-config | 100 -----------
25 dev-util/ccache/files/ccache-config-2 | 97 -----------
26 16 files changed, 1168 deletions(-)
27
28 diff --git a/dev-util/ccache/Manifest b/dev-util/ccache/Manifest
29 index e8cf550..8545398 100644
30 --- a/dev-util/ccache/Manifest
31 +++ b/dev-util/ccache/Manifest
32 @@ -1,8 +1,2 @@
33 -DIST ccache-2.4.tar.gz 86363 SHA256 435f862ca5168c346f5aa9e242174bbf19a5abcaeecfceeac2f194558827aaa0 SHA512 6ab05f74eba5c0a7472a3d53cfa6c24e45f421f2c773776f713a46121eda21213deb34fcef214d4f8d2e756cd375637e4639a9bdfeb6b9a44455c5bcca246b19 WHIRLPOOL eb308222713d17f52f88ac97a5c63add454b350d60259d1d2238e3b54f1e80ad8c8700e0e045b40aa5be64b1db54846a86da600436778a64d2270efff7763380
34 -DIST ccache-3.1.10.tar.xz 240932 SHA256 88439f43d3b426ab435afdf69a808511bada4de3a8a9527426bc4fbf6cb02857 SHA512 6a1c77161ec97b556a8c58592e2d6bba8e3d43cc039de3ebaa2a80fb92ae54bb7bad58eb011f52b750e29aadb0ed208220fb67d30deaf6c64aa4cfab31937fed WHIRLPOOL 5d527d986ba14a6312f82df277d7de47757bb43b7bcaf9eb6cbdbf337af862726f1f85ff7c352d0ad54344d98a8d8dc538e43de05976cdd29710b72917b42106
35 -DIST ccache-3.1.9.tar.xz 238988 SHA256 4981fdf3ad851de400d94083a0d03f115ce9ce8062c3fd7a291630294b0006c4 SHA512 b73f5816bb87c2d94200473510ea42a304c5a2c5e5f14720c513574ce3eb983423c5849a786a89df70cbb09852d9ec2761ad37a820a767d7350e1a3243148ac0 WHIRLPOOL 61ef671aae68516ecfaee88a50b8f442968a7ab24595fd7dfc652ab27de80834d90510c62cfcc75dd88e1f3832989633f518ebe5984149c16d5ab9848cff05fc
36 -DIST ccache-3.2.1.tar.xz 297868 SHA256 872af34e1d2cef18694001d29db7f167d644e7602ca32cd6c74b28d81458bd9d SHA512 ef0e56f2d1775fb0f401f48cca2a65eb415f4e2ccf0bcfd769045a9c08c3c2977db4edea12e06629f4cb5406cde23cd3ee0910e2e4d5eff9376227fa23c78a7a WHIRLPOOL f3d07cf142258d588a1c6cb9ba77d31d7b568cd18ae131ed3526595c809352b0fa30ae61b0bfcbfde3ea8d959c545119662c25af0cd03c97517be361315e1ffe
37 -DIST ccache-3.2.2.tar.xz 300808 SHA256 4f0d99699f24d198494addca0f41a93b0150cdfd01491f15a5d7eb02c7c2a0ca SHA512 fc438f3b00baa41076eee3e5783ea53a208eb348343e587c6f729f7e98462cd20c720fe323fe08f271bc14dae48f7828cef769882f028f3772992989b87b075d WHIRLPOOL 095a125e869910644622b98b7720a01ccc235fbeb8c84ec52017fe52f82fe7b8122584c3e5fa4d39c1344e9c062517a1edb46c3e64fe649e845ed5c1fb455c5a
38 -DIST ccache-3.2.3.tar.xz 301728 SHA256 ec0414fc435982ece8b8fca062f5836ff32c5d5148abd7f80768614ed776600e SHA512 27da2032fd8936253e29f0410fc2f8085967de78ebe300bd1efecf78c67ed5e060e543df96bb29bc1bea75ec4d5e108f89d58dc6d9573bf6fcc8384d00b951dd WHIRLPOOL 721e9e8dab552c40bfd77df3225e33d49553b2bee5ec990dc6f33ce8bdd9009f4f35b75d08d04ce51ee36e0772a5b403c4d8629627dd6d488b717e23b3d3657c
39 DIST ccache-3.2.4.tar.xz 302548 SHA256 1c3da93f654e78a4ac71a54b0f63b19bc0fef9aa5522f4ebb9c201d4361cea5d SHA512 d048b70804c81dece97f3ba511b3c109ec0d14e7dca69bc68faeeb61a4a7b5639c03e3e5ad7dad4e42b4bd198d7a7fffa4e3b7ef99590dfd4df0805db6c25db7 WHIRLPOOL 3dc1de9d1cab8769b3776e48746a1967536e7a9d01e4eb23e1ddbaaf2858c16eba170a185312bfdb0a58951c77cd6c79ff30c7cf6ab366ade64c2b6997df7703
40 DIST ccache-3.2.5.tar.xz 304592 SHA256 117011534b199dbe290b08acae1591c81525536a1e140da22e0fbc04c20bab85 SHA512 12612b899044db50c60bea8ed6cfeb54960ab67514d0aabaea5ee71d3d4d83bb00637e02008365d1d061adf5aa546499948a5eb8a0419222f681058c7fd5fd24 WHIRLPOOL 2cad966b419c16d7956fb2644c1113a8817437f313d54dd17fb16ae4a15f67a322b59d1b225307c980d2e17442478b71ef2bb118d2af4025e530e68fb46767cb
41
42 diff --git a/dev-util/ccache/ccache-2.4-r9.ebuild b/dev-util/ccache/ccache-2.4-r9.ebuild
43 deleted file mode 100644
44 index 6aeeaf5..0000000
45 --- a/dev-util/ccache/ccache-2.4-r9.ebuild
46 +++ /dev/null
47 @@ -1,83 +0,0 @@
48 -# Copyright 1999-2011 Gentoo Foundation
49 -# Distributed under the terms of the GNU General Public License v2
50 -# $Id$
51 -
52 -WANT_AUTOMAKE=none # not using automake
53 -
54 -inherit eutils autotools multilib
55 -
56 -DESCRIPTION="fast compiler cache"
57 -HOMEPAGE="http://ccache.samba.org/"
58 -SRC_URI="http://samba.org/ftp/ccache/${P}.tar.gz"
59 -
60 -LICENSE="GPL-2"
61 -SLOT="0"
62 -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
63 -IUSE=""
64 -
65 -# Note: this version is designed to be auto-detected and used if
66 -# you happen to have Portage 2.0.X+ installed.
67 -
68 -src_unpack() {
69 - unpack ${A}
70 - cd "${S}"
71 - epatch "${FILESDIR}"/ccache-2.4-profile.patch
72 - epatch "${FILESDIR}"/ccache-2.4-respectflags.patch
73 - epatch "${FILESDIR}"/ccache-2.4-utimes.patch
74 - epatch "${FILESDIR}"/ccache-2.4-xrealloc.patch #338137
75 - eautoconf
76 -}
77 -
78 -do_links() {
79 - insinto /usr/$(get_libdir)/ccache/bin
80 - for a in ${CHOST}-{gcc,g++,c++} gcc c++ g++; do
81 - dosym /usr/bin/ccache /usr/$(get_libdir)/ccache/bin/${a}
82 - done
83 -}
84 -
85 -src_install() {
86 - dobin ccache || die
87 - doman ccache.1
88 - dodoc README
89 - dohtml web/*.html
90 -
91 - diropts -m0755
92 - dodir /usr/$(get_libdir)/ccache/bin
93 - keepdir /usr/$(get_libdir)/ccache/bin
94 -
95 - dobin "${FILESDIR}"/ccache-config || die
96 -
97 - diropts -m0700
98 - dodir /root/.ccache
99 - keepdir /root/.ccache
100 -}
101 -
102 -pkg_preinst() {
103 - # Do NOT duplicate this in your ebuilds or phear of the wrath!!!
104 - if [[ ${ROOT} = "/" ]] ; then
105 - einfo "Scanning for compiler front-ends..."
106 - do_links
107 - else
108 - ewarn "Install is incomplete; you must run the following commands:"
109 - ewarn " # ccache-config --install-links"
110 - ewarn " # ccache-config --install-links ${CHOST}"
111 - ewarn "after booting or chrooting to ${ROOT} to complete installation."
112 - fi
113 -}
114 -
115 -pkg_postinst() {
116 - # nuke broken symlinks from previous versions that shouldn't exist
117 - for i in cc ${CHOST}-cc ; do
118 - [[ -L "${ROOT}/usr/$(get_libdir)/ccache/bin/${i}" ]] && \
119 - rm -rf "${ROOT}/usr/$(get_libdir)/ccache/bin/${i}"
120 - done
121 - [[ -d "${ROOT}/usr/$(get_libdir)/ccache.backup" ]] && \
122 - rm -fr "${ROOT}/usr/$(get_libdir)/ccache.backup"
123 -
124 - elog "To use ccache with **non-Portage** C compiling, add"
125 - elog "/usr/$(get_libdir)/ccache/bin to the beginning of your path, before /usr/bin."
126 - elog "Portage 2.0.46-r11+ will automatically take advantage of ccache with"
127 - elog "no additional steps. If this is your first install of ccache, type"
128 - elog "something like this to set a maximum cache size of 2GB:"
129 - elog "# ccache -M 2G"
130 -}
131
132 diff --git a/dev-util/ccache/ccache-3.1.10-r1.ebuild b/dev-util/ccache/ccache-3.1.10-r1.ebuild
133 deleted file mode 100644
134 index 8deb6f7..0000000
135 --- a/dev-util/ccache/ccache-3.1.10-r1.ebuild
136 +++ /dev/null
137 @@ -1,69 +0,0 @@
138 -# Copyright 1999-2014 Gentoo Foundation
139 -# Distributed under the terms of the GNU General Public License v2
140 -# $Id$
141 -
142 -EAPI="4"
143 -
144 -inherit eutils readme.gentoo
145 -
146 -DESCRIPTION="fast compiler cache"
147 -HOMEPAGE="http://ccache.samba.org/"
148 -SRC_URI="http://samba.org/ftp/ccache/${P}.tar.xz"
149 -
150 -LICENSE="GPL-3"
151 -SLOT="0"
152 -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"
153 -IUSE=""
154 -
155 -RDEPEND="sys-libs/zlib"
156 -DEPEND="${RDEPEND}
157 - app-arch/xz-utils"
158 -
159 -src_prepare() {
160 - # make sure we always use system zlib
161 - rm -rf zlib
162 - epatch "${FILESDIR}"/${PN}-3.1.7-no-perl.patch #421609
163 - epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
164 - epatch "${FILESDIR}"/${PN}-3.1.10-real-temp-files.patch
165 - sed \
166 - -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
167 - "${FILESDIR}"/ccache-config-2 > ccache-config || die
168 -}
169 -
170 -src_install() {
171 - default
172 - dodoc AUTHORS.txt MANUAL.txt NEWS.txt README.txt
173 -
174 - dobin ccache-config
175 -
176 - DOC_CONTENTS="
177 -To use ccache with **non-Portage** C compiling, add
178 -${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}usr/bin.
179 -Portage 2.0.46-r11+ will automatically take advantage of ccache with
180 -no additional steps. If this is your first install of ccache, type
181 -something like this to set a maximum cache size of 2GB:\\n
182 -# ccache -M 2G\\n
183 -If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
184 -# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
185 -ccache now supports sys-devel/clang and dev-lang/icc, too!"
186 -
187 - readme.gentoo_create_doc
188 -}
189 -
190 -pkg_prerm() {
191 - if [[ -z ${REPLACED_BY_VERSION} ]] ; then
192 - "${EROOT}"/usr/bin/ccache-config --remove-links
193 - "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
194 - fi
195 -}
196 -
197 -pkg_postinst() {
198 - "${EROOT}"/usr/bin/ccache-config --install-links
199 - "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
200 -
201 - # nuke broken symlinks from previous versions that shouldn't exist
202 - rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc
203 - rm -rf "${EROOT}"/usr/lib/ccache.backup
204 -
205 - readme.gentoo_print_elog
206 -}
207
208 diff --git a/dev-util/ccache/ccache-3.1.9-r4.ebuild b/dev-util/ccache/ccache-3.1.9-r4.ebuild
209 deleted file mode 100644
210 index 4b7b2d5..0000000
211 --- a/dev-util/ccache/ccache-3.1.9-r4.ebuild
212 +++ /dev/null
213 @@ -1,71 +0,0 @@
214 -# Copyright 1999-2014 Gentoo Foundation
215 -# Distributed under the terms of the GNU General Public License v2
216 -# $Id$
217 -
218 -EAPI="4"
219 -
220 -inherit multilib eutils readme.gentoo
221 -
222 -DESCRIPTION="fast compiler cache"
223 -HOMEPAGE="http://ccache.samba.org/"
224 -SRC_URI="http://samba.org/ftp/ccache/${P}.tar.xz"
225 -
226 -LICENSE="GPL-3"
227 -SLOT="0"
228 -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"
229 -IUSE=""
230 -
231 -DEPEND="app-arch/xz-utils
232 - sys-libs/zlib"
233 -RDEPEND="${DEPEND}
234 - sys-apps/gentoo-functions"
235 -
236 -src_prepare() {
237 - # make sure we always use system zlib
238 - rm -rf zlib
239 - epatch "${FILESDIR}"/${PN}-3.1.7-no-perl.patch #421609
240 - epatch "${FILESDIR}"/${P}-test-gcc-4.8.patch #461966
241 - sed \
242 - -e "/^LIBDIR=/s:lib:$(get_libdir):" \
243 - -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
244 - "${FILESDIR}"/ccache-config-3 > ccache-config || die
245 -}
246 -
247 -src_install() {
248 - default
249 - dodoc AUTHORS.txt MANUAL.txt NEWS.txt README.txt
250 -
251 - dobin ccache-config
252 -
253 - DOC_CONTENTS="
254 -To use ccache with **non-Portage** C compiling, add
255 -${EPREFIX}/usr/$(get_libdir)/ccache/bin to the beginning of your path, before ${EPREFIX}usr/bin.
256 -Portage 2.0.46-r11+ will automatically take advantage of ccache with
257 -no additional steps. If this is your first install of ccache, type
258 -something like this to set a maximum cache size of 2GB:\\n
259 -# ccache -M 2G\\n
260 -If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
261 -# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
262 -ccache now supports sys-devel/clang and dev-lang/icc, too!"
263 -
264 - readme.gentoo_create_doc
265 -}
266 -
267 -pkg_prerm() {
268 - if [[ -z ${REPLACED_BY_VERSION} ]] ; then
269 - "${EROOT}"/usr/bin/ccache-config --remove-links
270 - "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
271 - fi
272 -}
273 -
274 -pkg_postinst() {
275 - "${EROOT}"/usr/bin/ccache-config --install-links
276 - "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
277 -
278 - # nuke broken symlinks from previous versions that shouldn't exist
279 - rm -f "${EROOT}/usr/$(get_libdir)/ccache/bin/${CHOST}-cc"
280 - [[ -d "${EROOT}/usr/$(get_libdir)/ccache.backup" ]] && \
281 - rm -rf "${EROOT}/usr/$(get_libdir)/ccache.backup"
282 -
283 - readme.gentoo_print_elog
284 -}
285
286 diff --git a/dev-util/ccache/ccache-3.2.1-r1.ebuild b/dev-util/ccache/ccache-3.2.1-r1.ebuild
287 deleted file mode 100644
288 index dfd1b11..0000000
289 --- a/dev-util/ccache/ccache-3.2.1-r1.ebuild
290 +++ /dev/null
291 @@ -1,69 +0,0 @@
292 -# Copyright 1999-2014 Gentoo Foundation
293 -# Distributed under the terms of the GNU General Public License v2
294 -# $Id$
295 -
296 -EAPI=5
297 -
298 -inherit eutils readme.gentoo
299 -
300 -DESCRIPTION="fast compiler cache"
301 -HOMEPAGE="http://ccache.samba.org/"
302 -SRC_URI="http://samba.org/ftp/ccache/${P}.tar.xz"
303 -
304 -LICENSE="GPL-3"
305 -SLOT="0"
306 -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"
307 -IUSE=""
308 -
309 -DEPEND="app-arch/xz-utils
310 - sys-libs/zlib"
311 -RDEPEND="${DEPEND}
312 - sys-apps/gentoo-functions"
313 -
314 -src_prepare() {
315 - # make sure we always use system zlib
316 - rm -rf zlib || die
317 - epatch "${FILESDIR}"/${PN}-3.1.7-no-perl.patch #421609
318 - epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
319 - sed \
320 - -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
321 - "${FILESDIR}"/ccache-config-3 > ccache-config || die
322 -}
323 -
324 -src_install() {
325 - DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.txt )
326 - default
327 -
328 - dobin ccache-config
329 -
330 - DOC_CONTENTS="
331 -To use ccache with **non-Portage** C compiling, add
332 -${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}usr/bin.
333 -Portage 2.0.46-r11+ will automatically take advantage of ccache with
334 -no additional steps. If this is your first install of ccache, type
335 -something like this to set a maximum cache size of 2GB:\\n
336 -# ccache -M 2G\\n
337 -If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
338 -# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
339 -ccache now supports sys-devel/clang and dev-lang/icc, too!"
340 -
341 - readme.gentoo_create_doc
342 -}
343 -
344 -pkg_prerm() {
345 - if [[ -z ${REPLACED_BY_VERSION} ]] ; then
346 - "${EROOT}"/usr/bin/ccache-config --remove-links
347 - "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
348 - fi
349 -}
350 -
351 -pkg_postinst() {
352 - "${EROOT}"/usr/bin/ccache-config --install-links
353 - "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
354 -
355 - # nuke broken symlinks from previous versions that shouldn't exist
356 - rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
357 - rm -rf "${EROOT}"/usr/lib/ccache.backup || die
358 -
359 - readme.gentoo_print_elog
360 -}
361
362 diff --git a/dev-util/ccache/ccache-3.2.2.ebuild b/dev-util/ccache/ccache-3.2.2.ebuild
363 deleted file mode 100644
364 index 49b5179..0000000
365 --- a/dev-util/ccache/ccache-3.2.2.ebuild
366 +++ /dev/null
367 @@ -1,69 +0,0 @@
368 -# Copyright 1999-2015 Gentoo Foundation
369 -# Distributed under the terms of the GNU General Public License v2
370 -# $Id$
371 -
372 -EAPI=5
373 -
374 -inherit eutils readme.gentoo
375 -
376 -DESCRIPTION="fast compiler cache"
377 -HOMEPAGE="http://ccache.samba.org/"
378 -SRC_URI="http://samba.org/ftp/ccache/${P}.tar.xz"
379 -
380 -LICENSE="GPL-3"
381 -SLOT="0"
382 -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"
383 -IUSE=""
384 -
385 -DEPEND="app-arch/xz-utils
386 - sys-libs/zlib"
387 -RDEPEND="${DEPEND}
388 - sys-apps/gentoo-functions"
389 -
390 -src_prepare() {
391 - # make sure we always use system zlib
392 - rm -rf zlib || die
393 - epatch "${FILESDIR}"/${PN}-3.1.7-no-perl.patch #421609
394 - epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
395 - sed \
396 - -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
397 - "${FILESDIR}"/ccache-config-3 > ccache-config || die
398 -}
399 -
400 -src_install() {
401 - DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.txt )
402 - default
403 -
404 - dobin ccache-config
405 -
406 - DOC_CONTENTS="
407 -To use ccache with **non-Portage** C compiling, add
408 -${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}usr/bin.
409 -Portage 2.0.46-r11+ will automatically take advantage of ccache with
410 -no additional steps. If this is your first install of ccache, type
411 -something like this to set a maximum cache size of 2GB:\\n
412 -# ccache -M 2G\\n
413 -If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
414 -# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
415 -ccache now supports sys-devel/clang and dev-lang/icc, too!"
416 -
417 - readme.gentoo_create_doc
418 -}
419 -
420 -pkg_prerm() {
421 - if [[ -z ${REPLACED_BY_VERSION} ]] ; then
422 - "${EROOT}"/usr/bin/ccache-config --remove-links
423 - "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
424 - fi
425 -}
426 -
427 -pkg_postinst() {
428 - "${EROOT}"/usr/bin/ccache-config --install-links
429 - "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
430 -
431 - # nuke broken symlinks from previous versions that shouldn't exist
432 - rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
433 - rm -rf "${EROOT}"/usr/lib/ccache.backup || die
434 -
435 - readme.gentoo_print_elog
436 -}
437
438 diff --git a/dev-util/ccache/ccache-3.2.3.ebuild b/dev-util/ccache/ccache-3.2.3.ebuild
439 deleted file mode 100644
440 index a8d9ebd..0000000
441 --- a/dev-util/ccache/ccache-3.2.3.ebuild
442 +++ /dev/null
443 @@ -1,68 +0,0 @@
444 -# Copyright 1999-2015 Gentoo Foundation
445 -# Distributed under the terms of the GNU General Public License v2
446 -# $Id$
447 -
448 -EAPI=5
449 -
450 -inherit eutils readme.gentoo
451 -
452 -DESCRIPTION="fast compiler cache"
453 -HOMEPAGE="http://ccache.samba.org/"
454 -SRC_URI="http://samba.org/ftp/ccache/${P}.tar.xz"
455 -
456 -LICENSE="GPL-3"
457 -SLOT="0"
458 -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"
459 -IUSE=""
460 -
461 -DEPEND="app-arch/xz-utils
462 - sys-libs/zlib"
463 -RDEPEND="${DEPEND}
464 - sys-apps/gentoo-functions"
465 -
466 -src_prepare() {
467 - # make sure we always use system zlib
468 - rm -rf zlib || die
469 - epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
470 - sed \
471 - -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
472 - "${FILESDIR}"/ccache-config-3 > ccache-config || die
473 -}
474 -
475 -src_install() {
476 - DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.txt )
477 - default
478 -
479 - dobin ccache-config
480 -
481 - DOC_CONTENTS="
482 -To use ccache with **non-Portage** C compiling, add
483 -${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}usr/bin.
484 -Portage 2.0.46-r11+ will automatically take advantage of ccache with
485 -no additional steps. If this is your first install of ccache, type
486 -something like this to set a maximum cache size of 2GB:\\n
487 -# ccache -M 2G\\n
488 -If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
489 -# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
490 -ccache now supports sys-devel/clang and dev-lang/icc, too!"
491 -
492 - readme.gentoo_create_doc
493 -}
494 -
495 -pkg_prerm() {
496 - if [[ -z ${REPLACED_BY_VERSION} ]] ; then
497 - "${EROOT}"/usr/bin/ccache-config --remove-links
498 - "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
499 - fi
500 -}
501 -
502 -pkg_postinst() {
503 - "${EROOT}"/usr/bin/ccache-config --install-links
504 - "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
505 -
506 - # nuke broken symlinks from previous versions that shouldn't exist
507 - rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
508 - rm -rf "${EROOT}"/usr/lib/ccache.backup || die
509 -
510 - readme.gentoo_print_elog
511 -}
512
513 diff --git a/dev-util/ccache/files/ccache-2.4-profile.patch b/dev-util/ccache/files/ccache-2.4-profile.patch
514 deleted file mode 100644
515 index 5774321..0000000
516 --- a/dev-util/ccache/files/ccache-2.4-profile.patch
517 +++ /dev/null
518 @@ -1,27 +0,0 @@
519 -GCCs options -fprofile-generate and -fprofile-use are used for
520 -profile guided optimization. It depends on the ability to locate
521 -the profile data files (.gcda) after running the executable with
522 -the training data. However, ccache prevents the compiler from
523 -finding the correct profile data file. Therefore the following
524 -patch disables the caching when one of the
525 - -fprofile-generate
526 - -fprofile-use
527 - -fprofile-arcs
528 -flags is found.
529 -
530 -Signed-off-by: Clemens Rabe <crabe _at_ gmx _dot_ de>
531 -
532 -
533 -diff -Naur ccache-2.4.orig/ccache.c ccache-2.4/ccache.c
534 ---- ccache-2.4.orig/ccache.c 2004-09-13 12:38:30.000000000 +0200
535 -+++ ccache-2.4/ccache.c 2008-01-07 20:25:38.000000000 +0100
536 -@@ -640,6 +640,9 @@
537 -
538 - /* these are too hard */
539 - if (strcmp(argv[i], "-fbranch-probabilities")==0 ||
540 -+ strcmp(argv[i], "-fprofile-generate")==0 ||
541 -+ strcmp(argv[i], "-fprofile-use")==0 ||
542 -+ strcmp(argv[i], "-fprofile-arcs")==0 ||
543 - strcmp(argv[i], "-M") == 0 ||
544 - strcmp(argv[i], "-MM") == 0 ||
545 - strcmp(argv[i], "-x") == 0) {
546
547 diff --git a/dev-util/ccache/files/ccache-2.4-respectflags.patch b/dev-util/ccache/files/ccache-2.4-respectflags.patch
548 deleted file mode 100644
549 index 38d5f6a..0000000
550 --- a/dev-util/ccache/files/ccache-2.4-respectflags.patch
551 +++ /dev/null
552 @@ -1,13 +0,0 @@
553 -Index: ccache-2.4/Makefile.in
554 -===================================================================
555 ---- ccache-2.4.orig/Makefile.in
556 -+++ ccache-2.4/Makefile.in
557 -@@ -20,7 +20,7 @@ all: ccache$(EXEEXT)
558 - docs: ccache.1 web/ccache-man.html
559 -
560 - ccache$(EXEEXT): $(OBJS) $(HEADERS)
561 -- $(CC) $(CFLAGS) -o $@ $(OBJS)
562 -+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)
563 -
564 - ccache.1: ccache.yo
565 - -yodl2man -o ccache.1 ccache.yo
566
567 diff --git a/dev-util/ccache/files/ccache-2.4-utimes.patch b/dev-util/ccache/files/ccache-2.4-utimes.patch
568 deleted file mode 100644
569 index 30aff6b..0000000
570 --- a/dev-util/ccache/files/ccache-2.4-utimes.patch
571 +++ /dev/null
572 @@ -1,105 +0,0 @@
573 -utime(...,NULL) in some cases may cause truncation of sub-second portions of
574 -timestamps. If utimes(...,NULL) is available, use it instead to avoid this
575 -problem.
576 -
577 -Signed-off-by: Robin H. Johnson <robbat2@g.o>
578 -
579 -diff -Nuar --exclude autom4te.cache --exclude '*~' ccache-2.4.orig/ccache.c ccache-2.4/ccache.c
580 ---- ccache-2.4.orig/ccache.c 2004-09-13 03:38:30.000000000 -0700
581 -+++ ccache-2.4/ccache.c 2006-06-09 16:29:16.695117780 -0700
582 -@@ -481,7 +481,11 @@
583 - return;
584 - }
585 -
586 -+#ifdef HAVE_UTIMES
587 -+ utimes(stderr_file, NULL);
588 -+#else
589 - utime(stderr_file, NULL);
590 -+#endif
591 -
592 - if (strcmp(output_file, "/dev/null") == 0) {
593 - ret = 0;
594 -@@ -515,7 +519,11 @@
595 - }
596 - if (ret == 0) {
597 - /* update the mtime on the file so that make doesn't get confused */
598 -+#ifdef HAVE_UTIMES
599 -+ utimes(output_file, NULL);
600 -+#else
601 - utime(output_file, NULL);
602 -+#endif
603 - }
604 -
605 - /* get rid of the intermediate preprocessor file */
606 -diff -Nuar --exclude autom4te.cache --exclude '*~' ccache-2.4.orig/ccache.h ccache-2.4/ccache.h
607 ---- ccache-2.4.orig/ccache.h 2004-09-13 03:38:30.000000000 -0700
608 -+++ ccache-2.4/ccache.h 2006-06-09 16:28:16.601658626 -0700
609 -@@ -22,6 +22,9 @@
610 - #ifdef HAVE_PWD_H
611 - #include <pwd.h>
612 - #endif
613 -+#ifdef HAVE_SYS_TIME_H
614 -+#include <sys/time.h>
615 -+#endif
616 -
617 - #define STATUS_NOTFOUND 3
618 - #define STATUS_FATAL 4
619 -diff -Nuar --exclude autom4te.cache --exclude '*~' ccache-2.4.orig/config.h.in ccache-2.4/config.h.in
620 ---- ccache-2.4.orig/config.h.in 2003-09-27 21:48:17.000000000 -0700
621 -+++ ccache-2.4/config.h.in 2006-06-09 16:25:43.000000000 -0700
622 -@@ -19,6 +19,9 @@
623 - /* Define to 1 if you have the `gethostname' function. */
624 - #undef HAVE_GETHOSTNAME
625 -
626 -+/* Define to 1 if you have the `getpwuid' function. */
627 -+#undef HAVE_GETPWUID
628 -+
629 - /* Define to 1 if you have the <inttypes.h> header file. */
630 - #undef HAVE_INTTYPES_H
631 -
632 -@@ -31,6 +34,9 @@
633 - /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
634 - #undef HAVE_NDIR_H
635 -
636 -+/* Define to 1 if you have the <pwd.h> header file. */
637 -+#undef HAVE_PWD_H
638 -+
639 - /* Define to 1 if you have the `realpath' function. */
640 - #undef HAVE_REALPATH
641 -
642 -@@ -60,6 +66,9 @@
643 - /* Define to 1 if you have the <sys/stat.h> header file. */
644 - #undef HAVE_SYS_STAT_H
645 -
646 -+/* Define to 1 if you have the <sys/time.h> header file. */
647 -+#undef HAVE_SYS_TIME_H
648 -+
649 - /* Define to 1 if you have the <sys/types.h> header file. */
650 - #undef HAVE_SYS_TYPES_H
651 -
652 -@@ -69,6 +78,9 @@
653 - /* Define to 1 if you have the <unistd.h> header file. */
654 - #undef HAVE_UNISTD_H
655 -
656 -+/* Define to 1 if you have the `utimes' function. */
657 -+#undef HAVE_UTIMES
658 -+
659 - /* Define to 1 if you have the `vasprintf' function. */
660 - #undef HAVE_VASPRINTF
661 -
662 -diff -Nuar --exclude autom4te.cache --exclude '*~' ccache-2.4.orig/configure.in ccache-2.4/configure.in
663 ---- ccache-2.4.orig/configure.in 2004-09-13 03:38:30.000000000 -0700
664 -+++ ccache-2.4/configure.in 2006-06-09 16:25:15.541288184 -0700
665 -@@ -27,10 +27,11 @@
666 - AC_HEADER_TIME
667 - AC_HEADER_SYS_WAIT
668 -
669 --AC_CHECK_HEADERS(ctype.h strings.h stdlib.h string.h pwd.h)
670 -+AC_CHECK_HEADERS(ctype.h strings.h stdlib.h string.h pwd.h sys/time.h)
671 -
672 - AC_CHECK_FUNCS(realpath snprintf vsnprintf vasprintf asprintf mkstemp)
673 - AC_CHECK_FUNCS(gethostname getpwuid)
674 -+AC_CHECK_FUNCS(utimes)
675 -
676 - AC_CACHE_CHECK([for compar_fn_t in stdlib.h],ccache_cv_COMPAR_FN_T, [
677 - AC_TRY_COMPILE(
678
679 diff --git a/dev-util/ccache/files/ccache-2.4-xrealloc.patch b/dev-util/ccache/files/ccache-2.4-xrealloc.patch
680 deleted file mode 100644
681 index 8e2d44d..0000000
682 --- a/dev-util/ccache/files/ccache-2.4-xrealloc.patch
683 +++ /dev/null
684 @@ -1,35 +0,0 @@
685 -https://bugzilla.samba.org/show_bug.cgi?id=7090
686 -https://bugs.gentoo.org/338137
687 -
688 -From 52a9cd8eb8a69f9dc6944c047faf112b7137a07b Mon Sep 17 00:00:00 2001
689 -From: Andrew Tridgell <tridge@×××××.org>
690 -Date: Mon, 17 Jul 2006 05:41:12 +0200
691 -Subject: [PATCH] fixed a bug in x_realloc()
692 -
693 ----
694 - util.c | 6 +-----
695 - 1 files changed, 1 insertions(+), 5 deletions(-)
696 -
697 -diff --git a/util.c b/util.c
698 -index 073fa81..29d0e5b 100644
699 ---- a/util.c
700 -+++ b/util.c
701 -@@ -187,14 +187,10 @@ void *x_realloc(void *ptr, size_t size)
702 - {
703 - void *p2;
704 - if (!ptr) return x_malloc(size);
705 -- p2 = malloc(size);
706 -+ p2 = realloc(ptr, size);
707 - if (!p2) {
708 - fatal("out of memory in x_realloc");
709 - }
710 -- if (ptr) {
711 -- memcpy(p2, ptr, size);
712 -- free(ptr);
713 -- }
714 - return p2;
715 - }
716 -
717 ---
718 -1.7.3.1
719 -
720
721 diff --git a/dev-util/ccache/files/ccache-3.1.10-real-temp-files.patch b/dev-util/ccache/files/ccache-3.1.10-real-temp-files.patch
722 deleted file mode 100644
723 index 45e6541..0000000
724 --- a/dev-util/ccache/files/ccache-3.1.10-real-temp-files.patch
725 +++ /dev/null
726 @@ -1,185 +0,0 @@
727 -https://lists.samba.org/archive/ccache/2014q4/001246.html
728 -
729 -From 5d0f507a4162ac89e05ca633dbc8056454b798f5 Mon Sep 17 00:00:00 2001
730 -From: Mike Frysinger <vapier@g.o>
731 -Date: Mon, 15 Sep 2014 18:15:02 -0400
732 -Subject: [PATCH] do not rely on pids being unique
733 -
734 -Linux supports creating pid namespaces cheaply and running processes
735 -inside of them. When you try to share a single cache among multiple
736 -such runs, the fact that the code relies on pid numbers as globally
737 -unique values quickly fails. Instead, switch to standard mkstemp to
738 -generate temp files for us.
739 -
740 -Signed-off-by: Mike Frysinger <vapier@g.o>
741 ----
742 - ccache.c | 12 ++++++------
743 - ccache.h | 2 +-
744 - manifest.c | 2 +-
745 - stats.c | 10 +++++++++-
746 - util.c | 13 ++++++++-----
747 - 5 files changed, 25 insertions(+), 14 deletions(-)
748 -
749 -diff --git a/ccache.c b/ccache.c
750 -index 02dbdfa..1dc0a06 100644
751 ---- a/ccache.c
752 -+++ b/ccache.c
753 -@@ -526,8 +526,11 @@ to_cache(struct args *args)
754 - unsigned added_files = 0;
755 -
756 - tmp_stdout = format("%s.tmp.stdout.%s", cached_obj, tmp_string());
757 -+ create_empty_file(tmp_stdout);
758 - tmp_stderr = format("%s.tmp.stderr.%s", cached_obj, tmp_string());
759 -+ create_empty_file(tmp_stderr);
760 - tmp_obj = format("%s.tmp.%s", cached_obj, tmp_string());
761 -+ create_empty_file(tmp_obj);
762 -
763 - args_add(args, "-o");
764 - args_add(args, tmp_obj);
765 -@@ -579,7 +582,7 @@ to_cache(struct args *args)
766 - int fd_result;
767 - char *tmp_stderr2;
768 -
769 -- tmp_stderr2 = format("%s.tmp.stderr2.%s", cached_obj, tmp_string());
770 -+ tmp_stderr2 = format("%s.2", tmp_stderr);
771 - if (x_rename(tmp_stderr, tmp_stderr2)) {
772 - cc_log("Failed to rename %s to %s: %s", tmp_stderr, tmp_stderr2,
773 - strerror(errno));
774 -@@ -808,6 +808,7 @@ get_object_name_from_cpp(struct args *args, struct mdfour *hash)
775 - }
776 -
777 - path_stderr = format("%s/tmp.cpp_stderr.%s", temp_dir, tmp_string());
778 -+ create_empty_file(path_stderr);
779 - add_pending_tmp_file(path_stderr);
780 -
781 - time_of_compilation = time(NULL);
782 -@@ -815,6 +816,7 @@ get_object_name_from_cpp(struct args *args, struct mdfour *hash)
783 - if (!direct_i_file) {
784 - path_stdout = format("%s/%s.tmp.%s.%s",
785 - temp_dir, input_base, tmp_string(), i_extension);
786 -+ create_empty_file(path_stdout);
787 - add_pending_tmp_file(path_stdout);
788 -
789 - /* run cpp on the input file to obtain the .i */
790 -@@ -838,11 +843,6 @@ get_object_name_from_cpp(struct args *args, struct mdfour *hash)
791 - can skip the cpp stage and directly form the
792 - correct i_tmpfile */
793 - path_stdout = input_file;
794 -- if (create_empty_file(path_stderr) != 0) {
795 -- cc_log("Failed to create %s: %s", path_stderr, strerror(errno));
796 -- stats_update(STATS_ERROR);
797 -- failed();
798 -- }
799 - status = 0;
800 - }
801 -
802 -diff --git a/ccache.h b/ccache.h
803 -index 2bc7c87..43ef98d 100644
804 ---- a/ccache.h
805 -+++ b/ccache.h
806 -@@ -130,7 +130,7 @@ size_t file_size(struct stat *st);
807 - int safe_open(const char *fname);
808 - char *x_realpath(const char *path);
809 - char *gnu_getcwd(void);
810 --int create_empty_file(const char *fname);
811 -+int create_empty_file(char *fname);
812 - const char *get_home_directory(void);
813 - char *get_cwd();
814 - bool same_executable_name(const char *s1, const char *s2);
815 -diff --git a/manifest.c b/manifest.c
816 -index 7f02ede..47566d5 100644
817 ---- a/manifest.c
818 -+++ b/manifest.c
819 -@@ -633,7 +633,7 @@ manifest_put(const char *manifest_path, struct file_hash *object_hash,
820 - }
821 -
822 - tmp_file = format("%s.tmp.%s", manifest_path, tmp_string());
823 -- fd2 = safe_open(tmp_file);
824 -+ fd2 = mkstemp(tmp_file);
825 - if (fd2 == -1) {
826 - cc_log("Failed to open %s", tmp_file);
827 - goto out;
828 -diff --git a/stats.c b/stats.c
829 -index 2111b65..4ed39c2 100644
830 ---- a/stats.c
831 -+++ b/stats.c
832 -@@ -126,11 +126,18 @@ stats_write(const char *path, struct counters *counters)
833 - size_t i;
834 - char *tmp_file;
835 - FILE *f;
836 -+ int fd;
837 -
838 - tmp_file = format("%s.tmp.%s", path, tmp_string());
839 -- f = fopen(tmp_file, "wb");
840 -+ fd = mkstemp(tmp_file);
841 -+ if (fd == -1) {
842 -+ cc_log("Failed to open %s", tmp_file);
843 -+ goto end;
844 -+ }
845 -+ f = fdopen(fd, "wb");
846 - if (!f) {
847 - cc_log("Failed to open %s", tmp_file);
848 -+ close(fd);
849 - goto end;
850 - }
851 - for (i = 0; i < counters->size; i++) {
852 -@@ -138,6 +145,7 @@ stats_write(const char *path, struct counters *counters)
853 - fatal("Failed to write to %s", tmp_file);
854 - }
855 - }
856 -+ /* This also implicitly closes the fd. */
857 - fclose(f);
858 - x_rename(tmp_file, path);
859 -
860 -diff --git a/util.c b/util.c
861 -index 3b472de..cc630a6 100644
862 ---- a/util.c
863 -+++ b/util.c
864 -@@ -195,7 +195,7 @@ copy_file(const char *src, const char *dest, int compress_dest)
865 - struct stat st;
866 - int errnum;
867 -
868 -- tmp_name = format("%s.%s.XXXXXX", dest, tmp_string());
869 -+ tmp_name = format("%s.%s", dest, tmp_string());
870 - cc_log("Copying %s to %s via %s (%s)",
871 - src, dest, tmp_name, compress_dest ? "compressed": "uncompressed");
872 -
873 -@@ -427,7 +427,7 @@ tmp_string(void)
874 - static char *ret;
875 -
876 - if (!ret) {
877 -- ret = format("%s.%u", get_hostname(), (unsigned)getpid());
878 -+ ret = format("%s.%u.XXXXXX", get_hostname(), (unsigned)getpid());
879 - }
880 -
881 - return ret;
882 -@@ -884,12 +884,13 @@ gnu_getcwd(void)
883 -
884 - /* create an empty file */
885 - int
886 --create_empty_file(const char *fname)
887 -+create_empty_file(char *fname)
888 - {
889 - int fd;
890 -
891 -- fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_BINARY, 0666);
892 -+ fd = mkstemp(fname);
893 - if (fd == -1) {
894 -+ cc_log("Failed to create %s: %s", fname, strerror(errno));
895 - return -1;
896 - }
897 - close(fd);
898 -@@ -1134,7 +1135,9 @@ x_unlink(const char *path)
899 - goto out;
900 - }
901 - if (unlink(tmp_name) == -1) {
902 -- result = -1;
903 -+ /* If it was released in a race, that's OK. */
904 -+ if (errno != ENOENT)
905 -+ result = -1;
906 - }
907 - out:
908 - free(tmp_name);
909 ---
910 -2.1.2
911 -
912
913 diff --git a/dev-util/ccache/files/ccache-3.1.7-no-perl.patch b/dev-util/ccache/files/ccache-3.1.7-no-perl.patch
914 deleted file mode 100644
915 index 5abd15e..0000000
916 --- a/dev-util/ccache/files/ccache-3.1.7-no-perl.patch
917 +++ /dev/null
918 @@ -1,15 +0,0 @@
919 -avoid weak perl usage in tests
920 -
921 -https://bugs.gentoo.org/421609
922 -
923 ---- a/test.sh
924 -+++ b/test.sh
925 -@@ -1466,7 +1466,7 @@
926 - mkdir -p $dir
927 - i=0
928 - while [ $i -lt 10 ]; do
929 -- perl -e 'print "A" x 4017' >$dir/result$i-4017.o
930 -+ printf '%4017s' '' | tr ' ' 'A' >$dir/result$i-4017.o
931 - touch $dir/result$i-4017.stderr
932 - touch $dir/result$i-4017.d
933 - if [ $i -gt 5 ]; then
934
935 diff --git a/dev-util/ccache/files/ccache-3.1.9-test-gcc-4.8.patch b/dev-util/ccache/files/ccache-3.1.9-test-gcc-4.8.patch
936 deleted file mode 100644
937 index 2a28baf..0000000
938 --- a/dev-util/ccache/files/ccache-3.1.9-test-gcc-4.8.patch
939 +++ /dev/null
940 @@ -1,156 +0,0 @@
941 -https://bugs.gentoo.org/461966
942 -
943 -fix from upstream
944 -
945 -From b5d63f81c1a83fd4c50b769a96a04f581b7db70c Mon Sep 17 00:00:00 2001
946 -From: Joel Rosdahl <joel@×××××××.net>
947 -Date: Wed, 20 Mar 2013 22:18:16 +0100
948 -Subject: [PATCH] Fix test suite failure on GCC 4.8
949 -
950 -GCC 4.8 includes /usr/include/stdc-predef.h implicitly, and this shows up
951 -in generated .d files.
952 ----
953 - test.sh | 35 +++++++++++++++++++----------------
954 - 1 file changed, 19 insertions(+), 16 deletions(-)
955 -
956 -diff --git a/test.sh b/test.sh
957 -index 3ed9069..3e38387 100755
958 ---- a/test.sh
959 -+++ b/test.sh
960 -@@ -3,7 +3,7 @@
961 - # A simple test suite for ccache.
962 - #
963 - # Copyright (C) 2002-2007 Andrew Tridgell
964 --# Copyright (C) 2009-2012 Joel Rosdahl
965 -+# Copyright (C) 2009-2013 Joel Rosdahl
966 - #
967 - # This program is free software; you can redistribute it and/or modify it under
968 - # the terms of the GNU General Public License as published by the Free Software
969 -@@ -562,6 +562,9 @@ int test3;
970 - EOF
971 - backdate test1.h test2.h test3.h
972 -
973 -+ $COMPILER -c -Wp,-MD,expected.d test.c
974 -+ expected_d_content=`cat expected.d`
975 -+
976 - ##################################################################
977 - # First compilation is a miss.
978 - testname="first compilation"
979 -@@ -677,7 +680,7 @@ EOF
980 - checkstat 'cache hit (direct)' 0
981 - checkstat 'cache hit (preprocessed)' 0
982 - checkstat 'cache miss' 1
983 -- checkfile other.d "test.o: test.c test1.h test3.h test2.h"
984 -+ checkfile other.d "$expected_d_content"
985 -
986 - rm -f other.d
987 -
988 -@@ -685,7 +688,7 @@ EOF
989 - checkstat 'cache hit (direct)' 1
990 - checkstat 'cache hit (preprocessed)' 0
991 - checkstat 'cache miss' 1
992 -- checkfile other.d "test.o: test.c test1.h test3.h test2.h"
993 -+ checkfile other.d "$expected_d_content"
994 -
995 - rm -f other.d
996 -
997 -@@ -760,7 +763,7 @@ EOF
998 - checkstat 'cache hit (direct)' 0
999 - checkstat 'cache hit (preprocessed)' 0
1000 - checkstat 'cache miss' 1
1001 -- checkfile test.d "test.o: test.c test1.h test3.h test2.h"
1002 -+ checkfile test.d "$expected_d_content"
1003 -
1004 - rm -f test.d
1005 -
1006 -@@ -768,7 +771,7 @@ EOF
1007 - checkstat 'cache hit (direct)' 1
1008 - checkstat 'cache hit (preprocessed)' 0
1009 - checkstat 'cache miss' 1
1010 -- checkfile test.d "test.o: test.c test1.h test3.h test2.h"
1011 -+ checkfile test.d "$expected_d_content"
1012 -
1013 - ##################################################################
1014 - # Check the scenario of running a ccache with direct mode on a cache
1015 -@@ -780,7 +783,7 @@ EOF
1016 - checkstat 'cache hit (direct)' 0
1017 - checkstat 'cache hit (preprocessed)' 0
1018 - checkstat 'cache miss' 1
1019 -- checkfile test.d "test.o: test.c test1.h test3.h test2.h"
1020 -+ checkfile test.d "$expected_d_content"
1021 -
1022 - rm -f test.d
1023 -
1024 -@@ -788,7 +791,7 @@ EOF
1025 - checkstat 'cache hit (direct)' 0
1026 - checkstat 'cache hit (preprocessed)' 1
1027 - checkstat 'cache miss' 1
1028 -- checkfile test.d "test.o: test.c test1.h test3.h test2.h"
1029 -+ checkfile test.d "$expected_d_content"
1030 -
1031 - rm -f test.d
1032 -
1033 -@@ -796,7 +799,7 @@ EOF
1034 - checkstat 'cache hit (direct)' 0
1035 - checkstat 'cache hit (preprocessed)' 2
1036 - checkstat 'cache miss' 1
1037 -- checkfile test.d "test.o: test.c test1.h test3.h test2.h"
1038 -+ checkfile test.d "$expected_d_content"
1039 -
1040 - rm -f test.d
1041 -
1042 -@@ -804,7 +807,7 @@ EOF
1043 - checkstat 'cache hit (direct)' 1
1044 - checkstat 'cache hit (preprocessed)' 2
1045 - checkstat 'cache miss' 1
1046 -- checkfile test.d "test.o: test.c test1.h test3.h test2.h"
1047 -+ checkfile test.d "$expected_d_content"
1048 -
1049 - ##################################################################
1050 - # Check that -MF works.
1051 -@@ -815,7 +818,7 @@ EOF
1052 - checkstat 'cache hit (direct)' 0
1053 - checkstat 'cache hit (preprocessed)' 0
1054 - checkstat 'cache miss' 1
1055 -- checkfile other.d "test.o: test.c test1.h test3.h test2.h"
1056 -+ checkfile other.d "$expected_d_content"
1057 -
1058 - rm -f other.d
1059 -
1060 -@@ -823,7 +826,7 @@ EOF
1061 - checkstat 'cache hit (direct)' 1
1062 - checkstat 'cache hit (preprocessed)' 0
1063 - checkstat 'cache miss' 1
1064 -- checkfile other.d "test.o: test.c test1.h test3.h test2.h"
1065 -+ checkfile other.d "$expected_d_content"
1066 -
1067 - ##################################################################
1068 - # Check that a missing .d file in the cache is handled correctly.
1069 -@@ -835,13 +838,13 @@ EOF
1070 - checkstat 'cache hit (direct)' 0
1071 - checkstat 'cache hit (preprocessed)' 0
1072 - checkstat 'cache miss' 1
1073 -- checkfile other.d "test.o: test.c test1.h test3.h test2.h"
1074 -+ checkfile other.d "$expected_d_content"
1075 -
1076 - $CCACHE $COMPILER -c -MD test.c
1077 - checkstat 'cache hit (direct)' 1
1078 - checkstat 'cache hit (preprocessed)' 0
1079 - checkstat 'cache miss' 1
1080 -- checkfile other.d "test.o: test.c test1.h test3.h test2.h"
1081 -+ checkfile other.d "$expected_d_content"
1082 -
1083 - find $CCACHE_DIR -name '*.d' -exec rm -f '{}' \;
1084 -
1085 -@@ -849,7 +852,7 @@ EOF
1086 - checkstat 'cache hit (direct)' 1
1087 - checkstat 'cache hit (preprocessed)' 1
1088 - checkstat 'cache miss' 1
1089 -- checkfile other.d "test.o: test.c test1.h test3.h test2.h"
1090 -+ checkfile other.d "$expected_d_content"
1091 -
1092 - ##################################################################
1093 - # Check that stderr from both the preprocessor and the compiler is emitted
1094 ---
1095 -1.8.1.2
1096 -
1097
1098 diff --git a/dev-util/ccache/files/ccache-config b/dev-util/ccache/files/ccache-config
1099 deleted file mode 100644
1100 index a7dc4a0..0000000
1101 --- a/dev-util/ccache/files/ccache-config
1102 +++ /dev/null
1103 @@ -1,100 +0,0 @@
1104 -#!/bin/sh
1105 -#
1106 -# ccache-config - helper script for ccache and its ebuild
1107 -#
1108 -# Copyright 2003-2014 Superlucidity Services, LLC
1109 -# This program licensed under the GNU GPL version 2.
1110 -#
1111 -# This script developed by Zachary T Welch at Superlucidity Services, LLC
1112 -# it was cloned from the distcc-config script
1113 -#
1114 -# Additional features to come; this provides a starting point
1115 -
1116 -. /etc/init.d/functions.sh 2>/dev/null || {
1117 - ebegin() { echo " * $* ..."; }
1118 - eend() {
1119 - local r=${1:-$?}
1120 - [ ${r} -eq 0 ] && echo " [ OK ]" || echo " [ !! ]"
1121 - return $r
1122 - }
1123 -}
1124 -
1125 -LIBDIR="lib"
1126 -
1127 -# this should be getopt'd someday (override with CC_QUIET=1)
1128 -CC_VERBOSE=1
1129 -unset _CC_QUIET
1130 -c_quiet() {
1131 - [ -n "${CC_QUIET:-${_CC_QUIET}}" ] || [ -z "${CC_VERBOSE}" ]
1132 -}
1133 -
1134 -c_ebegin() { c_quiet || ebegin "$@" ; }
1135 -c_eend() { c_quiet || eend "$@" ; }
1136 -
1137 -###
1138 -# the following functions manage the ccache symlinks
1139 -# they allow the user or other scripts (namely gcc-config) to
1140 -# automatically update ccache's links when upgrading toolchains
1141 -#
1142 -cc_path() {
1143 - echo ${ROOT%/}/usr/${LIBDIR}/ccache/bin/$1
1144 -}
1145 -cc_remove_link() {
1146 - local t=$(cc_path "$1")
1147 - if [ -L ${t} ]; then
1148 - c_ebegin "Removing ${t}"
1149 - rm -f "${t}"
1150 - c_eend
1151 -
1152 - # Trim the empty dir if possible. #517242
1153 - t=${t%/*}
1154 - if rmdir "${t}" 2>/dev/null; then
1155 - rmdir "${t%/*}" 2>/dev/null
1156 - fi
1157 - :
1158 - fi
1159 -}
1160 -cc_install_link() {
1161 - # Search the PATH for the specified compiler
1162 - # then create shadow link in /usr/lib/ccache/bin to ccache
1163 -
1164 - if [ -n "$(type -p ${1})" ]; then
1165 - # first be sure any old link is removed
1166 - _CC_QUIET=1
1167 - cc_remove_link "${1}"
1168 - unset _CC_QUIET
1169 -
1170 - # then create the new link
1171 - local t=$(cc_path "$1")
1172 - c_ebegin "Creating ccache shadow link ${t}"
1173 - mkdir -p -m 0755 "${t%/*}" && ln -s /usr/bin/ccache "${t}"
1174 - c_eend
1175 - fi
1176 -}
1177 -cc_links() {
1178 - local a
1179 - for a in gcc cc c++ g++ ; do
1180 - if [ -n "${2}" ] ; then
1181 - # gcc-config doesnt install ${CHOST}-cc, so until
1182 - # it does, don't install a ccache symlink for it
1183 - [ "${a}" = "cc" ] && continue
1184 - a="${2}-${a}"
1185 - fi
1186 - "cc_${1}_link" "${a}"
1187 - done
1188 -}
1189 -
1190 -###
1191 -# main routine
1192 -
1193 -case "${1}" in
1194 - --install-links )
1195 - cc_links install "${2}"
1196 - ;;
1197 - --remove-links )
1198 - cc_links remove "${2}"
1199 - ;;
1200 - * )
1201 - echo "usage: ${0} {--install-links|--remove-links} [ CHOST ]"
1202 - ;;
1203 -esac
1204
1205 diff --git a/dev-util/ccache/files/ccache-config-2 b/dev-util/ccache/files/ccache-config-2
1206 deleted file mode 100644
1207 index 914f095..0000000
1208 --- a/dev-util/ccache/files/ccache-config-2
1209 +++ /dev/null
1210 @@ -1,97 +0,0 @@
1211 -#!/bin/sh
1212 -#
1213 -# ccache-config - helper script for ccache and its ebuild
1214 -#
1215 -# Copyright 2003-2014 Superlucidity Services, LLC
1216 -# Copyright 2013-2014 Gentoo Foundation
1217 -# This program licensed under the GNU GPL version 2.
1218 -#
1219 -# This script developed by Zachary T Welch at Superlucidity Services, LLC
1220 -# it was cloned from the distcc-config script
1221 -#
1222 -# Additional features to come; this provides a starting point
1223 -
1224 -EPREFIX=''
1225 -
1226 -. "${EPREFIX}"/etc/init.d/functions.sh 2>/dev/null || {
1227 - ebegin() { echo " * $* ..."; }
1228 - eend() {
1229 - local r=${1:-$?}
1230 - [ ${r} -eq 0 ] && echo " [ OK ]" || echo " [ !! ]"
1231 - return $r
1232 - }
1233 -}
1234 -
1235 -LIBDIR="lib"
1236 -
1237 -# this should be getopt'd someday (override with CC_QUIET=1)
1238 -CC_VERBOSE=1
1239 -unset _CC_QUIET
1240 -c_quiet() {
1241 - [ -n "${CC_QUIET:-${_CC_QUIET}}" ] || [ -z "${CC_VERBOSE}" ]
1242 -}
1243 -
1244 -c_ebegin() { c_quiet || ebegin "$@" ; }
1245 -c_eend() { c_quiet || eend "$@" ; }
1246 -
1247 -###
1248 -# the following functions manage the ccache symlinks
1249 -# they allow the user or other scripts (namely gcc-config) to
1250 -# automatically update ccache's links when upgrading toolchains
1251 -#
1252 -cc_path() {
1253 - echo ${ROOT%/}${EPREFIX}/usr/${LIBDIR}/ccache/bin/$1
1254 -}
1255 -cc_remove_link() {
1256 - local t=$(cc_path "$1")
1257 - if [ -L ${t} ]; then
1258 - c_ebegin "Removing ${t}"
1259 - rm -f "${t}"
1260 - c_eend
1261 -
1262 - # Trim the empty dir if possible. #517242
1263 - t=${t%/*}
1264 - if rmdir "${t}" 2>/dev/null; then
1265 - rmdir "${t%/*}" 2>/dev/null
1266 - fi
1267 - :
1268 - fi
1269 -}
1270 -cc_install_link() {
1271 - # Search the PATH for the specified compiler
1272 - # then create shadow link in /usr/lib/ccache/bin to ccache
1273 -
1274 - if command -v "$1" >/dev/null ; then
1275 - # first be sure any old link is removed
1276 - _CC_QUIET=1
1277 - cc_remove_link "$1"
1278 - unset _CC_QUIET
1279 -
1280 - # then create the new link
1281 - local t=$(cc_path "$1")
1282 - c_ebegin "Creating ccache shadow link ${t}"
1283 - mkdir -p -m 0755 "${t%/*}" && ln -s "${EPREFIX}"/usr/bin/ccache "${t}"
1284 - c_eend
1285 - fi
1286 -}
1287 -cc_links() {
1288 - local a
1289 - for a in gcc cc c++ g++ icc icpc clang clang++ ; do
1290 - "cc_${1}_link" "${2}${2:+-}${a}"
1291 - done
1292 -}
1293 -
1294 -###
1295 -# main routine
1296 -
1297 -case $1 in
1298 - --install-links )
1299 - cc_links install "$2"
1300 - ;;
1301 - --remove-links )
1302 - cc_links remove "$2"
1303 - ;;
1304 - * )
1305 - echo "usage: $0 {--install-links|--remove-links} [ CHOST ]"
1306 - ;;
1307 -esac