commit:     3da825677c3cbf7385055a047f2b2801f34fc31f
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 15 21:13:00 2018 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Oct 15 21:13:29 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3da82567

dev-util/ccache: disable nvcc tests

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-util/ccache/ccache-3.5.ebuild                |  1 +
 dev-util/ccache/files/ccache-3.5-nvcc-test.patch | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/dev-util/ccache/ccache-3.5.ebuild 
b/dev-util/ccache/ccache-3.5.ebuild
index ea736149c66..e2a525cad94 100644
--- a/dev-util/ccache/ccache-3.5.ebuild
+++ b/dev-util/ccache/ccache-3.5.ebuild
@@ -22,6 +22,7 @@ RDEPEND="${DEPEND}
 
 PATCHES=(
        "${FILESDIR}"/${PN}-3.4-size-on-disk.patch #456178
+       "${FILESDIR}"/${PN}-3.5-nvcc-test.patch
 )
 
 src_prepare() {

diff --git a/dev-util/ccache/files/ccache-3.5-nvcc-test.patch 
b/dev-util/ccache/files/ccache-3.5-nvcc-test.patch
new file mode 100644
index 00000000000..294b2243907
--- /dev/null
+++ b/dev-util/ccache/files/ccache-3.5-nvcc-test.patch
@@ -0,0 +1,11 @@
+Disable 'nvcc' tests to avoid test failure
+on system with gcc-7+ enabled by default.
+--- a/test/run
++++ b/test/run
+@@ -425,2 +425,6 @@ else
+ fi
++# Disable nvcc tests in Gentoo as nvcc requires gcc<7.
++# Not a default normally.
++REAL_NVCC=
++REAL_CUOBJDUMP=
+ echo

Reply via email to