Package Details: ccache-git v3.7.1_844_g0789bc26-1

Git Clone URL: (read-only, click to copy)
Package Base: ccache-git
Description: a fast compiler cache
Upstream URL:
Licenses: GPL3
Conflicts: ccache
Provides: ccache
Submitter: ams1
Maintainer: dg10a
Last Packager: dg10a
Votes: 4
Popularity: 0.000001
First Submitted: 2013-12-10 13:17 (UTC)
Last Updated: 2020-09-29 19:05 (UTC)

Required by (50)

Sources (1)

Latest Comments

superboringdev commented on 2022-06-20 20:35 (UTC)

Please add hiredis to dependencies

sampa82 commented on 2021-06-10 04:17 (UTC)

Currently fails to build if CUDA is installed.

XeonDead commented on 2020-10-08 07:37 (UTC)

Following this commit, ccache manpage was Capitalized:

diff --git a/PKGBUILD b/PKGBUILD
index f05f9e2..578f113 100644
@@ -38,7 +38,7 @@ package() {
   cd ${srcdir}/${_pkgname}

   install -Dm 755 build/ccache -t "${pkgdir}/usr/bin"
-  install -Dm 644 build/doc/ccache.1 -t "${pkgdir}/usr/share/man/man1"
+  install -Dm 644 build/doc/Ccache.1 -t "${pkgdir}/usr/share/man/man1"
   install -Dm 644 build/doc/{AUTHORS,MANUAL,NEWS}.html -t "${pkgdir}/usr/share/doc/${_pkgname}"
   install -Dm 644 build/doc/LICENSE.html -t "${pkgdir}/usr/share/licenses/${_pkgname}"

dg10a commented on 2020-09-29 19:06 (UTC)

Done, thanks.

XeonDead commented on 2020-09-29 10:49 (UTC) (edited on 2020-09-29 10:49 (UTC) by XeonDead)

Following this commit, documentation and manpage targets in cmake were changed:

Following changes in PKGBUILD are needed:

diff --git a/PKGBUILD b/PKGBUILD
index c46cdb9..8f4ec4c 100644
@@ -25,8 +25,8 @@ build() {
       -DCMAKE_INSTALL_PREFIX='/usr' \
   make -C build
-  make -C build documentation
-  make -C build manpage
+  make -C build doc-html
+  make -C build doc-man-page

check() { @@ -38,9 +38,9 @@ package() { cd ${srcdir}/${_pkgname}

install -Dm 755 build/ccache -t "${pkgdir}/usr/bin" - install -Dm 644 build/ccache.1 -t "${pkgdir}/usr/share/man/man1" + install -Dm 644 build/doc/ccache.1 -t "${pkgdir}/usr/share/man/man1" install -Dm 644 build/doc/{AUTHORS,MANUAL,NEWS}.html -t "${pkgdir}/usr/share/doc/${_pkgname}" - install -Dm 644 build/LICENSE.html -t "${pkgdir}/usr/share/licenses/${_pkgname}" + install -Dm 644 build/doc/LICENSE.html -t "${pkgdir}/usr/share/licenses/${_pkgname}"

install -d "${pkgdir}/usr/lib/ccache/bin" local _prog

dg10a commented on 2020-08-06 06:57 (UTC)

Done, thanks.

Hypnotron commented on 2020-08-01 16:54 (UTC) (edited on 2020-08-01 16:57 (UTC) by Hypnotron)

ccache seems to have deprecated autotools, so the PKGBUILD needs to switch to CMake:

pkgdesc="a fast compiler cache"
arch=('i686' 'x86_64')
depends=('zlib' 'libb2')
makedepends=('cmake' 'git' 'asciidoc')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe | sed 's/[- ]/_/g'

build() {
  cd ${srcdir}/${_pkgname}
  cmake -B build -S . \
      -DCMAKE_BUILD_TYPE='None' \
  make -C build
  make -C build documentation
  make -C build manpage

check() {
  cd ${srcdir}/${_pkgname}
  make -C build check

package() {
  cd ${srcdir}/${_pkgname}

  install -Dm 755 build/ccache -t "${pkgdir}/usr/bin"
  install -Dm 644 build/ccache.1 -t "${pkgdir}/usr/share/man/man1"
  install -Dm 644 build/doc/{AUTHORS,MANUAL,NEWS}.html \
      -t "${pkgdir}/usr/share/doc/${_pkgname}"
  install -Dm 644 build/LICENSE.html LICENSE.adoc \
      -t "${pkgdir}/usr/share/licenses/${_pkgname}"

  install -d "${pkgdir}/usr/lib/ccache/bin"
  local _prog
  for _prog in gcc g++ c++; do
    ln -s /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/$_prog"
    ln -s /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/${CHOST}-$_prog"
  for _prog in cc clang clang++; do
    ln -s /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/$_prog"

I guess CMake should be added as a makedepend in .SRCINFO as well.

dg10a commented on 2019-08-19 17:40 (UTC)

Added, thanks.

arllk commented on 2019-08-11 05:23 (UTC)

add libb2 to the dependencies, it's missing

mydongistiny commented on 2018-12-26 11:07 (UTC)

If anyone is interested I updated the PKGBUILD:

Kunda commented on 2018-11-24 14:21 (UTC)

This package seems abandoned.

ams1 commented on 2014-11-20 15:37 (UTC)

ccache 3.2 now has all the funky new features, but the community package doesn't have the --sysconfdir fix. I opened bug FS#42858.

ams1 commented on 2014-09-01 14:05 (UTC)

Yeah, ccache has been getting a lot of new features and a lot of them are not released yet. I had not realised that the central conf file was one of them. v3.1.9_373_g969726d-2 has the configuration change you suggested.

stevenhoneyman commented on 2014-08-30 19:08 (UTC)

Quite strange, but 3.1.9 release does not use a sysconfig directory. The code was in the 'maint' branch since 2011 (!), but only got merged after 3.1.9 was released - in commit f34c3157602aa63cbeef6fdf31cd5c85364b9020 So yes, this git package needs it adding, to correctly support the new feature. Thanks!

stevenhoneyman commented on 2014-08-30 18:37 (UTC)

Oops forgot to enable notifications for comments! I'll check the behaviour is the same with 3.1.9 stable and file a bug report

ams1 commented on 2014-08-18 09:27 (UTC)

Sure, I can, but then it wouldn't match the non-git package in the community repo. Maybe that should get fixed also?

stevenhoneyman commented on 2014-08-16 20:09 (UTC)

Could you please add: --sysconfdir=/etc to the ./configure line? as it is now, it thinks the file should be in /usr/etc (run ccache -s and it tells you)