Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 20 years ago
parent
commit
df969ff432
2 changed files with 8 additions and 17 deletions
  1. +2
    -2
      package/base/ccache/ccache.desc
  2. +6
    -15
      package/base/ccache/dont_stat_compiler.patch

+ 2
- 2
package/base/ccache/ccache.desc

@ -35,8 +35,8 @@
[L] GPL
[S] Stable
[V] 2.3
[V] 2.4
[P] X -1---5---9 103.800
[D] 3284619110 ccache-2.3.tar.gz http://ccache.samba.org/ftp/ccache/
[D] 1783193111 ccache-2.4.tar.gz http://ccache.samba.org/ftp/ccache/

+ 6
- 15
package/base/ccache/dont_stat_compiler.patch

@ -19,25 +19,16 @@
--- ./ccache.c.orig Mon Feb 17 01:11:58 2003
+++ ./ccache.c Tue Feb 18 20:10:52 2003
@@ -290,13 +290,15 @@
@@ -331,8 +331,10 @@
hash_string(str_basename(args->argv[0]));
}
/* 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();
- hash_int(st.st_size);
- hash_int(st.st_mtime);
+ if (!getenv("CCACHE_DONT_STAT_COMPILER")) {
+ 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);
}
- hash_int(st.st_size);
- hash_int(st.st_mtime);
+ }
/* possibly hash the current working directory */
if (getenv("CCACHE_HASHDIR")) {

Loading…
Cancel
Save