commit:     ee4164ea823436d8d4ba9f9f3ee0ca517de4141e
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 15 13:34:01 2020 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Apr 15 13:49:45 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee4164ea

sci-mathematics/gfan: disable test that hangs on x86.

The "0602ResultantFanProjection" test hangs on x86, leading to a build
failure. Disabling this test looks as simple as deleting it from the
source tree, which the ebuild now does in src_prepare().

Bug: https://bugs.gentoo.org/717112
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-mathematics/gfan/gfan-0.6.2.ebuild | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sci-mathematics/gfan/gfan-0.6.2.ebuild 
b/sci-mathematics/gfan/gfan-0.6.2.ebuild
index eac7123f262..44e05155003 100644
--- a/sci-mathematics/gfan/gfan-0.6.2.ebuild
+++ b/sci-mathematics/gfan/gfan-0.6.2.ebuild
@@ -29,9 +29,20 @@ PATCHES=(
 
 pkg_setup() {
        tc-export CC CXX
+
+       # This should really go in cppflags, but that doesn't work with
+       # gfan's hand-written Makefile.
        append-cxxflags -DNOCDDPREFIX
 }
 
+src_prepare() {
+       default
+
+       # This test hangs on x86, bug 717112.
+       rm -r testsuite/0602ResultantFanProjection || \
+               die "unable to disable test 0602ResultantFanProjection"
+}
+
 src_configure() {
        # The upstream Makefile says that GCC produces bad code with -O3.
        replace-flags "-O3" "-O2"

Reply via email to