diff options
| author | Eric Bavier <bavier@member.fsf.org> | 2014-10-20 16:47:58 -0500 |
|---|---|---|
| committer | Eric Bavier <bavier@member.fsf.org> | 2014-10-20 16:49:32 -0500 |
| commit | 1454a2ba88fc0696192e520e2cbd27b380e4d8f2 (patch) | |
| tree | 0e06f353b6acec63c2309e8d447cfd41d93a74a8 | |
| parent | 7947a05439cc26d93bd93300f38d216dbb93c76d (diff) | |
gnu: ccache: Upgrade to 3.1.10.
* gnu/packages/ccache.scm (ccache): Upgrade to 3.1.10.
[source]: Remove patches.
* gnu/packages/patches/ccache-stdc-predef-test.patch: Delete patch.
* gnu-system.am (dist_patch_DATA): Remove it.
| -rw-r--r-- | gnu-system.am | 1 | ||||
| -rw-r--r-- | gnu/packages/ccache.scm | 5 | ||||
| -rw-r--r-- | gnu/packages/patches/ccache-stdc-predef-test.patch | 157 |
3 files changed, 2 insertions, 161 deletions
diff --git a/gnu-system.am b/gnu-system.am index b8b5b2ce53f..af3f764648a 100644 --- a/gnu-system.am +++ b/gnu-system.am | |||
| @@ -312,7 +312,6 @@ dist_patch_DATA = \ | |||
| 312 | gnu/packages/patches/bigloo-gc-shebangs.patch \ | 312 | gnu/packages/patches/bigloo-gc-shebangs.patch \ |
| 313 | gnu/packages/patches/binutils-ld-new-dtags.patch \ | 313 | gnu/packages/patches/binutils-ld-new-dtags.patch \ |
| 314 | gnu/packages/patches/binutils-loongson-workaround.patch \ | 314 | gnu/packages/patches/binutils-loongson-workaround.patch \ |
| 315 | gnu/packages/patches/ccache-stdc-predef-test.patch \ | ||
| 316 | gnu/packages/patches/cdparanoia-fpic.patch \ | 315 | gnu/packages/patches/cdparanoia-fpic.patch \ |
| 317 | gnu/packages/patches/clucene-pkgconfig.patch \ | 316 | gnu/packages/patches/clucene-pkgconfig.patch \ |
| 318 | gnu/packages/patches/cmake-fix-tests.patch \ | 317 | gnu/packages/patches/cmake-fix-tests.patch \ |
diff --git a/gnu/packages/ccache.scm b/gnu/packages/ccache.scm index 4918ec9609e..2b45ab09d6c 100644 --- a/gnu/packages/ccache.scm +++ b/gnu/packages/ccache.scm | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | (define-public ccache | 28 | (define-public ccache |
| 29 | (package | 29 | (package |
| 30 | (name "ccache") | 30 | (name "ccache") |
| 31 | (version "3.1.9") | 31 | (version "3.1.10") |
| 32 | (source | 32 | (source |
| 33 | (origin | 33 | (origin |
| 34 | (method url-fetch) | 34 | (method url-fetch) |
| @@ -36,8 +36,7 @@ | |||
| 36 | version ".tar.xz")) | 36 | version ".tar.xz")) |
| 37 | (sha256 | 37 | (sha256 |
| 38 | (base32 | 38 | (base32 |
| 39 | "1i06015jjc0n55xgvhv2h37fjp0i7z8a10s0v40f87c5mprzv0a9")) | 39 | "0mr8n1nbykxw4rs55ad8wd6xmfhihn09mxpxb91sn9mlsd1ryhw8")))) |
| 40 | (patches (list (search-patch "ccache-stdc-predef-test.patch"))))) | ||
| 41 | (build-system gnu-build-system) | 40 | (build-system gnu-build-system) |
| 42 | (native-inputs `(("perl" ,perl))) ;for test.sh | 41 | (native-inputs `(("perl" ,perl))) ;for test.sh |
| 43 | (inputs `(("zlib" ,zlib))) | 42 | (inputs `(("zlib" ,zlib))) |
diff --git a/gnu/packages/patches/ccache-stdc-predef-test.patch b/gnu/packages/patches/ccache-stdc-predef-test.patch deleted file mode 100644 index bd9444c2df8..00000000000 --- a/gnu/packages/patches/ccache-stdc-predef-test.patch +++ /dev/null | |||
| @@ -1,157 +0,0 @@ | |||
| 1 | This patch is a combination of the following commits:: | ||
| 2 | |||
| 3 | https://git.samba.org/?p=ccache.git;a=commit;h=b5d63f81c1a83fd4c50b769a96a04f581b7db70c | ||
| 4 | https://git.samba.org/?p=ccache.git;a=commit;h=a11f5688748ecb49f590b3f4bc0e9b3458f9a56f | ||
| 5 | https://git.samba.org/?p=ccache.git;a=commit;h=5a9322c56ed0cd16255966e99077843aae57ab3e | ||
| 6 | |||
| 7 | from the general discussion at | ||
| 8 | http://comments.gmane.org/gmane.comp.compilers.ccache/1089 | ||
| 9 | |||
| 10 | --- a/test.sh | ||
| 11 | +++ b/test.sh | ||
| 12 | @@ -562,6 +562,12 @@ | ||
| 13 | EOF | ||
| 14 | backdate test1.h test2.h test3.h | ||
| 15 | |||
| 16 | + $COMPILER -c -Wp,-MD,expected.d test.c | ||
| 17 | + expected_d_content=`cat expected.d` | ||
| 18 | + | ||
| 19 | + $COMPILER -c -Wp,-MMD,expected_mmd.d test.c | ||
| 20 | + expected_mmd_d_content=`cat expected_mmd.d` | ||
| 21 | + | ||
| 22 | ################################################################## | ||
| 23 | # First compilation is a miss. | ||
| 24 | testname="first compilation" | ||
| 25 | @@ -677,7 +683,7 @@ | ||
| 26 | checkstat 'cache hit (direct)' 0 | ||
| 27 | checkstat 'cache hit (preprocessed)' 0 | ||
| 28 | checkstat 'cache miss' 1 | ||
| 29 | - checkfile other.d "test.o: test.c test1.h test3.h test2.h" | ||
| 30 | + checkfile other.d "$expected_d_content" | ||
| 31 | |||
| 32 | rm -f other.d | ||
| 33 | |||
| 34 | @@ -685,7 +691,7 @@ | ||
| 35 | checkstat 'cache hit (direct)' 1 | ||
| 36 | checkstat 'cache hit (preprocessed)' 0 | ||
| 37 | checkstat 'cache miss' 1 | ||
| 38 | - checkfile other.d "test.o: test.c test1.h test3.h test2.h" | ||
| 39 | + checkfile other.d "$expected_d_content" | ||
| 40 | |||
| 41 | rm -f other.d | ||
| 42 | |||
| 43 | @@ -698,7 +704,7 @@ | ||
| 44 | checkstat 'cache hit (direct)' 0 | ||
| 45 | checkstat 'cache hit (preprocessed)' 0 | ||
| 46 | checkstat 'cache miss' 1 | ||
| 47 | - checkfile other.d "test.o: test.c test1.h test3.h test2.h" | ||
| 48 | + checkfile other.d "$expected_mmd_d_content" | ||
| 49 | |||
| 50 | rm -f other.d | ||
| 51 | |||
| 52 | @@ -706,7 +712,7 @@ | ||
| 53 | checkstat 'cache hit (direct)' 1 | ||
| 54 | checkstat 'cache hit (preprocessed)' 0 | ||
| 55 | checkstat 'cache miss' 1 | ||
| 56 | - checkfile other.d "test.o: test.c test1.h test3.h test2.h" | ||
| 57 | + checkfile other.d "$expected_mmd_d_content" | ||
| 58 | |||
| 59 | rm -f other.d | ||
| 60 | |||
| 61 | @@ -760,7 +766,7 @@ | ||
| 62 | checkstat 'cache hit (direct)' 0 | ||
| 63 | checkstat 'cache hit (preprocessed)' 0 | ||
| 64 | checkstat 'cache miss' 1 | ||
| 65 | - checkfile test.d "test.o: test.c test1.h test3.h test2.h" | ||
| 66 | + checkfile test.d "$expected_d_content" | ||
| 67 | |||
| 68 | rm -f test.d | ||
| 69 | |||
| 70 | @@ -768,7 +774,7 @@ | ||
| 71 | checkstat 'cache hit (direct)' 1 | ||
| 72 | checkstat 'cache hit (preprocessed)' 0 | ||
| 73 | checkstat 'cache miss' 1 | ||
| 74 | - checkfile test.d "test.o: test.c test1.h test3.h test2.h" | ||
| 75 | + checkfile test.d "$expected_d_content" | ||
| 76 | |||
| 77 | ################################################################## | ||
| 78 | # Check the scenario of running a ccache with direct mode on a cache | ||
| 79 | @@ -780,7 +786,7 @@ | ||
| 80 | checkstat 'cache hit (direct)' 0 | ||
| 81 | checkstat 'cache hit (preprocessed)' 0 | ||
| 82 | checkstat 'cache miss' 1 | ||
| 83 | - checkfile test.d "test.o: test.c test1.h test3.h test2.h" | ||
| 84 | + checkfile test.d "$expected_d_content" | ||
| 85 | |||
| 86 | rm -f test.d | ||
| 87 | |||
| 88 | @@ -788,7 +794,7 @@ | ||
| 89 | checkstat 'cache hit (direct)' 0 | ||
| 90 | checkstat 'cache hit (preprocessed)' 1 | ||
| 91 | checkstat 'cache miss' 1 | ||
| 92 | - checkfile test.d "test.o: test.c test1.h test3.h test2.h" | ||
| 93 | + checkfile test.d "$expected_d_content" | ||
| 94 | |||
| 95 | rm -f test.d | ||
| 96 | |||
| 97 | @@ -796,7 +802,7 @@ | ||
| 98 | checkstat 'cache hit (direct)' 0 | ||
| 99 | checkstat 'cache hit (preprocessed)' 2 | ||
| 100 | checkstat 'cache miss' 1 | ||
| 101 | - checkfile test.d "test.o: test.c test1.h test3.h test2.h" | ||
| 102 | + checkfile test.d "$expected_d_content" | ||
| 103 | |||
| 104 | rm -f test.d | ||
| 105 | |||
| 106 | @@ -804,7 +810,7 @@ | ||
| 107 | checkstat 'cache hit (direct)' 1 | ||
| 108 | checkstat 'cache hit (preprocessed)' 2 | ||
| 109 | checkstat 'cache miss' 1 | ||
| 110 | - checkfile test.d "test.o: test.c test1.h test3.h test2.h" | ||
| 111 | + checkfile test.d "$expected_d_content" | ||
| 112 | |||
| 113 | ################################################################## | ||
| 114 | # Check that -MF works. | ||
| 115 | @@ -815,7 +821,7 @@ | ||
| 116 | checkstat 'cache hit (direct)' 0 | ||
| 117 | checkstat 'cache hit (preprocessed)' 0 | ||
| 118 | checkstat 'cache miss' 1 | ||
| 119 | - checkfile other.d "test.o: test.c test1.h test3.h test2.h" | ||
| 120 | + checkfile other.d "$expected_d_content" | ||
| 121 | |||
| 122 | rm -f other.d | ||
| 123 | |||
| 124 | @@ -823,7 +829,7 @@ | ||
| 125 | checkstat 'cache hit (direct)' 1 | ||
| 126 | checkstat 'cache hit (preprocessed)' 0 | ||
| 127 | checkstat 'cache miss' 1 | ||
| 128 | - checkfile other.d "test.o: test.c test1.h test3.h test2.h" | ||
| 129 | + checkfile other.d "$expected_d_content" | ||
| 130 | |||
| 131 | ################################################################## | ||
| 132 | # Check that a missing .d file in the cache is handled correctly. | ||
| 133 | @@ -835,13 +841,13 @@ | ||
| 134 | checkstat 'cache hit (direct)' 0 | ||
| 135 | checkstat 'cache hit (preprocessed)' 0 | ||
| 136 | checkstat 'cache miss' 1 | ||
| 137 | - checkfile other.d "test.o: test.c test1.h test3.h test2.h" | ||
| 138 | + checkfile other.d "$expected_d_content" | ||
| 139 | |||
| 140 | $CCACHE $COMPILER -c -MD test.c | ||
| 141 | checkstat 'cache hit (direct)' 1 | ||
| 142 | checkstat 'cache hit (preprocessed)' 0 | ||
| 143 | checkstat 'cache miss' 1 | ||
| 144 | - checkfile other.d "test.o: test.c test1.h test3.h test2.h" | ||
| 145 | + checkfile other.d "$expected_d_content" | ||
| 146 | |||
| 147 | find $CCACHE_DIR -name '*.d' -exec rm -f '{}' \; | ||
| 148 | |||
| 149 | @@ -849,7 +855,7 @@ | ||
| 150 | checkstat 'cache hit (direct)' 1 | ||
| 151 | checkstat 'cache hit (preprocessed)' 1 | ||
| 152 | checkstat 'cache miss' 1 | ||
| 153 | - checkfile other.d "test.o: test.c test1.h test3.h test2.h" | ||
| 154 | + checkfile other.d "$expected_d_content" | ||
| 155 | |||
| 156 | ################################################################## | ||
| 157 | # Check that stderr from both the preprocessor and the compiler is emitted | ||
