cyrus-sasl-2.1.27 py38-sphinx-3.5.2,1 gmake[4]: Entering directory '/usr/ports/security/cyrus-sasl2/work/cyrus-sasl-2.1.27' test x"." = x"." || \ (cd . && tar cf - --mode=gu+w docsrc) | tar xf - /usr/local/bin/sphinx-build -d docsrc/.doctrees -n -q -b cyrman ./docsrc ./man Extension error: Could not import extension sphinxlocal.builders.manpage (exception: cannot import name 'NoUri' from 'sphinx.environment' (/usr/local/lib/python3.8/site-packages/sphinx/environment/__init__.py)) Seems to be known problem: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955095 https://bugs.launchpad.net/ubuntu/+source/cyrus-sasl2/+bug/1894907 https://aur.archlinux.org/pkgbase/cyrus-imapd/?O=0&PP=10 Ubuntu's bug says: cyrus-sasl2 ships with a sphinx extension to build its documentation, and this extension was based on a very old sphinx version. Not sure about proper way to address it but many packages depends now on this (as result of dependency from openldap) - like php*-ldap etc.
Created attachment 227250 [details] without sphinx build Thank you for your report. Unfortunately, I don't have python38 environment but have python39, for now. So, I tried to reproduce it with py39-sphinx-3.5.2,1 without any success. However, I found --with-sphinx-build option. Could you try the attached patch?
--with-sphinx-build=no fixed the build. I also digged a bit and because I could not reproduce the problem on other system: I found following piece in configure: if test -n "$SPHINX_BUILD" -a x"$have_ppvr" = xyes; then HAVE_SPHINX_BUILD_TRUE= HAVE_SPHINX_BUILD_FALSE='#' else HAVE_SPHINX_BUILD_TRUE='#' HAVE_SPHINX_BUILD_FALSE= fi and mysterious have_ppvr is check for perl package: Pod::POM::View::Restructured - which was installed on the system where build was failing. On the box without it the sphinx build was disabled (I removed the package (textproc/p5-Pod-POM-View-Restructured) to test this case and it helped. The package is build dependency for sysutils/parallel. Anyway - setting with-sphinx-build=no should do the job.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=9a7faada9222f97a8acdc61602fbf38017881dc6 commit 9a7faada9222f97a8acdc61602fbf38017881dc6 Author: Hajimu UMEMOTO <ume@FreeBSD.org> AuthorDate: 2021-08-22 12:05:07 +0000 Commit: Hajimu UMEMOTO <ume@FreeBSD.org> CommitDate: 2021-08-22 12:09:49 +0000 security/cyrus-sasl2: Disable sphinx build. PR: 257877 security/cyrus-sasl2/Makefile.common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks, committed.