Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2021 18:00:51 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r561240 - head/archivers/py-zstandard
Message-ID:  <202101111800.10BI0p2Z069893@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Mon Jan 11 18:00:51 2021
New Revision: 561240
URL: https://svnweb.freebsd.org/changeset/ports/561240

Log:
  archivers/py-zstandard: Fix the run-time failure
  
  Their testsuite falsely succeeds when the installed package actually breaks.
  Reported to the upstream.
  
  Reported by:	amdmi3

Modified:
  head/archivers/py-zstandard/Makefile

Modified: head/archivers/py-zstandard/Makefile
==============================================================================
--- head/archivers/py-zstandard/Makefile	Mon Jan 11 17:54:42 2021	(r561239)
+++ head/archivers/py-zstandard/Makefile	Mon Jan 11 18:00:51 2021	(r561240)
@@ -2,6 +2,7 @@
 
 PORTNAME=	zstandard
 DISTVERSION=	0.15.1
+PORTREVISION=	1
 CATEGORIES=	archivers python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -19,9 +20,12 @@ LIB_DEPENDS=	libzstd.so:archivers/zstd
 
 USES=		localbase python:3.6+
 USE_PYTHON=	distutils autoplist
-PYDISTUTILS_BUILDARGS=	--system-zstd
+#PYDISTUTILS_BUILDARGS=	--system-zstd # breaks in runtime due to version mismatch, keep disabled until this is fixed: https://github.com/indygreg/python-zstandard/issues/132
 
 post-install:
 	@cd ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/zstandard && ${STRIP_CMD} backend_c.so _cffi.so
+
+do-test: # runs the internal testsuite, tests are unreliable or faulty: https://github.com/indygreg/python-zstandard/issues/133
+	@cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ${PYDISTUTILS_BUILDARGS} test
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101111800.10BI0p2Z069893>