Bug 258435 - devel/cmake fails to build with poudriere amd64 stable/13
Summary: devel/cmake fails to build with poudriere amd64 stable/13
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-kde (Team)
Depends on:
Reported: 2021-09-11 15:34 UTC by Robert Cina
Modified: 2021-09-11 22:55 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (kde)

devel/cmake build log with build error (233.82 KB, text/plain)
2021-09-11 15:34 UTC, Robert Cina
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cina 2021-09-11 15:34:30 UTC
Created attachment 227837 [details]
devel/cmake build log with build error

The build of the port devel/cmake failed to build using poudriere on my 13-stable amd64 freeBSD system.

The following is the error from the build log:

[ 54%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmExecuteProcessCommand.cxx.o
[ 55%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmExpandedCommandArgument.cxx.o
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 568, in _build_master
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (MarkupSafe 1.1.1 (/usr/local/lib/python3.8/site-packages), Requirement.parse('MarkupSafe>=2.0.0rc2'), {'Jinja2'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/sphinx-build", line 33, in <module>
    sys.exit(load_entry_point('Sphinx==3.5.2', 'console_scripts', 'sphinx-build')())
  File "/usr/local/bin/sphinx-build", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/local/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.8/site-packages/sphinx/cmd/build.py", line 25, in <module>
    from sphinx.application import Sphinx
  File "/usr/local/lib/python3.8/site-packages/sphinx/application.py", line 43, in <module>
    from sphinx.registry import SphinxComponentRegistry
  File "/usr/local/lib/python3.8/site-packages/sphinx/registry.py", line 22, in <module>
    from pkg_resources import iter_entry_points
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'MarkupSafe>=2.0.0rc2' distribution was not found and is required by Jinja2
[ 55%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmExportCommand.cxx.o
[ 55%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmExportLibraryDependenciesCommand.cxx.o
[ 55%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmFLTKWrapUICommand.cxx.o
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmFileCommand.cxx.o
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmFindBase.cxx.o
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmFindCommon.cxx.o
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmFindFileCommand.cxx.o
[ 57%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmFindLibraryCommand.cxx.o
[ 57%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmFindPackageCommand.cxx.o
[ 57%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmFindPathCommand.cxx.o
[ 57%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmFindProgramCommand.cxx.o
[ 57%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmForEachCommand.cxx.o
[ 58%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmFunctionBlocker.cxx.o
[ 58%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmFunctionCommand.cxx.o
[ 58%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGetDirectoryPropertyCommand.cxx.o
[ 58%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGetCMakePropertyCommand.cxx.o
[ 59%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGetFilenameComponentCommand.cxx.o
[ 59%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGetPropertyCommand.cxx.o
[ 59%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGetSourceFilePropertyCommand.cxx.o
[ 59%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGetTargetPropertyCommand.cxx.o
[ 59%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGetTestPropertyCommand.cxx.o
[ 60%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmIfCommand.cxx.o
[ 61%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmIncludeExternalMSProjectCommand.cxx.o
[ 60%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmIncludeCommand.cxx.o
[ 60%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmHexFileConverter.cxx.o
[ 60%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmIncludeDirectoryCommand.cxx.o
[ 61%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmIncludeGuardCommand.cxx.o
[ 61%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmIncludeRegularExpressionCommand.cxx.o
--- Utilities/Sphinx/doc_format_man ---
*** [Utilities/Sphinx/doc_format_man] Error code 1

make[3]: stopped in /wrkdirs/usr/ports/devel/cmake/work/cmake-3.21.0
1 error

make[3]: stopped in /wrkdirs/usr/ports/devel/cmake/work/cmake-3.21.0
--- Utilities/Sphinx/CMakeFiles/documentation.dir/all ---
*** [Utilities/Sphinx/CMakeFiles/documentation.dir/all] Error code 2

make[2]: stopped in /wrkdirs/usr/ports/devel/cmake/work/cmake-3.21.0
--- Source/CMakeFiles/CMakeLib.dir/all ---
*** [Source/CMakeFiles/CMakeLib.dir/all] Error code 6

make[2]: stopped in /wrkdirs/usr/ports/devel/cmake/work/cmake-3.21.0
2 errors

make[2]: stopped in /wrkdirs/usr/ports/devel/cmake/work/cmake-3.21.0
*** [all] Error code 2

make[1]: stopped in /wrkdirs/usr/ports/devel/cmake/work/cmake-3.21.0
1 error

make[1]: stopped in /wrkdirs/usr/ports/devel/cmake/work/cmake-3.21.0
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Comment 1 Adriaan de Groot freebsd_committer 2021-09-11 20:10:04 UTC
Hi! Thanks for the report. It isn't *actually* a CMake problem, but another part of the ports tree that has been updated:

- jinja2 has been updated to 3.0
- it requires MarkupSafe 2.0
- the ports tree offers MarkupSafe 1.1
- ports that use jinja2 -- like CMake, which uses it through Sphinx to build documentation -- now fall over.

So I'm not sure what to do with this particular PR: it's not a CMake-source-code or -build problem, and will go away by itself when that distant dependency is fixed.
Comment 2 commit-hook freebsd_committer 2021-09-11 20:13:11 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=67b637822a5602e343d3701f628f6a181ae4ce21

commit 67b637822a5602e343d3701f628f6a181ae4ce21
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2021-09-11 20:08:13 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2021-09-11 20:12:05 +0000

    textproc/py-markupsafe: Update to 2.0.1

    PR:             255926, 258435
    Reported by:    vidwer+fbsdbugs@gmail.com, cmt, adridg

 textproc/py-markupsafe/Makefile | 5 ++---
 textproc/py-markupsafe/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 6 deletions(-)
Comment 3 Robert Cina 2021-09-11 20:44:13 UTC
Thanks the port compiles for me now.
Comment 4 Adriaan de Groot freebsd_committer 2021-09-11 22:55:10 UTC
Resolved by Kevin Bowling.