On Thu, Jan 16, 2020 at 08:59:31AM -0500, Kurt Mosiejczuk wrote:
> On Thu, Jan 16, 2020 at 08:37:56AM -0500, Kurt Mosiejczuk wrote:
> > On Thu, Jan 16, 2020 at 01:26:07PM +0000, Stuart Henderson wrote:
> 
> > > No sparc64 to test here but this sort of failure usually is reproducible.
> > > As this is currently built with base-gcc on sparc64, switching to 
> > > ports-gcc
> > > is probably the sanest first step.
> 
> > > COMPILER=       base-clang ports-gcc
> 
> OK. Just this change makes it finish compiling fairly quickly on my test
> machine. I ran it again just to be sure because it went through so
> quickly.

Thanks. While there I'd refine tests a bit more.
With the diff below:

Ran 6355 tests in 1580.823s                                                     
FAILED (errors=2, skipped=13)

The REVISION bump might not be strictly necessary but should I include it
anyway?

-m



Index: Makefile
===================================================================
RCS file: /cvs/ports/math/py-tables/Makefile,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 Makefile
--- Makefile    10 Jan 2020 13:30:41 -0000      1.1
+++ Makefile    18 Jan 2020 18:10:11 -0000
@@ -6,6 +6,7 @@ MODPY_EGG_VERSION=      3.6.1
 DISTNAME=              tables-${MODPY_EGG_VERSION}
 PKGNAME=               py-${DISTNAME}
 CATEGORIES=            math
+REVISION=              0
 
 HOMEPAGE=              https://www.pytables.org/
 MAINTAINER=            Martin Reindl <mar...@catai.org>
@@ -13,12 +14,13 @@ MAINTAINER=         Martin Reindl <martin@catai
 # BSD
 PERMIT_PACKAGE=        Yes
 
+COMPILER=              base-clang ports-gcc
+
 MODULES=               lang/python
 MODPY_SETUPTOOLS=      Yes
 MODPY_PI=              Yes
 MODPY_VERSION=         ${MODPY_DEFAULT_VERSION_3}
 MODPY_PYTEST=          Yes
-MODPY_PYTEST_ARGS=     ${TESTLIBDIR}
 
 WANTLIB=       pthread ${MODPY_WANTLIB} blosc bz2 hdf5 lzo2
 
@@ -42,8 +44,8 @@ TEST_DEPENDS= devel/py-coveralls${MODPY_
                devel/py-test-cov${MODPY_FLAVOR} \
                math/py-numexpr${MODPY_FLAVOR}
 
-TESTLIBDIR=    ${WRKSRC}/lib.openbsd-${OSREV}-${ARCH}-${MODPY_VERSION}/tables/
-
-TEST_ENV=      PYTHONPATH=${WRKSRC}/${TESTLIBDIR}
+do-test: fake
+       cd ${WRKDIR} && ${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} 
${MODPY_BIN} -c \
+               'import tables ; tables.test()'
 
 .include <bsd.port.mk>

Reply via email to