Extension error: Could not import extension taglist (exception: cannot import name NoUri) ninja: build stopped: subcommand failed. * ERROR: dev-libs/libbson-1.15.1::gentoo failed (compile phase): * ninja -v -j1 -l0 failed * ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome-libressl-20200404-193608 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.3.0 * clang version 10.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-bin-1.42.0 [2] rust-1.42.0 * The following VMs are available for generation-2: *) IcedTea JDK 3.15.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.0.2 timestamp of HEAD at this tinderbox image: /var/db/repos/gentoo Wed 08 Apr 2020 11:37:58 PM UTC /var/db/repos/libressl Fri 03 Apr 2020 07:10:10 PM UTC emerge -qpvO dev-libs/libbson [ebuild N ] dev-libs/libbson-1.15.1 USE="-examples -static-libs"
Created attachment 631510 [details] emerge-info.txt
Created attachment 631512 [details] dev-libs:libbson-1.15.1:20200409-004220.log
Created attachment 631514 [details] emerge-history.txt
Created attachment 631516 [details] environment
Created attachment 631518 [details] etc.portage.tbz2
Created attachment 631520 [details] logs.tbz2
Created attachment 631522 [details] temp.tbz2
Same error and build log for =dev-libs/libbson-1.16.2
I think this is because recent sphinx does not have environment.NoUri: $ equery l sphinx * Searching for sphinx ... [IP-] [ ] dev-python/sphinx-2.0.1-r1:0 $ python3 Python 3.6.10 (default, Jan 15 2020, 22:54:37) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from sphinx.environment import NoUri >>> Vs: $ equery l sphinx * Searching for sphinx ... [IP-] [ ] dev-python/sphinx-3.0.1:0 $ python3 Python 3.6.10 (default, Apr 9 2020, 11:29:16) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from sphinx.environment import NoUri Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'NoUri' >>> According to /usr/share/doc/sphinx-3.0.1/CHANGES.bz2, sphinx.environment.NoUri is deprecated; it is now at sphinx.errors.NoUri. A simple patch to build/sphinx/taglist.py allows the build to succeed; I will attach it.
Created attachment 633780 [details, diff] Fix dev-libs/libbson build with recent dev-python/sphinx
Note also, it seems that dev-libs/mongo-c-driver needs the exact same patch (really the same, it builds from the same source tree as dev-ibs/libbson).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09f8e9f297b0ab0451db26d4cc52caee06cfee46 commit 09f8e9f297b0ab0451db26d4cc52caee06cfee46 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-04-21 17:26:26 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-04-21 17:26:35 +0000 dev-libs/mongo-c-driver: fix building against >=sphinx-3 Closes: https://bugs.gentoo.org/716774 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> .../files/mongo-c-driver-1.16.2-sphinx.patch | 19 +++++++++++++++++++ dev-libs/mongo-c-driver/mongo-c-driver-1.16.2.ebuild | 1 + 2 files changed, 20 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee4d32392fd1c0b32eef9c0b6d72baaadfa0de08 commit ee4d32392fd1c0b32eef9c0b6d72baaadfa0de08 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-04-21 17:23:18 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-04-21 17:26:34 +0000 dev-libs/libbson: fix building against >=sphinx-3 Closes: https://bugs.gentoo.org/716774 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> dev-libs/libbson/files/libbson-1.16.2-sphinx.patch | 19 +++++++++++++++++++ dev-libs/libbson/libbson-1.16.2.ebuild | 1 + 2 files changed, 20 insertions(+)