Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/ccache: ccache-3.1.10-r1.ebuild ChangeLog
Date: Sat, 01 Nov 2014 08:11:51
Message-Id: 20141101081146.0EA109323@oystercatcher.gentoo.org
1 vapier 14/11/01 08:11:46
2
3 Modified: ChangeLog
4 Added: ccache-3.1.10-r1.ebuild
5 Log:
6 Fix temp file usage to not rely on pids (fixes running in pid namespaces). Fix disk usage checks #456178 by Richard Yao. Always use /usr/lib/ccache/bin/ #509956 by Michał Górny.
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.141 dev-util/ccache/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ChangeLog?rev=1.141&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ChangeLog?rev=1.141&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ChangeLog?r1=1.140&r2=1.141
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v
20 retrieving revision 1.140
21 retrieving revision 1.141
22 diff -u -r1.140 -r1.141
23 --- ChangeLog 1 Nov 2014 07:54:34 -0000 1.140
24 +++ ChangeLog 1 Nov 2014 08:11:46 -0000 1.141
25 @@ -1,6 +1,15 @@
26 # ChangeLog for dev-util/ccache
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v 1.140 2014/11/01 07:54:34 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v 1.141 2014/11/01 08:11:46 vapier Exp $
30 +
31 +*ccache-3.1.10-r1 (01 Nov 2014)
32 +
33 + 01 Nov 2014; Mike Frysinger <vapier@g.o> +ccache-3.1.10-r1.ebuild,
34 + +files/ccache-3.1.10-real-temp-files.patch,
35 + +files/ccache-3.1.10-size-on-disk.patch:
36 + Fix temp file usage to not rely on pids (fixes running in pid namespaces).
37 + Fix disk usage checks #456178 by Richard Yao. Always use /usr/lib/ccache/bin/
38 + #509956 by Michał Górny.
39
40 01 Nov 2014; Mike Frysinger <vapier@g.o> files/ccache-config:
41 Trim empty ccache dirs automatically #517242 by Arfrever Frehtes Taifersar
42
43
44
45 1.1 dev-util/ccache/ccache-3.1.10-r1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ccache-3.1.10-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ccache-3.1.10-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: ccache-3.1.10-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ccache-3.1.10-r1.ebuild,v 1.1 2014/11/01 08:11:46 vapier Exp $
55
56 EAPI="4"
57
58 inherit eutils readme.gentoo
59
60 DESCRIPTION="fast compiler cache"
61 HOMEPAGE="http://ccache.samba.org/"
62 SRC_URI="http://samba.org/ftp/ccache/${P}.tar.xz"
63
64 LICENSE="GPL-3"
65 SLOT="0"
66 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"
67 IUSE=""
68
69 RDEPEND="sys-libs/zlib"
70 DEPEND="${RDEPEND}
71 app-arch/xz-utils"
72
73 src_prepare() {
74 # make sure we always use system zlib
75 rm -rf zlib
76 epatch "${FILESDIR}"/${PN}-3.1.7-no-perl.patch #421609
77 epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
78 epatch "${FILESDIR}"/${PN}-3.1.10-real-temp-files.patch
79 sed \
80 -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
81 "${FILESDIR}"/ccache-config-2 > ccache-config || die
82 }
83
84 src_install() {
85 default
86 dodoc AUTHORS.txt MANUAL.txt NEWS.txt README.txt
87
88 dobin ccache-config
89
90 DOC_CONTENTS="
91 To use ccache with **non-Portage** C compiling, add
92 ${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}usr/bin.
93 Portage 2.0.46-r11+ will automatically take advantage of ccache with
94 no additional steps. If this is your first install of ccache, type
95 something like this to set a maximum cache size of 2GB:\\n
96 # ccache -M 2G\\n
97 If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
98 # CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
99 ccache now supports sys-devel/clang and dev-lang/icc, too!"
100
101 readme.gentoo_create_doc
102 }
103
104 pkg_prerm() {
105 if [[ -z ${REPLACED_BY_VERSION} ]] ; then
106 "${EROOT}"/usr/bin/ccache-config --remove-links
107 "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
108 fi
109 }
110
111 pkg_postinst() {
112 "${EROOT}"/usr/bin/ccache-config --install-links
113 "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
114
115 # nuke broken symlinks from previous versions that shouldn't exist
116 rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc
117 rm -rf "${EROOT}"/usr/lib/ccache.backup
118
119 readme.gentoo_print_elog
120 }