[MacPorts] #66680: ghc: fails to build because of error in sphinx/ext/extlinks

MacPorts noreply at macports.org
Sat Jan 14 20:10:45 UTC 2023


#66680: ghc: fails to build because of error in sphinx/ext/extlinks
---------------------+-----------------------
  Reporter:  jowens  |      Owner:  essandess
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  ghc     |
---------------------+-----------------------

Comment (by kencu):

 yes, that patch from Josh does fix ghc:
 {{{
 % port -v installed ghc
 The following ports are currently installed:
   ghc @9.4.4_0 (active) requested_variants='' platform='darwin 22'
 archs='arm64' date='2023-01-14T11:32:47-0800'
 }}}

 but soon after, a similar issue arises with cabal, which will likely have
 a similar fix:

 {{{
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_cabal/cabal/work/dist/build/aarch64-osx/ghc-9.4.4
 /cabal-install-3.8.1.0/doc/html/cabal-install/index.html
 Configuring executable 'cabal' for cabal-install-3.8.1.0..
 Preprocessing executable 'cabal' for cabal-install-3.8.1.0..
 Building executable 'cabal' for cabal-install-3.8.1.0..
 [1 of 1] Compiling Main             ( main/Main.hs,
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_cabal/cabal/work/dist/build/aarch64-osx/ghc-9.4.4
 /cabal-install-3.8.1.0/x/cabal/build/cabal/cabal-tmp/Main.o )
 [2 of 2] Linking
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_cabal/cabal/work/dist/build/aarch64-osx/ghc-9.4.4
 /cabal-install-3.8.1.0/x/cabal/build/cabal/cabal
 Running Sphinx v6.1.3
 making output directory... done
 building [mo]: targets for 0 po files that are out of date
 writing output...
 building [html]: targets for 18 source files that are out of date
 updating environment: [new config] 18 added, 0 changed, 0 removed
 reading sources... [  5%] bugs-and-stability
 reading sources... [ 11%] buildinfo-fields-reference
 reading sources... [ 16%] cabal-commands
 reading sources... [ 22%] cabal-config-and-commands
 reading sources... [ 27%] cabal-package

 Exception occurred:
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
 /site-packages/sphinx/ext/extlinks.py", line 103, in role
     title = caption % part
 TypeError: not all arguments converted during string formatting
 The full traceback has been saved in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_cabal/cabal/work/.tmp
 /sphinx-err-r6b8uobb.log, 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
 message can be provided next time.
 A bug report can be filed in the tracker at <https://github.com/sphinx-
 doc/sphinx/issues>. Thanks!
 Command failed: sphinx-build-3.10 -n --keep-going -E doc
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_cabal/cabal/work/dist/doc
 /users-guide
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66680#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list