On 2024/04/19 21:48, Solene Rapenne wrote: > On Fri, Apr 19, 2024 at 09:41:15PM GMT, Solene Rapenne wrote: > > On Fri, Apr 19, 2024 at 07:07:22AM GMT, Stuart Henderson wrote: > > > CVSROOT: /cvs > > > Module name: ports > > > Changes by: [email protected] 2024/04/19 07:07:22 > > > > > > Modified files: > > > textproc/py-docutils: Makefile distinfo > > > textproc/py-docutils/pkg: PLIST > > > > > > Log message: > > > update to py3-docutils-0.21.1 > > > > > > > fail to build on amd64 > > > > >>> Running build in textproc/py-docutils,python3 at 1713555354.66 > > ===> textproc/py-docutils,python3 > > ===> Checking files for py3-docutils-0.21.1 > > `/data/distfiles/docutils-0.21.1.tar.gz' is up to date. > > >> (SHA256) docutils-0.21.1.tar.gz: OK > > ===> Extracting for py3-docutils-0.21.1 > > ===> Patching for py3-docutils-0.21.1 > > ===> Compiler link: clang -> env CCACHE_DIR=/tmp/pobj/.ccache ccache > > /usr/bin/clang > > ===> Compiler link: clang++ -> env CCACHE_DIR=/tmp/pobj/.ccache ccache > > /usr/bin/clang++ > > ===> Compiler link: cc -> env CCACHE_DIR=/tmp/pobj/.ccache ccache > > /usr/bin/cc > > ===> Compiler link: c++ -> env CCACHE_DIR=/tmp/pobj/.ccache ccache > > /usr/bin/c++ > > ===> Generating configure for py3-docutils-0.21.1 > > ===> Configuring for py3-docutils-0.21.1 > > ===> Building for py3-docutils-0.21.1 > > * Getting build dependencies for wheel... > > > > Traceback (most recent call last): > > File "/usr/local/lib/python3.10/site-packages/pyproject_hooks/_impl.py", > > line 321, in _call_hook > > raise BackendUnavailable(data.get('traceback', '')) > > pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last): > > File > > "/usr/local/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", > > line 77, in _build_backend > > obj = import_module(mod_path) > > File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in > > import_module > > return _bootstrap._gcd_import(name[level:], package, level) > > File "<frozen importlib._bootstrap>", line 1050, in _gcd_import > > File "<frozen importlib._bootstrap>", line 1027, in _find_and_load > > File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked > > File "<frozen importlib._bootstrap>", line 241, in > > _call_with_frames_removed > > File "<frozen importlib._bootstrap>", line 1050, in _gcd_import > > File "<frozen importlib._bootstrap>", line 1027, in _find_and_load > > File "<frozen importlib._bootstrap>", line 1004, in > > _find_and_load_unlocked > > ModuleNotFoundError: No module named 'flit_core' > > > > ERROR Backend 'flit_core.buildapi' is not available. > > *** Error 1 in textproc/py-docutils > > (/data/ports/lang/python/python.port.mk:370 'do-build': @: ; if [ -e > > /tmp/pobj/py-docutils-0.21.1-python...) > > *** Error 2 in textproc/py-docutils > > (/data/ports/infrastructure/mk/bsd.port.mk:3057 > > '/tmp/pobj/py-docutils-0.21.1-python3/.build_done': @cd ...) > > *** Error 2 in textproc/py-docutils > > (/data/ports/infrastructure/mk/bsd.port.mk:2704 'build': > > @lock=py3-docutils-0.21.1; export _LOCKS_HELD=...) > > ===> Exiting textproc/py-docutils,python3 with an error > > > > this diff seems to work for me > > ok? > > diff --git a/textproc/py-docutils/Makefile b/textproc/py-docutils/Makefile > index 300c8d4caf4..dca2c5b5e80 100644 > --- a/textproc/py-docutils/Makefile > +++ b/textproc/py-docutils/Makefile > @@ -4,6 +4,7 @@ MODPY_EGG_VERSION= 0.21.1 > DISTNAME= docutils-${MODPY_EGG_VERSION} > PKGNAME= py-${DISTNAME} > CATEGORIES= textproc > +REVISION= 0 > > HOMEPAGE= https://docutils.sourceforge.io/ > > @@ -15,6 +16,8 @@ MODULES= lang/python > MODPY_PI= Yes > MODPY_PYBUILD= setuptools > > +BUILD_DEPENDS= devel/py-flit_core${MODPY_FLAVOR} > + > RUN_DEPENDS= textproc/py-pygments${MODPY_FLAVOR} > > FLAVORS= python3 >
Thanks, I've fixed it this way: -MODPY_PYBUILD= setuptools +MODPY_PYBUILD= flit_core
