[Bug 270887] devel/llvm15: llvm15 won't build if cmark is installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 16 Apr 2023 20:23:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270887

            Bug ID: 270887
           Summary: devel/llvm15: llvm15 won't build if cmark is installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks@FreeBSD.org
          Reporter: sjrbulk@verizon.net
          Assignee: brooks@FreeBSD.org
             Flags: maintainer-feedback?(brooks@FreeBSD.org)

If cmark is installed llvm15 (and probably all the others) will not correctly
build.

Previous attempted fixes in:
https://bugs.freebsd.org/239636
and
https://cgit.freebsd.org/ports/commit/?id=47c2b0aec1c3e92243d2d3677d4a0268475d6e0c

I notice that DOCS_CONFLICTS_BUILD is defined in llvm15/Makefile, but doesn't
seem to be used elsewhere, nor is it referenced in /usr/ports/Mk/*

Error message is:

<snip>
FAILED: tools/clang/docs/CMakeFiles/docs-clang-man
/usr/ports/devel/llvm15/work-default/.build/tools/clang/docs/CMakeFiles/docs-clang-man 
cd /usr/ports/devel/llvm15/work-default/.build/tools/clang/docs &&
/usr/local/bin/cmake -E make_directory
/usr/ports/devel/llvm15/work-default/.build/tools/clang/docs/man &&
/usr/local/bin/cmake -E env /usr/local/bin/sphinx-build-3.9 -b man -d
/usr/ports/devel/llvm15/work-default/.build/tools/clang/docs/_doctrees-clang-man
-q -t builder-man -D version=15 -D release=15.0.7
/usr/ports/devel/llvm15/work-default/llvm-project-15.0.7.src/clang/docs
/usr/ports/devel/llvm15/work-default/.build/tools/clang/docs/man

Exception occurred:
  File "/usr/local/lib/python3.9/site-packages/recommonmark/parser.py", line 9,
in <module>
    from commonmark import Parser
ModuleNotFoundError: No module named 'commonmark'
<snip>

I had the following ports installed (after attempted build):
cmark-0.30.2                   CommonMark parsing and rendering library and
program in C
py39-recommonmark-0.5.0_2      CommonMark bridge for docutils and Sphinx

(I deleted cmark, py39-recommonmark, and py39-CommonMark, and just installed
cmark before starting build)

Without cmark installed, builds correctly.

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