* Package: dev-lang/ghc-9.0.2-r3:0/9.0.2 * Repository: gentoo * Maintainer: haskell@gentoo.org * USE: abi_x86_64 amd64 binary doc elfutils elibc_glibc ghcmakebinary gmp kernel_linux numa unregisterised userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Checking for at least 4 GiB disk space at "/var/tmp/portage/dev-lang/ghc-9.0.2-r3/temp" ... [ ok ] * Checking for at least 2 GiB disk space at "/usr" ... [ ok ] >>> Unpacking source... >>> Unpacking ghc-9.0.2-riscv64-llvm.patch.xz to /var/tmp/portage/dev-lang/ghc-9.0.2-r3/work >>> Unpacking ghc-bin-9.0.2-x86_64-pc-linux-gnu-r1.tbz2 to /var/tmp/portage/dev-lang/ghc-9.0.2-r3/work >>> Source unpacked in /var/tmp/portage/dev-lang/ghc-9.0.2-r3/work >>> Preparing source in /var/tmp/portage/dev-lang/ghc-9.0.2-r3/work/ghc-9.0.2 ... * Applying ghc-9.0.2-sphinx-6.patch ... can't find file to patch at input line 31 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |https://bugs.gentoo.org/890563 |https://gitlab.haskell.org/ghc/ghc/-/commit/00dc51060881df81258ba3b3bdf447294618a4de |https://gitlab.haskell.org/ghc/ghc/-/issues/22690 | |From 00dc51060881df81258ba3b3bdf447294618a4de Mon Sep 17 00:00:00 2001 |From: Matthew Pickering |Date: Tue, 3 Jan 2023 15:56:37 +0000 |Subject: [PATCH] sphinx: Use modern syntax for extlinks | |This fixes the following build error: | |``` | Command line: /opt/homebrew/opt/sphinx-doc/bin/sphinx-build -b man -d /private/tmp/extra-dir-55768274273/.doctrees-man -n -w /private/tmp/extra-dir-55768274273/.log docs/users_guide /private/tmp/extra-dir-55768274273 | ===> Command failed with error code: 2 | | Exception occurred: | File "/opt/homebrew/Cellar/sphinx-doc/6.0.0/libexec/lib/python3.11/site-packages/sphinx/ext/extlinks.py", line 101, in role | title = caption % part | ~~~~~~~~^~~~~~ | TypeError: not all arguments converted during string formatting |``` | |I tested on Sphinx-5.1.1 and Sphinx-6.0.0 | |Thanks for sterni for providing instructions about how to test using |sphinx-6.0.0. | |Fixes #22690 |--- a/docs/users_guide/ghc_config.py.in |+++ b/docs/users_guide/ghc_config.py.in -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored [ !! ] * ERROR: dev-lang/ghc-9.0.2-r3::gentoo failed (prepare phase): * patch -p1 failed with /var/tmp/portage/dev-lang/ghc-9.0.2-r3/files/ghc-9.0.2-sphinx-6.patch * * Call stack: * ebuild.sh, line 136: Called src_prepare * environment, line 4240: Called eapply '/var/tmp/portage/dev-lang/ghc-9.0.2-r3/files/ghc-9.0.2-sphinx-6.patch' * environment, line 1947: Called _eapply_patch '/var/tmp/portage/dev-lang/ghc-9.0.2-r3/files/ghc-9.0.2-sphinx-6.patch' * environment, line 1885: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/dev-lang/ghc-9.0.2-r3/files/ghc-9.0.2-sphinx-6.patch' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=dev-lang/ghc-9.0.2-r3::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/ghc-9.0.2-r3::gentoo'`. * The complete build log is located at '/var/log/portage/dev-lang:ghc-9.0.2-r3:20230216-131607.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lang/ghc-9.0.2-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ghc-9.0.2-r3/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/ghc-9.0.2-r3/work/ghc-9.0.2' * S: '/var/tmp/portage/dev-lang/ghc-9.0.2-r3/work/ghc-9.0.2'