Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814650 - app-emulation/qemu-6.1.0 fails to build with PYTHON_TARGETS="python3_10"
Summary: app-emulation/qemu-6.1.0 fails to build with PYTHON_TARGETS="python3_10"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-09-24 21:43 UTC by Thomas Raschbacher
Modified: 2021-10-11 03:49 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,19.54 KB, text/x-log)
2021-09-24 21:44 UTC, Thomas Raschbacher
Details
emerge --info output (emerge-info.txt,7.64 KB, text/plain)
2021-09-24 21:46 UTC, Thomas Raschbacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Raschbacher gentoo-dev 2021-09-24 21:43:04 UTC
qemu 6.1.0 failes to compile with python 3.10 target:

Program sphinx-build found: YES
../docs/meson.build:30: WARNING: /usr/bin/sphinx-build: Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.10/sphinx-build", line 33, in <module>
    sys.exit(load_entry_point('Sphinx==4.1.1', 'console_scripts', 'sphinx-build')())
  File "/usr/lib/python-exec/python3.10/sphinx-build", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 162, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/sphinx/cmd/build.py", line 25, in <module>
    from sphinx.application import Sphinx
  File "/usr/lib/python3.10/site-packages/sphinx/application.py", line 32, in <module>
    from sphinx.config import Config
  File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 21, in <module>
    from sphinx.util import logging
  File "/usr/lib/python3.10/site-packages/sphinx/util/__init__.py", line 41, in <module>
    from sphinx.util.typing import PathMatcher
  File "/usr/lib/python3.10/site-packages/sphinx/util/typing.py", line 37, in <module>
    from types import Union as types_Union
ImportError: cannot import name 'Union' from 'types' (/usr/lib/python3.10/types.py)


../docs/meson.build:32:6: ERROR: Problem encountered: Install a Python 3 version of python-sphinx and the readthedoc theme

A full log can be found at /var/tmp/portage/app-emulation/qemu-6.1.0/work/qemu-6.1.0/softmmu-build/meson-logs/meson-log.txt

ERROR: meson setup failed
Comment 1 Thomas Raschbacher gentoo-dev 2021-09-24 21:44:42 UTC
Created attachment 741159 [details]
build.log
Comment 2 Thomas Raschbacher gentoo-dev 2021-09-24 21:46:12 UTC
Created attachment 741162 [details]
emerge --info output
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-24 21:48:10 UTC
Hm, this actually looks like Sphinx: https://archives.gentoo.org/gentoo-dev/message/69efc23977144df37d4233b9617e3615.

Can you try upgrading SPhinx first?
Comment 4 Thomas Raschbacher gentoo-dev 2021-09-24 23:15:32 UTC
(In reply to Sam James from comment #3)
> Hm, this actually looks like Sphinx:
> https://archives.gentoo.org/gentoo-dev/message/
> 69efc23977144df37d4233b9617e3615.
> 
> Can you try upgrading SPhinx first?

after upgrading sphinx i got this:

Configuring 60-edk2-arm.json using configuration
Configuring 60-edk2-i386.json using configuration
Configuring 60-edk2-x86_64.json using configuration
Program sphinx-build found: YES
../docs/meson.build:30: WARNING: /usr/bin/sphinx-build: 
Configuration error:
The Sphinx 'sphinx_rtd_theme' HTML theme was not found.



../docs/meson.build:32:6: ERROR: Problem encountered: Install a Python 3 version of python-sphinx and the readthedoc theme

A full log can be found at /var/tmp/portage/app-emulation/qemu-6.1.0/work/qemu-6.1.0/softmmu-build/meson-logs/meson-log.txt

ERROR: meson setup failed


Also if i disable python3.10 it compiles fine btw (with 3.8 and 3.9)
Comment 5 Thomas Raschbacher gentoo-dev 2021-09-24 23:21:49 UTC
actually emerging dev-python/sphinx_rtd_theme-1.0.0 with python 3.10 before now did the trick.
Comment 6 Larry the Git Cow gentoo-dev 2021-09-25 17:46:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27688b840d6c3a8cbca0b6f644364fb1e3c51171

commit 27688b840d6c3a8cbca0b6f644364fb1e3c51171
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2021-09-25 15:25:30 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2021-09-25 17:46:55 +0000

    app-emulation/qemu: add PYTHON_USEDEP for sphinx bdeps
    
    Bug: https://bugs.gentoo.org/814650
    Signed-off-by: John Helmert III <ajak@gentoo.org>
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 app-emulation/qemu/qemu-6.0.0-r3.ebuild  | 2 +-
 app-emulation/qemu/qemu-6.0.0-r53.ebuild | 2 +-
 app-emulation/qemu/qemu-6.1.0.ebuild     | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
Comment 7 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-09-25 19:08:35 UTC
LordVan, can you test this patch to be sure it fixes this bug?