Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946578 - dev-libs/glib-2.80.5-r1 - ModuleNotFoundError: No module named distutils.msvccompiler
Summary: dev-libs/glib-2.80.5-r1 - ModuleNotFoundError: No module named distutils.msvc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-17 09:04 UTC by Toralf Förster
Modified: 2024-12-18 02:37 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.24 KB, text/plain)
2024-12-17 09:04 UTC, Toralf Förster
Details
dev-libs:glib-2.80.5-r1:20241217-083743.log.xz (dev-libs:glib-2.80.5-r1:20241217-083743.log.xz,21.03 KB, application/x-xz)
2024-12-17 09:04 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,118.97 KB, text/plain)
2024-12-17 09:04 UTC, Toralf Förster
Details
environment (environment,186.52 KB, text/plain)
2024-12-17 09:04 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.00 KB, application/x-xz)
2024-12-17 09:04 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,25.43 KB, application/x-xz)
2024-12-17 09:04 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,394.18 KB, application/x-xz)
2024-12-17 09:04 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,251.79 KB, text/plain)
2024-12-17 09:04 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,58.95 KB, application/x-xz)
2024-12-17 09:04 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-12-17 09:04:33 UTC
  File "/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/gobject-introspection-1.80.1-build/giscanner/ast.py", line 27, in <module>
    from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
  File "/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/gobject-introspection-1.80.1-build/giscanner/sourcescanner.py", line 25, in <module>
    from .ccompiler import CCompiler
  File "/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/gobject-introspection-1.80.1-build/giscanner/ccompiler.py", line 29, in <module>
    from distutils.msvccompiler import MSVCCompiler
ModuleNotFoundError: No module named 'distutils.msvccompiler'

[457/641] /usr/lib/python-exec/python3.12/meson --internal symbolextractor /var/tmp/portage/dev-libs/glib-2.80.5-r1/work/gobject-introspection-1.80.1-build girepository/libgirepository-1.0.so.1.0.0 girepository/libgirepository-1.0.so.1.0.0 girepository/libgirepository-1.0.so.1.0.0.p/libgirepository-1.0.so.1.0.0.symbols 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib-20241215-210507

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang version 19.1.5
llvm-config: 19.1.5
Python 3.12.8
go version go1.23.4 linux/amd64
  [1]   php8.2
  [2]   php8.3 *
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.83.0 *

  HEAD of ::gentoo
commit ac403cf9f743b5331e3bd8fa5fe9a90843d510ed
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 17 06:48:39 2024 +0000

    2024-12-17 06:48:38 UTC

emerge -qpvO =dev-libs/glib-2.80.5-r1
[ebuild  N    ] dev-libs/glib-2.80.5-r1  USE="introspection mime sysprof systemtap xattr -dbus -debug -doc -elf (-selinux) -static-libs -test -utils"
Comment 1 Toralf Förster gentoo-dev 2024-12-17 09:04:34 UTC
Created attachment 914224 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-12-17 09:04:35 UTC
Created attachment 914225 [details]
dev-libs:glib-2.80.5-r1:20241217-083743.log.xz
Comment 3 Toralf Förster gentoo-dev 2024-12-17 09:04:36 UTC
Created attachment 914226 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-12-17 09:04:37 UTC
Created attachment 914227 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-12-17 09:04:38 UTC
Created attachment 914228 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-12-17 09:04:39 UTC
Created attachment 914229 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-12-17 09:04:41 UTC
Created attachment 914230 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-12-17 09:04:42 UTC
Created attachment 914231 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-12-17 09:04:43 UTC
Created attachment 914232 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-17 09:14:24 UTC
--- stderr ---
Traceback (most recent call last):
  File "/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/gobject-introspection-1.80.1-build/tools/g-ir-scanner", line 103, in <module>
    from giscanner.scannermain import scanner_main
  File "/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/gobject-introspection-1.80.1-build/giscanner/scannermain.py", line 35, in <module>
    from giscanner.ast import Include, Namespace
  File "/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/gobject-introspection-1.80.1-build/giscanner/ast.py", line 27, in <module>
    from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
  File "/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/gobject-introspection-1.80.1-build/giscanner/sourcescanner.py", line 25, in <module>
    from .ccompiler import CCompiler
  File "/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/gobject-introspection-1.80.1-build/giscanner/ccompiler.py", line 29, in <module>
    from distutils.msvccompiler import MSVCCompiler
ModuleNotFoundError: No module named 'distutils.msvccompiler'

--

The issue here is that 1.80.1 doesn't have that setuptools patch applied. I will add it in.
Comment 11 Larry the Git Cow gentoo-dev 2024-12-18 02:37:54 UTC
The bug has been closed via the following commit(s):

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

commit cdf427ba20cfabb231a3b463d93bb8572e600bc8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-18 02:36:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-18 02:36:51 +0000

    dev-libs/glib: patch bootstrap gobject-introspection in 2.80.5 for distutils
    
    Closes: https://bugs.gentoo.org/946578
    Signed-off-by: Sam James <sam@gentoo.org>

 .../glib-2.80.5-gobject-introspection-1.80.patch   | 103 +++++++++++++++++++++
 dev-libs/glib/glib-2.80.5-r1.ebuild                |   5 +
 2 files changed, 108 insertions(+)