diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-10-14 02:39:19 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-10-14 02:39:19 +0000 |
commit | 087c9a232cddb7a7f81452ad659b8b84148de8d6 (patch) | |
tree | c184ae2e6c1e746b128df86d2ce9a8d9cef838dd /devel/ccache | |
parent | 50600c0590ad3bc3b56453880afa2690f3d83076 (diff) | |
download | pkgsrc-087c9a232cddb7a7f81452ad659b8b84148de8d6.tar.gz |
Update devel/ccache to 2.4.
Changes:
* Added CCACHE_READONLY option.
* Added CCACHE_TEMPDIR option.
* Fixed handling of hard-linked compiler on AIX.
* Added O_BINARY support, to try and support win32 compiles.
* Show cache directory in stats output.
* Fixed handling of HOME environment variable.
NOTE: 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.
Diffstat (limited to 'devel/ccache')
-rw-r--r-- | devel/ccache/Makefile | 5 | ||||
-rw-r--r-- | devel/ccache/distinfo | 8 | ||||
-rw-r--r-- | devel/ccache/patches/patch-ab | 39 |
3 files changed, 28 insertions, 24 deletions
diff --git a/devel/ccache/Makefile b/devel/ccache/Makefile index 6d2d3dd5508..d33dba2f96a 100644 --- a/devel/ccache/Makefile +++ b/devel/ccache/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.8 2004/03/10 22:41:30 minskim Exp $ +# $NetBSD: Makefile,v 1.9 2004/10/14 02:39:19 xtraeme Exp $ -DISTNAME= ccache-2.3 -PKGREVISION= 1 +DISTNAME= ccache-2.4 CATEGORIES= devel MASTER_SITES= http://ccache.samba.org/ftp/ccache/ diff --git a/devel/ccache/distinfo b/devel/ccache/distinfo index 4cade4b5264..6271cb5edf0 100644 --- a/devel/ccache/distinfo +++ b/devel/ccache/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.6 2004/02/12 07:11:43 jlam Exp $ +$NetBSD: distinfo,v 1.7 2004/10/14 02:39:19 xtraeme Exp $ -SHA1 (ccache-2.3.tar.gz) = eb8ece3cd1b57752b5503b1e65d9bbe302533407 -Size (ccache-2.3.tar.gz) = 84386 bytes +SHA1 (ccache-2.4.tar.gz) = 9833ec13de9b90d5409e60d679ac681115ef465e +Size (ccache-2.4.tar.gz) = 86363 bytes SHA1 (patch-aa) = f2932ccc9166f94eee56da382f7a51f23088bc69 -SHA1 (patch-ab) = b117e0fc73d5fe6cbe4c584421c456cf803177bc +SHA1 (patch-ab) = 1c16adfc4d754182dc9c5f682daf01afc4286aaa diff --git a/devel/ccache/patches/patch-ab b/devel/ccache/patches/patch-ab index 20efa8dd666..6c8f6b24d28 100644 --- a/devel/ccache/patches/patch-ab +++ b/devel/ccache/patches/patch-ab @@ -1,8 +1,8 @@ -$NetBSD: patch-ab,v 1.1 2004/02/12 07:11:43 jlam Exp $ +$NetBSD: patch-ab,v 1.2 2004/10/14 02:39:19 xtraeme Exp $ ---- ccache.c.orig Sat Sep 27 21:48:17 2003 -+++ ccache.c -@@ -252,6 +252,7 @@ static void find_hash(ARGS *args) +--- ccache.c.orig 2004-09-13 12:38:30.000000000 +0200 ++++ ccache.c 2004-10-14 03:04:59.000000000 +0200 +@@ -255,6 +255,7 @@ int i; char *path_stdout, *path_stderr; char *hash_dir; @@ -10,33 +10,38 @@ $NetBSD: patch-ab,v 1.1 2004/02/12 07:11:43 jlam Exp $ char *s; struct stat st; int status; -@@ -314,15 +315,21 @@ static void find_hash(ARGS *args) +@@ -317,13 +318,22 @@ hash_string(args->argv[i]); } - /* the compiler driver size and date. This is a simple minded way - to try and detect compiler upgrades. It is not 100% reliable */ -- if (stat(args->argv[0], &st) != 0) { -- cc_log("Couldn't stat the compiler!? (argv[0]='%s')\n", args->argv[0]); -- stats_update(STATS_COMPILER); -- failed(); + /* If CCACHE_HASHCC is defined, then hash that string, otherwise, hash -+ the compiler driver size and date. This is a simple minded way to -+ try and detect compiler upgrades. It is not 100% reliable */ ++ the compiler driver size and date. This is a simple minded way to ++ try and detect compiler upgrades. It is not 100% reliable */ ++ + hash_cc = getenv("CCACHE_HASHCC"); + if (hash_cc) { + hash_string(hash_cc); + } else { -+ if (stat(args->argv[0], &st) != 0) { -+ cc_log("Couldn't stat the compiler!? (argv[0]='%s')\n", args->argv[0]); -+ stats_update(STATS_COMPILER); -+ failed(); -+ } + if (stat(args->argv[0], &st) != 0) { + cc_log("Couldn't stat the compiler!? (argv[0]='%s')\n", args->argv[0]); + stats_update(STATS_COMPILER); + failed(); + } + hash_int(st.st_size); + hash_int(st.st_mtime); ++ } + + /* also include the hash of the compiler name - as some compilers + use hard links and behave differently depending on the real name */ +@@ -331,9 +341,6 @@ + hash_string(str_basename(args->argv[0])); } + - hash_int(st.st_size); - hash_int(st.st_mtime); - +- /* possibly hash the current working directory */ if (getenv("CCACHE_HASHDIR")) { + char *cwd = gnu_getcwd(); |