Hello,

I am attempting to update the Port mentioned in the Subject[1], however,
am running into the following build issue:
===========================================================================
=>> Recording filesystem state for prestage... done
=======================<phase: stage         
>============================
===== env: DEVELOPER_MODE=yes STRICT_DEPENDS=yes USER=root UID=0 GID=0
===>  Staging for py39-pysnmp-5.0.28
===>   py39-pysnmp-5.0.28 depends on package: py39-pyasn1>0 - found
===>   py39-pysnmp-5.0.28 depends on package: py39-pycryptodomex>0 -
found
===>   py39-pysnmp-5.0.28 depends on package: py39-pysmi>0 - found
===>   py39-pysnmp-5.0.28 depends on file: /usr/local/bin/python3.9 -
found
===>   Generating temporary packing list
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/runpy.py", line 197, in
_run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.9/site-packages/installer/__main__.py",
line 98, in <module>
    _main(sys.argv[1:], "python -m installer")
  File "/usr/local/lib/python3.9/site-packages/installer/__main__.py",
line 86, in _main
    with WheelFile.open(args.wheel) as source:
  File "/usr/local/lib/python3.9/contextlib.py", line 119, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.9/site-packages/installer/sources.py",
line 162, in open
    with zipfile.ZipFile(path) as f:
  File "/usr/local/lib/python3.9/zipfile.py", line 1248, in __init__
    self.fp = io.open(file, filemode)
FileNotFoundError: [Errno 2] No such file or directory:
'/wrkdirs/usr/ports/net-mgmt/py-pysnmp/work-py39/pysnmp_lextudio-5.0.28/dist/pysnmp-5.0.28*.whl'
*** Error code 1

Stop.
make: stopped in /usr/ports/net-mgmt/py-pysnmp

That is an edited log from poudriere-testport. Attached is my Work In
Progress diff.

Contents of dist:
$ ls
/wrkdirs/usr/ports/net-mgmt/py-pysnmp/work-py39/pysnmp_lextudio-5.0.28/dist
pysnmp_lextudio-5.0.28-py3-none-any.whl

So, a .whl file exists, and has name similar to the DISTNAME set in the
attached diff. I have set the DISTNAME based on advice from John[1],
this is how I managed to get the Port to fetch from PYPI. How is this
meant to be handled? Is renaming the .whl OK?

1: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262906

To health and anarchy,
Alastair
diff --git a/net-mgmt/py-pysnmp/Makefile b/net-mgmt/py-pysnmp/Makefile
index 1aabe539c569..19998f180d8f 100644
--- a/net-mgmt/py-pysnmp/Makefile
+++ b/net-mgmt/py-pysnmp/Makefile
@@ -1,23 +1,25 @@
 PORTNAME=	pysnmp
-PORTVERSION=	4.4.9
-PORTREVISION=	2
+DISTVERSION=	5.0.28
 CATEGORIES=	net-mgmt python
 MASTER_SITES=	PYPI \
 		SF/pysnmp/pysnmp/${PORTVERSION}
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME}_lextudio-${PORTVERSION}
 
 MAINTAINER=	mhja...@swbell.net
 COMMENT=	SNMP framework for Python
-WWW=		https://github.com/etingof/pysnmp
+WWW=		https://github.com/lextudio/pysnmp
 
 LICENSE=	BSD2CLAUSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyasn1>=0.2.3:devel/py-pyasn1@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pycryptodomex>=0:security/py-pycryptodomex@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pysmi>=0:net-mgmt/py-pysmi@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyasn1>0:devel/py-pyasn1@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pycryptodomex>0:security/py-pycryptodomex@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pysmi>0:net-mgmt/py-pysmi@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 

Reply via email to