[Bug 282435] textproc/py-wtforms: Build broken

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 30 Oct 2024 23:05:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282435

            Bug ID: 282435
           Summary: textproc/py-wtforms: Build broken
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: rm@FreeBSD.org
          Reporter: romain@FreeBSD.org
          Assignee: rm@FreeBSD.org
             Flags: maintainer-feedback?(rm@FreeBSD.org)

Hey,

Trying to build some ports, I got hit by textproc/py-wtforms not building in
poudriere:

--------------------------- 8< ---------------------------
===>  Building for py311-wtforms-3.1.2_1
* Getting build dependencies for wheel...
* Building wheel...
Successfully built wtforms-3.1.2-py3-none-any.whl
(cd /wrkdirs/usr/ports/textproc/py-wtforms/work-py311/wtforms-3.1.2/docs && 
pip-3.11 install --ignore-installed --isolated  --no-deps
--root=/wrkdirs/usr/ports/textproc/py-wtforms/work-py311/wtforms-3.1.2
/wrkdirs/usr/ports/textproc/py-wtforms/work-py311/wtforms-3.1.2/dist/*.whl && 
/usr/bin/env
PYTHONPATH=":/wrkdirs/usr/ports/textproc/py-wtforms/work-py311/wtforms-3.1.2/usr/local/lib/python3.11/site-packages"
sphinx-build-3.11  -M man . _build/man)
Processing
/wrkdirs/usr/ports/textproc/py-wtforms/work-py311/wtforms-3.1.2/dist/wtforms-3.1.2-py3-none-any.whl
Installing collected packages: wtforms
Successfully installed wtforms-3.1.2
WARNING: Running pip as the 'root' user can result in broken permissions and
conflicting behaviour with the system package manager. It is recommended to use
a virtual environment instead: https://pip.pypa.io/warnings/venv
Running Sphinx v5.3.0

Extension error:
Could not import extension notfound.extension (exception: No module named
'notfound')
*** Error code 2

Stop.
make: stopped in /usr/ports/textproc/py-wtforms
=>> Cleaning up wrkdir
===>  Cleaning for py311-wtforms-3.1.2_1
build of textproc/py-wtforms@py311 | py311-wtforms-3.1.2_1 ended at Wed Oct 30
09:46:41 -10 2024
build time: 00:00:35
!!! build failure encountered !!!
--------------------------- 8< ---------------------------

There seems to be similar failures on pkg-fallout:

https://portsfallout.com/port/24435/


I tried to see what broke and how to fix this, but without success, so I am
filling-in this PR to share my findings, track progress an propose a workaround
for people hitting this.

The failing command is this pipeline:

--------------------------- 8< ---------------------------
(cd /wrkdirs/usr/ports/textproc/py-wtforms/work-py311/wtforms-3.1.2/docs && 
pip-3.11 install --ignore-installed --isolated  --no-deps
--root=/wrkdirs/usr/ports/textproc/py-wtforms/work-py311/wtforms-3.1.2
/wrkdirs/usr/ports/textproc/py-wtforms/work-py311/wtforms-3.1.2/dist/*.whl && 
/usr/bin/env
PYTHONPATH=":/wrkdirs/usr/ports/textproc/py-wtforms/work-py311/wtforms-3.1.2/usr/local/lib/python3.11/site-packages"
sphinx-build-3.11  -M man . _build/man)
--------------------------- 8< ---------------------------

and more precisely the last command of the pipeline:

--------------------------- 8< ---------------------------
/usr/bin/env
PYTHONPATH=":/wrkdirs/usr/ports/textproc/py-wtforms/work-py311/wtforms-3.1.2/usr/local/lib/python3.11/site-packages"
sphinx-build-3.11  -M man . _build/man
--------------------------- 8< ---------------------------

This is the part of the Makefile that build docs / man pages (two
build/post-build targets in the Makefile, one of them being dependent on the
DOCS option being set).

I don't see recent changes in the port itself, and did not find something
relevant in the sphinx dependency, but all this python stuff is quite alien for
me and I may have missed something :-).

To workaround the issue, I removed these "do-build" / "post-build" targets and
adjusted "PLIST_FILES" accordingly.  This allows to build a package without
docs/man pages which is fine for my use case to test updates to my ports that
depend on this one, but does not feel suitable for inclusion in the ports tree,
even as a workaround.  For this reason, I am not providing a patch.

Thank you for your help fixing the root cause of this issue!

-- 
You are receiving this mail because:
You are the assignee for the bug.