Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 826762 - games-strategy/0ad-0.0.25b_alpha - AttributeError: module distutils has no attribute sysconfig
Summary: games-strategy/0ad-0.0.25b_alpha - AttributeError: module distutils has no at...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-23 09:28 UTC by Toralf Förster
Modified: 2022-02-07 04:31 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.85 KB, text/plain)
2021-11-23 09:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,45.80 KB, text/plain)
2021-11-23 09:28 UTC, Toralf Förster
Details
environment (environment,118.67 KB, text/plain)
2021-11-23 09:28 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,32.44 KB, application/x-bzip)
2021-11-23 09:28 UTC, Toralf Förster
Details
games-strategy:0ad-0.0.25b_alpha:20211123-071054.log.bz2 (games-strategy:0ad-0.0.25b_alpha:20211123-071054.log.bz2,69.06 KB, application/x-bzip)
2021-11-23 09:28 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.36 KB, application/x-bzip)
2021-11-23 09:28 UTC, Toralf Förster
Details
Patch for spidermonkey python error (0ad-spidermonkey-distutils-sysconfig.patch,7.95 KB, patch)
2022-02-07 04:13 UTC, Stephen Cavilia
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 2021-11-23 09:28:23 UTC
  File "/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/configure/__init__.py", line 1161, in wrapped
    return new_func(*args, **kwargs)
  File "/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build/moz.configure/init.configure", line 378, in virtualenv_python3
    if not distutils.sysconfig.get_python_lib():
AttributeError: module 'distutils' has no attribute 'sysconfig'
 * ERROR: games-strategy/0ad-0.0.25b_alpha::gentoo failed (compile phase):
 *   Failed to build bundled SpiderMonkey
 * 
 * Call stack:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20211122-223706

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.56.1 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit c7868bb416939fc392b57b65932a01928e17e072
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Nov 23 04:36:42 2021 +0000

    2021-11-23 04:36:41 UTC

emerge -qpvO games-strategy/0ad
[ebuild  N    ] games-strategy/0ad-0.0.25b_alpha  USE="lobby nvtt pch -editor -test -verify-sig"
Comment 1 Toralf Förster gentoo-dev 2021-11-23 09:28:24 UTC
Created attachment 755450 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-11-23 09:28:25 UTC
Created attachment 755454 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-11-23 09:28:27 UTC
Created attachment 755458 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-11-23 09:28:28 UTC
Created attachment 755462 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-11-23 09:28:29 UTC
Created attachment 755466 [details]
games-strategy:0ad-0.0.25b_alpha:20211123-071054.log.bz2
Comment 6 Toralf Förster gentoo-dev 2021-11-23 09:28:30 UTC
Created attachment 755470 [details]
logs.tar.bz2
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2022-01-16 19:54:04 UTC
I get the same error after upgrding from dev-python/setuptools-59.8.0 to dev-python/setuptools-60.5.0
Comment 8 Stephen Cavilia 2022-02-07 04:04:18 UTC
There's an upstream Mozilla bug regarding this https://bugzilla.mozilla.org/show_bug.cgi?id=1665675

Applying the fix from https://phabricator.services.mozilla.com/D90627 allows configure to succeed; I'm currently trying to build it.
Comment 9 Stephen Cavilia 2022-02-07 04:13:15 UTC
Created attachment 764495 [details, diff]
Patch for spidermonkey python error
Comment 10 Larry the Git Cow gentoo-dev 2022-02-07 04:31:26 UTC
The bug has been closed via the following commit(s):

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

commit c5948582c8e35c33b8d6793d6e2c83949b152586
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-07 04:30:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-07 04:30:57 +0000

    games-strategy/0ad: fix build with newer setuptools
    
    Closes: https://bugs.gentoo.org/826762
    Thanks-to: Stephen Cavilia <sac@atomicradi.us>
    Signed-off-by: Sam James <sam@gentoo.org>

 games-strategy/0ad/0ad-0.0.25b_alpha.ebuild        |   3 +-
 .../files/0ad-0.0.25b_alpha-fix-setuptools.patch   | 188 +++++++++++++++++++++
 2 files changed, 190 insertions(+), 1 deletion(-)