From ce56476566e14b4d21c3ce07de83308f6433ecc7 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 2 Feb 2019 23:39:40 +0000 Subject: dev-util/ccache: disable size cleanup test, bug #649440 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disable "Forced cache cleanup, size limit" test as it relies on stable block size of filesystem where tests are performed. Assumption does not hold true for ecryptfs and btrfs. Disable test. Reported-by: Michał Górny Closes: https://bugs.gentoo.org/649440 Package-Manager: Portage-2.3.59, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich --- dev-util/ccache/ccache-3.6.ebuild | 1 + .../files/ccache-3.6-disable-sized-cleanup.patch | 25 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 dev-util/ccache/files/ccache-3.6-disable-sized-cleanup.patch (limited to 'dev-util/ccache') diff --git a/dev-util/ccache/ccache-3.6.ebuild b/dev-util/ccache/ccache-3.6.ebuild index 105a8bada3e6..c5335c505f37 100644 --- a/dev-util/ccache/ccache-3.6.ebuild +++ b/dev-util/ccache/ccache-3.6.ebuild @@ -23,6 +23,7 @@ RDEPEND="${DEPEND} PATCHES=( "${FILESDIR}"/${PN}-3.4-size-on-disk.patch #456178 "${FILESDIR}"/${PN}-3.5-nvcc-test.patch + "${FILESDIR}"/${PN}-3.6-disable-sized-cleanup.patch #649440 ) src_prepare() { 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 new file mode 100644 index 000000000000..2b12542d26f7 --- /dev/null +++ b/dev-util/ccache/files/ccache-3.6-disable-sized-cleanup.patch @@ -0,0 +1,25 @@ +https://bugs.gentoo.org/649440 + +Disable cleanup based on free filesystem size. + +--- a/test/suites/cleanup.bash ++++ b/test/suites/cleanup.bash +@@ -75,6 +75,9 @@ SUITE_cleanup() { + done + + # ------------------------------------------------------------------------- ++# Disable test in Gentoo as we don't control temporary filesystem: ++# https://bugs.gentoo.org/649440 ++if false; then + TEST "Forced cache cleanup, size limit" + + # NOTE: This test is known to fail on filesystems that have unusual block +@@ -101,7 +104,7 @@ SUITE_cleanup() { + file=$CCACHE_DIR/a/result$i-4017.o + expect_file_exists $file + done +- ++fi + # ------------------------------------------------------------------------- + TEST "Automatic cache cleanup, limit_multiple 0.9" + -- cgit v1.2.3-65-gdbad