X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fpatches%2Fccache-3.0pre0-no_compiler_mtime.patch;fp=src%2Fpatches%2Fccache-3.0pre0-no_compiler_mtime.patch;h=4bdc8d4816a1f9dd2a8ddd046d50da95f569bd12;hb=5e21bae9cdc9969058d068e5d024d6766c7413e9;hp=0000000000000000000000000000000000000000;hpb=6652626c88bca3a3e89126c47d31779740a21732;p=ipfire-2.x.git diff --git a/src/patches/ccache-3.0pre0-no_compiler_mtime.patch b/src/patches/ccache-3.0pre0-no_compiler_mtime.patch new file mode 100644 index 0000000000..4bdc8d4816 --- /dev/null +++ b/src/patches/ccache-3.0pre0-no_compiler_mtime.patch @@ -0,0 +1,19 @@ +diff -Naur ccache-3.0pre0.org/ccache.c ccache-3.0pre0/ccache.c +--- ccache-3.0pre0.org/ccache.c 2010-02-28 21:14:39.000000000 +0100 ++++ ccache-3.0pre0/ccache.c 2010-03-22 08:08:43.000000000 +0100 +@@ -849,12 +849,14 @@ + + compilercheck = getenv("CCACHE_COMPILERCHECK"); + if (!compilercheck) { +- compilercheck = "mtime"; ++ compilercheck = "size"; + } + if (strcmp(compilercheck, "none") == 0) { + /* Do nothing. */ + } else if (strcmp(compilercheck, "content") == 0) { + hash_file(&hash, args->argv[0]); ++ } else if (strcmp(compilercheck, "size") == 0){ ++ hash_int(&hash, st.st_size); + } else { /* mtime */ + hash_int(&hash, st.st_size); + hash_int(&hash, st.st_mtime);