1 |
commit: 408f613f8b0247b116ac41be7bb6f42767ab88bf |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed May 20 15:33:48 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 21 08:22:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=408f613f |
7 |
|
8 |
dev-util/ccache: remove unused patches |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
12 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
13 |
|
14 |
.../ccache/files/ccache-3.4-size-on-disk.patch | 22 ------------------ |
15 |
.../files/ccache-3.6-disable-sized-cleanup.patch | 26 ---------------------- |
16 |
2 files changed, 48 deletions(-) |
17 |
|
18 |
diff --git a/dev-util/ccache/files/ccache-3.4-size-on-disk.patch b/dev-util/ccache/files/ccache-3.4-size-on-disk.patch |
19 |
deleted file mode 100644 |
20 |
index a2f4a554cab..00000000000 |
21 |
--- a/dev-util/ccache/files/ccache-3.4-size-on-disk.patch |
22 |
+++ /dev/null |
23 |
@@ -1,22 +0,0 @@ |
24 |
-https://bugs.gentoo.org/456178 |
25 |
-https://github.com/ccache/ccache/issues/442 |
26 |
- |
27 |
-stick to the size of files on disk rather than their byte size. |
28 |
-this func is only used for stats management, so this should be safe. |
29 |
- |
30 |
---- a/src/util.c |
31 |
-+++ b/src/util.c |
32 |
-@@ -845,12 +845,7 @@ file_size(struct stat *st) |
33 |
- #ifdef _WIN32 |
34 |
- return (st->st_size + 1023) & ~1023; |
35 |
- #else |
36 |
-- size_t size = st->st_blocks * 512; |
37 |
-- if ((size_t)st->st_size > size) { |
38 |
-- // Probably a broken stat() call... |
39 |
-- size = (st->st_size + 1023) & ~1023; |
40 |
-- } |
41 |
-- return size; |
42 |
-+ return st->st_blocks * 512; |
43 |
- #endif |
44 |
- } |
45 |
- |
46 |
|
47 |
diff --git a/dev-util/ccache/files/ccache-3.6-disable-sized-cleanup.patch b/dev-util/ccache/files/ccache-3.6-disable-sized-cleanup.patch |
48 |
deleted file mode 100644 |
49 |
index dcb5cf1f497..00000000000 |
50 |
--- a/dev-util/ccache/files/ccache-3.6-disable-sized-cleanup.patch |
51 |
+++ /dev/null |
52 |
@@ -1,26 +0,0 @@ |
53 |
-https://bugs.gentoo.org/649440 |
54 |
-https://github.com/ccache/ccache/issues/442 |
55 |
- |
56 |
-Disable cleanup based on free filesystem size. |
57 |
- |
58 |
---- a/test/suites/cleanup.bash |
59 |
-+++ b/test/suites/cleanup.bash |
60 |
-@@ -75,6 +75,9 @@ SUITE_cleanup() { |
61 |
- done |
62 |
- |
63 |
- # ------------------------------------------------------------------------- |
64 |
-+# Disable test in Gentoo as we don't control temporary filesystem: |
65 |
-+# https://bugs.gentoo.org/649440 |
66 |
-+if false; then |
67 |
- TEST "Forced cache cleanup, size limit" |
68 |
- |
69 |
- # NOTE: This test is known to fail on filesystems that have unusual block |
70 |
-@@ -101,7 +104,7 @@ SUITE_cleanup() { |
71 |
- file=$CCACHE_DIR/a/result$i-4017.o |
72 |
- expect_file_exists $file |
73 |
- done |
74 |
-- |
75 |
-+fi |
76 |
- # ------------------------------------------------------------------------- |
77 |
- TEST "Automatic cache cleanup, limit_multiple 0.9" |
78 |
- |