Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716774 - dev-libs/libbson-1.15.1 : ninja: build stopped: subcommand failed.
Summary: dev-libs/libbson-1.15.1 : ninja: build stopped: subcommand failed.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-09 07:16 UTC by Toralf Förster
Modified: 2020-04-21 17:26 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.50 KB, text/plain)
2020-04-09 07:16 UTC, Toralf Förster
Details
dev-libs:libbson-1.15.1:20200409-004220.log (dev-libs:libbson-1.15.1:20200409-004220.log,36.04 KB, text/plain)
2020-04-09 07:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,177.92 KB, text/plain)
2020-04-09 07:16 UTC, Toralf Förster
Details
environment (environment,90.39 KB, text/plain)
2020-04-09 07:16 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.58 KB, application/x-bzip)
2020-04-09 07:17 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.52 KB, application/x-bzip)
2020-04-09 07:17 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,25.55 KB, application/x-bzip)
2020-04-09 07:17 UTC, Toralf Förster
Details
Fix dev-libs/libbson build with recent dev-python/sphinx (sphinx_NoUri.patch,562 bytes, patch)
2020-04-20 02:50 UTC, Hank Leininger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-04-09 07:16:45 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2020-04-09 07:16:48 UTC
Created attachment 631510 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-09 07:16:52 UTC
Created attachment 631512 [details]
dev-libs:libbson-1.15.1:20200409-004220.log
Comment 3 Toralf Förster gentoo-dev 2020-04-09 07:16:55 UTC
Created attachment 631514 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-04-09 07:16:59 UTC
Created attachment 631516 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-04-09 07:17:02 UTC
Created attachment 631518 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-09 07:17:05 UTC
Created attachment 631520 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-04-09 07:17:08 UTC
Created attachment 631522 [details]
temp.tbz2
Comment 8 PhobosK 2020-04-12 13:56:56 UTC
Same error and build log for =dev-libs/libbson-1.16.2
Comment 9 Hank Leininger 2020-04-20 02:49:48 UTC
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.
Comment 10 Hank Leininger 2020-04-20 02:50:41 UTC
Created attachment 633780 [details, diff]
Fix dev-libs/libbson build with recent dev-python/sphinx
Comment 11 Hank Leininger 2020-04-20 03:06:43 UTC
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).
Comment 12 Larry the Git Cow gentoo-dev 2020-04-21 17:26:45 UTC
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(+)