Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2017 10:01:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 221116] textproc/py-sphinx: Port causes HTML document build failure
Message-ID:  <bug-221116-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221116

            Bug ID: 221116
           Summary: textproc/py-sphinx: Port causes HTML document build
                    failure
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kmoore@FreeBSD.org
          Reporter: pgj@FreeBSD.org
             Flags: maintainer-feedback?(kmoore@FreeBSD.org)
          Assignee: kmoore@FreeBSD.org

Created attachment 184865
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D184865&action=
=3Dedit
A patch file for the textproc/py-sphinx port that would fix the problem

When building the Glasgow Haskell Compiler version 8.x that now uses Sphinx=
 to
generate its HTML documentation, the following error is got:

~~~~~
[output trimmed to show the end of the build log]
writing output... [ 40%] gone_wrong
writing output... [ 42%] index
writing output... [ 45%] intro
writing output... [ 48%] lang
writing output... [ 51%] license
writing output... [ 54%] packages
/tmp/ghc-8.0.2/docs/users_guide/packages.rst:839: WARNING: Could not lex
literal_block as "haskell". Highlighting skipped.
writing output... [ 57%] parallel
writing output... [ 60%] phases
writing output... [ 62%] profiling

Exception occurred:
  File "/usr/local/lib/python2.7/site-packages/docutils/writers/_html_base.=
py",
line 671, in depart_document
    assert not self.context, 'len(context) =3D %s' % len(self.context)
AssertionError: len(context) =3D 1
The full traceback has been saved in /tmp/ghc-8.0.2/tmp/sphinx-err-4JgATb.l=
og,
if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error mess=
age
can be provided next time.
A bug report can be filed in the tracker at
<https://github.com/sphinx-doc/sphinx/issues>. Thanks!
gmake[2]: *** [docs/users_guide/ghc.mk:18:
docs/users_guide/build-html/users_guide/index.html] Error 1
gmake[2]: *** Deleting file
'docs/users_guide/build-html/users_guide/index.html'
gmake[1]: *** [Makefile:134: all] Error 2
gmake[1]: Leaving directory '/tmp/ghc-8.0.2'
*** Error code 1
~~~~

Apparently that is due to some problems with the interaction between Sphinx=
 and
docutils 0.13.1, which was then reported and resolved as #3212 [1].=20
Unfortunately, the FreeBSD port does not have the fix for this problem, whi=
ch
could then break the planned update of the lang/ghc port to its version 8.0=
.2.

I am attaching a patch file that would bring the fix to this issue and make=
 the
build of lang/ghc possible.

[1] https://github.com/sphinx-doc/sphinx/issues/3212

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221116-13>