debian/0000775000000000000000000000000012072333225007167 5ustar debian/patches/0000775000000000000000000000000012072333225010616 5ustar debian/patches/debian_specific_usage_docs.patch0000664000000000000000000000307512072333225017127 0ustar Description: Update manual page with Debian-specific instructions Author: Joel Rosdahl Index: ccache/ccache.1 =================================================================== --- ccache.orig/ccache.1 2011-05-29 17:56:17.000000000 +0200 +++ ccache/ccache.1 2011-06-25 23:32:51.762776410 +0200 @@ -157,19 +157,18 @@ .sp There are two ways to use ccache\&. You can either prefix your compilation commands with \fBccache\fR or you can let ccache masquerade as the compiler by creating a symbolic link (named as the compiler) to ccache\&. The first method is most convenient if you just want to try out ccache or wish to use it for some specific projects\&. The second method is most useful for when you wish to use ccache for all your compilations\&. .sp -To use the first method, just make sure that \fBccache\fR is in your \fBPATH\fR\&. +To use the second method on a Debian system, it's easiest to just prepend \fI/usr/lib/ccache\fR to your \fBPATH\fR\&. \fI/usr/lib/ccache\fR contains symlinks for all compilers currently installed as Debian packages\&. .sp -To use the symlinks method, do something like this: +Alternatively, you can create any symlinks you like yourself like this: .sp .if n \{\ .RS 4 .\} .nf -cp ccache /usr/local/bin/ -ln \-s ccache /usr/local/bin/gcc -ln \-s ccache /usr/local/bin/g++ -ln \-s ccache /usr/local/bin/cc -ln \-s ccache /usr/local/bin/c++ +ln \-s /usr/bin/ccache /usr/local/bin/gcc +ln \-s /usr/bin/ccache /usr/local/bin/g++ +ln \-s /usr/bin/ccache /usr/local/bin/cc +ln \-s /usr/bin/ccache /usr/local/bin/c++ .fi .if n \{\ .RE debian/patches/series0000664000000000000000000000004112072333225012026 0ustar debian_specific_usage_docs.patch debian/rules0000775000000000000000000000517112072333225010253 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) confflags += --build $(DEB_HOST_GNU_TYPE) else confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) endif ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif config.status: configure-stamp configure-stamp: dh_testdir ifneq "$(wildcard /usr/share/misc/config.sub)" "" cp -f /usr/share/misc/config.sub config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif ./configure $(confflags) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info touch $@ build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: config.status dh_testdir $(MAKE) touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp [ ! -f Makefile ] || $(MAKE) distclean rm -f config.guess config.sub dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs sed s/%DEB_HOST_MULTIARCH%/$(DEB_HOST_MULTIARCH)/ debian/ccache.triggers.in >debian/ccache.triggers sed s/%DEB_HOST_MULTIARCH%/$(DEB_HOST_MULTIARCH)/ debian/update-ccache-symlinks.in >debian/ccache/usr/sbin/update-ccache-symlinks $(MAKE) install prefix=$(CURDIR)/debian/ccache/usr chmod +x debian/ccache/usr/sbin/update-ccache-symlinks # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdocs cd debian/ccache/usr/share/doc/ccache && mv NEWS.html changelog.html cd debian/ccache/usr/share/doc/ccache && mv MANUAL.html manual.html dh_installexamples dh_installmenu dh_installcron dh_installman debian/update-ccache-symlinks.8 dh_installinfo dh_installchangelogs NEWS.txt dh_link dh_lintian dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build build-arch build-indep clean install binary binary-indep binary-arch debian/changelog0000664000000000000000000003147612072333225011054 0ustar ccache (3.1.9-1) unstable; urgency=low * New upstream release 3.1.9 * Correct debian/copyright to fix Lintian errors * Build with hardening flags -- Joel Rosdahl Sun, 06 Jan 2013 18:19:19 +0100 ccache (3.1.8-1) unstable; urgency=low * New upstream release 3.1.8 (closes: #656022, #672570, #688508) * Update Standards-Version to 3.9.4 (no changes required) * Update debian/copyright to match current reality * Update debian/copyright to version 1.0 of the machine-readable format -- Joel Rosdahl Sun, 25 Nov 2012 12:20:16 +0100 ccache (3.1.7-1) unstable; urgency=low * New upstream version. -- Joel Rosdahl Sun, 08 Jan 2012 22:19:24 +0100 ccache (3.1.6-1) unstable; urgency=low * New upstream version. -- Joel Rosdahl Sun, 21 Aug 2011 21:56:05 +0200 ccache (3.1.5-2) unstable; urgency=low * Update dpkg triggers and update-ccache-symlinks to find compilers at the new GCC library location. Closes: #630352. * Use dh_prep instead of deprecated "dh_clean -k". * Move patches to debian directory. * Drop obsolete dont_distclean_version.c.patch. * Add build-arch and build-indep targets as hinted by lintian. -- Joel Rosdahl Sat, 25 Jun 2011 23:17:56 +0200 ccache (3.1.5-1) unstable; urgency=low * New upstream version. * Update Standards-Version to 3.9.2 (no changes required). -- Joel Rosdahl Sun, 29 May 2011 17:56:48 +0200 ccache (3.1.4-3) unstable; urgency=low * Fix errors in update-ccache-symlinks man page. Closes: #616619. -- Joel Rosdahl Sun, 06 Mar 2011 09:14:03 +0100 ccache (3.1.4-2) unstable; urgency=low * Create "gcc-X.Y"-style symlinks in /usr/lib/ccache. Closes: #610179. -- Joel Rosdahl Sun, 20 Feb 2011 16:08:06 +0100 ccache (3.1.4-1) unstable; urgency=low * New upstream version. -- Joel Rosdahl Wed, 12 Jan 2011 23:45:14 +0100 ccache (3.1.3-1) unstable; urgency=low * New upstream version. -- Joel Rosdahl Thu, 02 Dec 2010 21:05:17 +0100 ccache (3.1.2-1) unstable; urgency=low * New upstream version. -- Joel Rosdahl Sun, 21 Nov 2010 21:07:27 +0100 ccache (3.1.1-1) unstable; urgency=low * New upstream version. -- Joel Rosdahl Sun, 07 Nov 2010 21:16:52 +0100 ccache (3.1-1) experimental; urgency=low * New upstream version. * It's now possible to set up ccache to hash the output of a custom command to identify the compiler. Closes: #506968. -- Joel Rosdahl Sat, 18 Sep 2010 19:19:07 +0200 ccache (3.0.1-2) experimental; urgency=low * Use dpkg triggers to automatically update symlinks in /usr/lib/ccache when compilers are removed or installed. Closes: #494636. * Update man page and manual with Debian-specific usage hints. -- Joel Rosdahl Fri, 10 Sep 2010 19:17:57 +0200 ccache (3.0.1-1) unstable; urgency=low [ Francois Marier ] * Remove myself from uploaders [ Y Giridhar Appaji Nag ] * Support gcc-4.4 - create links in /usr/lib/ccache. Thanks Andreas Metzler for the bug report (Closes: #532169) * Fix lintian W:debhelper-but-no-misc-depends, add ${misc:Depends} to ccache Depends: * Please welcome Joel Rosdahl , the upstream maintainer of ccache as a co-maintainer. [ Joel Rosdahl ] * ccache now correctly falls back to the real compiler when -save-temps is used. Closes: #498005. * The package no longer patches generated files. Closes: #508054. * ccache now has support for rewriting absolute paths (see the CCACHE_BASEDIR variable). Closes: #523480. * The ccache manual has fixed the wording of MD4 being a strong cryptographic hash. Closes: #538821. * A new upstream release has been packaged. Closes: #580944. * Update copyright information in DEP-5 format. * Remove obsolete patches. * Don't mention the CCACHE_UNIFY option in README.Debian as it's more or less obsolete. * Add note in README.Debian that the "NFS Issues" only are relevant when using CCACHE_HARDLINK. * Remove obsolete update-ccache and reference to manage-cache.sh. * Update package description. * Include upstream NEWS.txt (as upstream changelog.gz), NEWS.html (as changelog.html.gz) and manual.html. * Add doc-base entry for the ccache manual. * Switch to dpkg-source 3.0 (quilt) format. * Update Standards-Version to 3.9.1 (no changes required). * Change watch file to check for the .bz2 version of the archive. -- Joel Rosdahl Wed, 04 Aug 2010 22:41:42 +0200 ccache (2.4-17) unstable; urgency=low [ Y Giridhar Appaji Nag ] * New patch 15_gcc4.3_warnings to fix gcc 4.3 warnings. Thanks William S Fulton for the bug report and the patch (Closes: #508046) * Refresh all patches to be "git diff" based and to apply cleanly. * Update Standards-Version to 3.8.1 (no changes required) [ Francois Marier ] * Make Y Giridhar Appaji Nag the maintainer and add myself as uploader -- Y Giridhar Appaji Nag Sun, 22 Mar 2009 22:08:01 +0530 ccache (2.4-16) unstable; urgency=low * Fix the documentation references to CCACHE_HARDLINK (patch from Fedora) * Add a patch for the HTML docs in the source (from Fedora) * Remove reference to compilercache in the description (closes: #498006) * Bump Standards-Version to 3.8.0 (no changes) * Move packaging to git and update VCS fields -- Francois Marier Sat, 29 Nov 2008 23:53:39 +1300 ccache (2.4-15) unstable; urgency=low * Add a new patch which improve the consistency of timestamps on cached objects to make sure clean-up is based on least recently used objects. * Patch the set_limit call so that non-writable cache directories return an error when attempting to size the max(files|size) (closes: #332527) -- Francois Marier Sun, 13 Apr 2008 15:07:05 +1200 ccache (2.4-14) unstable; urgency=low * Mention the long options everywhere in the manpage * Merge Gentoo patches: - respect user's LDFLAGS - use utimes() for timestamp if possible -- Francois Marier Sun, 23 Mar 2008 16:30:11 +1300 ccache (2.4-13) unstable; urgency=low * Update CACHEDIR.TAG patch to avoid creating the tag file when the CCACHE_READONLY environment variable is set. (closes: #464356) * Mention the GNU-style long options in the manpage -- Francois Marier Thu, 07 Feb 2008 10:50:42 +1300 ccache (2.4-12) unstable; urgency=low * Add symlink for gcc 4.3 (closes: #463590) * Add support for the CACHEDIR.TAG spec, thanks to Karl Chen. (see http://www.brynosaurus.com/cachedir/) * Fix hyphens in manpage (lintian notice) * Bump Standards-Version up to 3.7.3 (no changes) * Bump debhelper compatibility to 6 -- Francois Marier Sat, 02 Feb 2008 10:37:22 +1300 ccache (2.4-11) unstable; urgency=low * Add the collab-maint repo to debian/control -- Francois Marier Tue, 20 Nov 2007 15:26:37 +1300 ccache (2.4-10) unstable; urgency=low * Document where the patches are from in debian/patches/CREDITS * debian/rules: - Fixed "make distclean" lintian warning - Removed commented-out entries * Set debhelper compatibility to 5 * Add homepage field in debian/control * Add symlinks for MinGW (closes: #445782) * Bump the version to 5 in the debhelper dependency -- Francois Marier Fri, 19 Oct 2007 16:04:37 +1300 ccache (2.4-9) unstable; urgency=low * Add a symlink for gcc 4.2 (closes: #431007) * Fix dependencies when using -o (closes: #217713) -- Francois Marier Sat, 30 Jun 2007 17:58:44 +1200 ccache (2.4-8) unstable; urgency=low * Enable zlib compression of the cache by default (closes: #409848). Thanks to Sami Liedes for suggesting this. * Disable ccache when profiling (closes: #215849). Thanks to Ted Percival for the Patch. * Fix NFS renaming issues and add instructions to the README. Thanks to John Coiner and instructions. * Put all patches in debian/patches and apply them at build time. -- Francois Marier Sun, 20 May 2007 19:42:34 +1200 ccache (2.4-7) unstable; urgency=low * Use the real compiler when HOME is not set (closes: #396350) * Include user script under doc/examples (closes: #392435) Thanks to Behan Webster! * Add support for GNU --long options (closes: #297126) -- Francois Marier Sat, 18 Nov 2006 00:50:59 -0500 ccache (2.4-6) unstable; urgency=low * Include symlinks for gcc 4.1 (closes: #372838) * Update watch file -- Francois Marier Tue, 13 Jun 2006 22:17:37 -0400 ccache (2.4-5) unstable; urgency=low * Document the fact that cross-compiling is supported (closes: #349221) * Bump Standards-Version up to 3.7.2 (no changes) -- Francois Marier Sun, 4 Jun 2006 01:20:07 -0400 ccache (2.4-4) unstable; urgency=low * Mention another way to use ccache in README.Debian (thanks to Benjamin Drieu for the suggestion) (closes: #267632) * Update FSF address * Fix watch file -- Francois Marier Sat, 26 Nov 2005 00:15:13 -0500 ccache (2.4-3) unstable; urgency=low * Actually use the configuration flags in debian/rules * Bump Standards-Version up to 3.6.2 (no changes) -- Francois Marier Sun, 26 Jun 2005 13:33:19 -0400 ccache (2.4-2) unstable; urgency=low * Add gcc and g++ symlinks to /usr/lib/ccache (closes: #313490) * Remove invalid entry from Depends -- Francois Marier Wed, 15 Jun 2005 20:51:03 -0400 ccache (2.4-1) unstable; urgency=low * New maintainer (closes: #312867) * New upstream version: (closes: #273753, #239640) - New CCACHE_READONLY and CCACHE_TEMPDIR options - Fixed handling of hard-linked compilers on AIX - Fixed handling of HOME environment variable (closes: #299880) - Show cache directory in stats output * Fix copyright file * Add 'distcc' to Suggests (closes: #269158) * Add a note about whitespace in README.Debian (closes: #229116) * Update rules to add symmlinks for gcc 3.4 & 4.0 (closes: #261177) * Acknowledge NMUs (closes: #200185, #177129, #174417) -- Francois Marier Sun, 12 Jun 2005 12:05:34 -0400 ccache (2.3-1.1) unstable; urgency=low * Non-maintainer upload during BSP * Re-apply patch for #200185 ccache: Incorrect symlinks in /usr/lib/ccache (Closes: #200185) -- Frank Lichtenheld Fri, 19 Mar 2004 11:14:50 +0100 ccache (2.3-1) unstable; urgency=low * New upstream release: obsoletes existing caches. * Tweak package description in arbitrary way (closes: #181721) -- Paul Russell Mon, 29 Sep 2003 02:53:20 +0200 ccache (2.2-2) unstable; urgency=low * Insert more symlinks in ccache dir (closes: #197468) -- Paul Russell Mon, 16 Jun 2003 10:52:50 +0100 ccache (2.2-1) unstable; urgency=low * New upstream release (closes: #150755) * Insert more symlinks in ccache dir (closes: #144462) -- Paul Russell Mon, 17 Feb 2003 07:19:36 +0100 ccache (2.1.1-2) unstable; urgency=low * Restored /usr/lib/ccache symlinks (closes: #179393) * Fixed manpage typo (closes: #179564) * With thanks to Andreas Rottmann. -- Paul Russell Wed, 5 Feb 2003 10:01:10 +0100 ccache (2.1.1-1) unstable; urgency=low * NMU (with maintainer consent). * New upstream release (closes: #174417, #177129). * debian/control: + Build-Depend on and use dephelper 4 (DH_COMPAT = 4). + Bumped Standards-Version to 3.5.8. + No full stop on short package description (fixes linda warning). * debian/copright: + Make lintian feel comfortable; fixes warnings: - copyright-should-refer-to-common-license-file-for-gpl - copyright-lists-upstream-authors-with-dh_make-boilerplate * Built with g++ 3.2 :-). -- Andreas Rottmann Thu, 16 Jan 2003 11:42:38 +0100 ccache (1.9-1) unstable; urgency=low * New upstream release (closes: #144920) -- Paul Russell Mon, 13 May 2002 10:01:09 +0200 ccache (1.8-1) unstable; urgency=low * New upstream release (closes: #145401) -- Paul Russell Fri, 3 May 2002 02:26:32 +0200 ccache (1.7-1) unstable; urgency=low * New upstream release * Install symlinks in /usr/lib/ccache (closes: #141337) -- Paul Russell Wed, 10 Apr 2002 17:51:21 +0200 ccache (1.4-1) unstable; urgency=low * New upstream release -- Paul Russell Wed, 3 Apr 2002 03:41:46 +0200 ccache (1.2-1) unstable; urgency=low * Initial Release. -- Paul Russell Sun, 31 Mar 2002 14:08:57 +0200 debian/watch0000664000000000000000000000007412072333225010221 0ustar version=2 http://samba.org/ftp/ccache/ccache-(.*)\.tar\.bz2 debian/README.Debian0000664000000000000000000000344612072333225011237 0ustar Installing ccache ----------------- The recommended way to use this with Debian is to either create "cc" and "gcc" symlinks to /usr/bin/ccache in your private bin directory (which must be before the real cc and gcc in your path), or use CC="ccache gcc" on the make command line. Another option is to just prepend /usr/lib/ccache in your PATH environment variable, like export PATH="/usr/lib/ccache:$PATH" Note that ccache works with both native and cross compilers. NFS Issues when using CCACHE_HARDLINK ------------------------------------- (from John Coiner on the ccache mailing list) When CCache creates a hardlinked output file, it calls utime() to update the timestamp on the object, so that Make realizes that the object has changed. On NFS, utime() has no coherency guarantee, AFAIK. When utime() runs on host A, and our parallel implementation of Make is running on host B, sometimes Make doesn't see the new timestamp soon enough -- and neglects to relink the final binary. That's a one-way ticket to Silent Mysterious Failure Town. Instead of relying on the object file timestamp, we create a dummy file with a reliable timestamp: objs/foo.o objs/foo.o.built : if ( ccache gcc -o foo.o -c foo.c ) ; \ then touch objs/foo.o.built ; \ else exit 1; \ fi binary : objs/foo.o.built gcc -o binary objs/foo.o NFS does make a coherency guarantee, that if a file is written and close()d on host A, and subsequently open()ed on host B, that the second open() will reflect all modifications and attributes from the close(). Since Make does open() when checking timestamps, and the dummy file is close()d when it's created, the binary will always relink after the object is recompiled. -- Joel Rosdahl , Mon, 2 Aug 2010 15:01:05 +0200 debian/ccache.postinst0000664000000000000000000000015012072333225012176 0ustar #!/bin/sh set -eu echo "Updating symlinks in /usr/lib/ccache ..." update-ccache-symlinks #DEBHELPER# debian/NEWS0000664000000000000000000000310012072333225007660 0ustar ccache (3.0.1-1) unstable; urgency=low The way the hashes are calculated has changed, so you won't get cache hits for compilation results stored by older ccache versions. Because of this, you might as well clear the old cache directory with `ccache --clear` if you want, unless you plan to keep using an older ccache version. zlib compression has now been incorporated upstream, but it's off by default. To enable compression, set the CCACHE_COMPRESS environment variable. See /usr/share/doc/ccache/changelog.gz for more upstream release notes for 3.0 as well as 3.0.1. -- Y Giridhar Appaji Nag Wed, 04 Aug 2010 17:43:37 +0530 ccache (2.4-8) unstable; urgency=high zlib compression is now enabled by default in order to increase the amount of object files that can fit in the cache. The impact on performance is supposed to be almost negligible (see http://www.gustaebel.de/lars/ccache/). If you do want to disable it however, simply export the CCACHE_NOCOMPRESS environment variable. Note that a zlib-enabled ccache will still read your existing uncompressed cache. If you want to compress/uncompress your cache, see the manage-cache.sh script under /usr/share/doc/ccache/examples/. -- Francois Marier Sun, 20 May 2007 19:45:07 +1200 ccache (2.4-1) unstable; urgency=low * This release changes the hash input slighly, so you will probably find that you will not get any hits against your existing cache when you upgrade. -- Francois Marier Sat, 11 Jun 2005 13:54:33 -0400 debian/compat0000664000000000000000000000000212072333225010365 0ustar 6 debian/ccache.prerm0000664000000000000000000000011512072333225011441 0ustar #!/bin/sh set -eu rm -f /usr/lib/ccache/* 2>/dev/null || true #DEBHELPER# debian/update-ccache-symlinks.80000664000000000000000000000112112072333225013610 0ustar .TH UPDATE-CCACHE-SYMLINKS 8 "2010-08-08" .SH NAME update-ccache-symlinks \- update symlinks in /usr/lib/ccache .SH SYNOPSIS .B update-ccache-symlinks .SH DESCRIPTION \fBupdate-ccache-symlinks\fR creates and removes symlinks in \fI/usr/lib/ccache\fR. See the \fBccache\fR man page for more information. .P It is normally not necessary to run \fBupdate-ccache-symlinks\fR by hand as this is done automatically when compiler packages are removed or installed. .SH SEE ALSO .BR ccache (1) .SH AUTHOR This manual page was written by Joel Rosdahl for the Debian GNU/Linux system. debian/ccache.doc-base0000664000000000000000000000033512072333225011775 0ustar Document: ccache Title: ccache manual Author: Joel Rosdahl Abstract: Manual for ccache (compiler cache) Section: Programming Format: HTML Index: /usr/share/doc/ccache/manual.html Files: /usr/share/doc/ccache/manual.html debian/dirs0000664000000000000000000000010612072333225010050 0ustar usr/bin usr/lib/ccache usr/sbin usr/share/man/man1 usr/share/man/man8 debian/ccache.triggers.in0000664000000000000000000000010112072333225012542 0ustar interest /usr/lib/gcc interest /usr/lib/%DEB_HOST_MULTIARCH%/gcc debian/source/0000775000000000000000000000000012072333225010467 5ustar debian/source/format0000664000000000000000000000001412072333225011675 0ustar 3.0 (quilt) debian/docs0000664000000000000000000000004112072333225010035 0ustar NEWS.html README.txt MANUAL.html debian/control0000664000000000000000000000143612072333225010576 0ustar Source: ccache Section: devel Priority: optional Maintainer: Y Giridhar Appaji Nag Uploaders: Joel Rosdahl Build-Depends: debhelper (>> 6.0.7~), autotools-dev, zlib1g-dev, dpkg-dev (>= 1.16.1~) Standards-Version: 3.9.4 Homepage: http://ccache.samba.org Vcs-git: git://git.debian.org/git/collab-maint/ccache.git Vcs-Browser: http://git.debian.org/?p=collab-maint/ccache.git;a=summary Package: ccache Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Suggests: distcc Description: Compiler cache for fast recompilation of C/C++ code ccache is a compiler cache. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again. Supported languages are C, C++, Objective-C and Objective-C++. debian/update-ccache-symlinks.in0000664000000000000000000000272612072333225014063 0ustar #!/usr/bin/perl use strict; use warnings FATAL => "all"; my $ccache_dir = "/usr/lib/ccache"; my $old_gcc_dir = "/usr/lib/gcc"; my $new_gcc_dir = "/usr/lib/%DEB_HOST_MULTIARCH%/gcc"; my %old_symlinks; # Current compiler names in /usr/lib/ccache my %new_symlinks; # Compiler names that should be in /usr/lib/ccache my @standard_names = qw(cc c++); sub consider { my ($name) = @_; if (-x "/usr/bin/$name") { $new_symlinks{$name} = 1; } } sub consider_gcc { my ($prefix, $suffix) = @_; consider "${prefix}gcc${suffix}"; consider "${prefix}g++${suffix}"; } # Find existing standard compiler names. foreach (@standard_names) { consider $_; } # Find existing GCC variants. consider_gcc "", ""; consider_gcc "c89-", ""; consider_gcc "c99-", ""; foreach my $dir (<$old_gcc_dir/*>, <$new_gcc_dir/*>) { (my $kind = $dir) =~ s|.*/||; consider_gcc "$kind-", ""; foreach (<$dir/*>) { if (! -l $_ and -d $_) { s|.*/||; consider_gcc "", "-$_"; consider_gcc "$kind-", "-$_"; } } } # Find existing symlinks. foreach (<$ccache_dir/*>) { if (-l) { s|.*/||; $old_symlinks{$_} = 1; } } # Remove obsolete symlinks. foreach (keys %old_symlinks) { if (! exists $new_symlinks{$_}) { unlink "$ccache_dir/$_"; } } # Add missing symlinks. foreach (keys %new_symlinks) { if (! exists $old_symlinks{$_}) { symlink "../../bin/ccache", "$ccache_dir/$_"; } } debian/ccache.lintian-overrides0000664000000000000000000000007112072333225013753 0ustar ccache: package-contains-empty-directory usr/lib/ccache/ debian/copyright0000664000000000000000000002005612072333225011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ccache Upstream-Contact: Joel Rosdahl Source: http://samba.org/ftp/ccache/ Files: * Copyright: 2002-2007 Andrew Tridgell 2009-2012 Joel Rosdahl License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-3'. Files: mdfour.c Copyright: 1997-1998 Andrew Tridgell License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 2002-2003 Paul Russell 2004-2009 Francois Marier 2009-2010 Y Giridhar Appaji Nag 2010-2012 Joel Rosdahl License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-3'. Files: getopt_long.[hc] Copyright: 1987, 1993, 1994 The Regents of the University of California 2003 PostgreSQL Global Development Group License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: hashtable*.[hc] Copyright: 2002, 2004 Christopher Clark License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of the original author; nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: murmurhashneutral2.[hc] Copyright: Released to the public domain by Austin Appleby License: PD Released to the public domain by Austin Appleby. Files: snprintf.c m4/snprintf.m4 Copyright: 1995 Patrick Powell 2008 Holger Weiss License: This code is based on code written by Patrick Powell . It may be used for any purpose as long as this notice remains intact on all source code distributions. . This version of the code is maintained by Holger Weiss . My changes to the code may freely be used, modified and/or redistributed for any purpose. It would be nice if additions and fixes to this file (including trivial code cleanups) would be sent back in order to let me include them in the version available at . However, this is not a requirement for using or redistributing (possibly modified) versions of this file, nor is leaving this notice intact mandatory. Files: zlib/*.[hc] Copyright: 1995-2005 Jean-loup Gailly and Mark Adler License: ZLIB This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution.