Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 759523 - sci-libs/gdal-3.2.0 USE=doc Extension error: Could not import extension breathe (exception: No module named 'breathe')
Summary: sci-libs/gdal-3.2.0 USE=doc Extension error: Could not import extension breat...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
Whiteboard: USE=doc is package.use.masked for now
Depends on: 752129
  Show dependency tree
Reported: 2020-12-11 21:17 UTC by Bernd
Modified: 2021-07-31 06:54 UTC (History)
3 users (show)

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

emerge-info-gdal-3.2.0.txt (emerge-info-gdal-3.2.0.txt,14.54 KB, text/plain)
2020-12-11 21:19 UTC, Bernd
gdal-3.2.0:20201211-195737.log.bz2 (gdal-3.2.0:20201211-195737.log.bz2,50.13 KB, application/octet-stream)
2020-12-11 21:20 UTC, Bernd

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2020-12-11 21:17:47 UTC
Updating to 3.2.0 with USE=doc enables fails with

touch .doxygen_up_to_date
python3 "source/" "source/drivers/raster" raster_driver_summary "source/drivers/raster/driver_summary.rst"
python3 "source/" "source/drivers/vector" vector_driver_summary "source/drivers/vector/driver_summary.rst"
python3 "source/"  "source" "source/user/configoptions_index_generated.rst"
sphinx-build -M html "source" "build" --keep-going -j auto -W 
Running Sphinx v2.4.4

Extension error:
Could not import extension breathe (exception: No module named 'breathe')
make[1]: *** [Makefile:35: html] Error 2
make[1]: Leaving directory '/var/tmp/portage/sci-libs/gdal-3.2.0/work/gdal-3.2.0/doc'
make: *** [GNUmakefile:173: docs] Error 2
 * ERROR: sci-libs/gdal-3.2.0::gentoo failed (compile phase):
 *   emake failed

Omitting the doc USE flag builds successfully.

Reproducible: Always

Steps to Reproduce:
1. USE=doc emerge =sci-libs/gdal-3.2.0

emerge --info and build.log as attachments
Comment 1 Bernd 2020-12-11 21:19:20 UTC
Created attachment 678040 [details]

emerge --info =sci-libs/gdal-3.2.0
Comment 2 Bernd 2020-12-11 21:20:11 UTC
Created attachment 678043 [details]

build log, compressed due to size
Comment 3 Larry the Git Cow gentoo-dev 2021-02-07 00:59:07 UTC
The bug has been referenced in the following commit(s):

commit 06c1a63abcc1fb35faeba4a11397193dc1073c84
Author:     Sam James <>
AuthorDate: 2021-02-07 00:58:28 +0000
Commit:     Sam James <>
CommitDate: 2021-02-07 00:59:04 +0000

    profiles/base/package.use.mask: mask sci-libs/gdal[doc]
    Missing doc dependencies which need to be added carefully
    using the right Python eclass primitives.
    Signed-off-by: Sam James <>

 profiles/base/package.use.mask | 7 +++++++
 1 file changed, 7 insertions(+)
Comment 4 Alessandro Barbieri 2021-07-31 06:54:41 UTC
I have the same issue in guru with sys-cluster/fti