1 |
commit: ce56476566e14b4d21c3ce07de83308f6433ecc7 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 2 23:39:40 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 2 23:40:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce564765 |
7 |
|
8 |
dev-util/ccache: disable size cleanup test, bug #649440 |
9 |
|
10 |
Disable "Forced cache cleanup, size limit" test as it |
11 |
relies on stable block size of filesystem where tests |
12 |
are performed. Assumption does not hold true for ecryptfs |
13 |
and btrfs. Disable test. |
14 |
|
15 |
Reported-by: Michał Górny |
16 |
Closes: https://bugs.gentoo.org/649440 |
17 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
18 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
19 |
|
20 |
dev-util/ccache/ccache-3.6.ebuild | 1 + |
21 |
.../files/ccache-3.6-disable-sized-cleanup.patch | 25 ++++++++++++++++++++++ |
22 |
2 files changed, 26 insertions(+) |
23 |
|
24 |
diff --git a/dev-util/ccache/ccache-3.6.ebuild b/dev-util/ccache/ccache-3.6.ebuild |
25 |
index 105a8bada3e..c5335c505f3 100644 |
26 |
--- a/dev-util/ccache/ccache-3.6.ebuild |
27 |
+++ b/dev-util/ccache/ccache-3.6.ebuild |
28 |
@@ -23,6 +23,7 @@ RDEPEND="${DEPEND} |
29 |
PATCHES=( |
30 |
"${FILESDIR}"/${PN}-3.4-size-on-disk.patch #456178 |
31 |
"${FILESDIR}"/${PN}-3.5-nvcc-test.patch |
32 |
+ "${FILESDIR}"/${PN}-3.6-disable-sized-cleanup.patch #649440 |
33 |
) |
34 |
|
35 |
src_prepare() { |
36 |
|
37 |
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 |
38 |
new file mode 100644 |
39 |
index 00000000000..2b12542d26f |
40 |
--- /dev/null |
41 |
+++ b/dev-util/ccache/files/ccache-3.6-disable-sized-cleanup.patch |
42 |
@@ -0,0 +1,25 @@ |
43 |
+https://bugs.gentoo.org/649440 |
44 |
+ |
45 |
+Disable cleanup based on free filesystem size. |
46 |
+ |
47 |
+--- a/test/suites/cleanup.bash |
48 |
++++ b/test/suites/cleanup.bash |
49 |
+@@ -75,6 +75,9 @@ SUITE_cleanup() { |
50 |
+ done |
51 |
+ |
52 |
+ # ------------------------------------------------------------------------- |
53 |
++# Disable test in Gentoo as we don't control temporary filesystem: |
54 |
++# https://bugs.gentoo.org/649440 |
55 |
++if false; then |
56 |
+ TEST "Forced cache cleanup, size limit" |
57 |
+ |
58 |
+ # NOTE: This test is known to fail on filesystems that have unusual block |
59 |
+@@ -101,7 +104,7 @@ SUITE_cleanup() { |
60 |
+ file=$CCACHE_DIR/a/result$i-4017.o |
61 |
+ expect_file_exists $file |
62 |
+ done |
63 |
+- |
64 |
++fi |
65 |
+ # ------------------------------------------------------------------------- |
66 |
+ TEST "Automatic cache cleanup, limit_multiple 0.9" |
67 |
+ |