Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892529 - media-libs/fontconfig meson.build:47:0: ERROR: <PythonExternalProgram 'python3' -> ['/usr/bin/python3.10']> is not a valid python or it is missing distutils
Summary: media-libs/fontconfig meson.build:47:0: ERROR: <PythonExternalProgram 'python...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-29 21:29 UTC by Diego Viola
Modified: 2023-02-09 18:22 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,5.03 KB, text/x-log)
2023-01-29 21:29 UTC, Diego Viola
Details
make.conf (make.conf,838 bytes, text/plain)
2023-01-29 21:29 UTC, Diego Viola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Viola 2023-01-29 21:29:37 UTC
Created attachment 849419 [details]
build.log

As of today (2023-01-29) after doing a $(emerge --sync) and $(emerge -auvDN @world) fontconfig failed to build with the output attached on this report.

After following floppym advice on IRC:

+floppym | dviola: Please try upgrading dev-python/setuptools, and then retry fontconfig

fontconfig builds fine after that. I was also told that this is a similar bug to the one from bug 892525.

My system is Gentoo ~amd64 (global), my make.conf is attached to this report.

Please let me know if you need more info. Thanks.
Comment 1 Diego Viola 2023-01-29 21:29:55 UTC
Created attachment 849421 [details]
make.conf
Comment 2 Ben Kohler gentoo-dev 2023-01-30 13:57:23 UTC
Saw this on my relatively boring ~amd64 desktop as well.  Do we need to set a minimum bound on the setuptools version?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-09 03:38:57 UTC
If you're hitting this, please run: emerge -v1 dev-python/setuptools.

This was/is caused by some now-removed versions of setuptools in ~arch. Current stable and ~arch versions are OK. There's no easy way to force ~arch users to get the right version, as we can't just simply add a >= dep in the eclass, as we haven't stabled a new enough version yet, but stable users were also never affected by the bad versions.

We may add a || ( ... ) dep in the eclass for now given this is such a pain.
Comment 4 Larry the Git Cow gentoo-dev 2023-02-09 18:22:46 UTC
The bug has been referenced in the following commit(s):

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

commit 50546c3db84904399e5624eb8f163e3d2be284e3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-09 18:19:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-09 18:22:36 +0000

    distutils-r1.eclass: adjust setuptools dep to avoid known-bad versions
    
    79071eb9f6f4a5725c1a89700bcfd7f120101179 tried to mitigate this but
    blockers don't affect dependency resolution (ordering), so let's add
    a || ( <dev-python/setuptools-... >=dev-python/setuptools-...) dep
    in the eclass to ensure that the bad in-between versions (which were
    in ~arch, not stable, for a period, and are no longer in tree) aren't
    considered good enough to install any distutils-r1 PEP517 packages.
    
    We can clean this up once newer setuptools is stable & then simplify
    (and tighten) the dep.
    
    (Worth keeping in mind that Portage (rightly) doesn't aggressively
    update things listed in RDEPEND in that order simply because they're
    in RDEPEND. It might update something listed in RDEPEND after the
    package listing it provided there's no >= or otherwise dep.)
    
    Bug: https://bugs.gentoo.org/892529
    Bug: https://bugs.gentoo.org/892525
    Bug: https://bugs.gentoo.org/893538
    Bug: https://bugs.gentoo.org/893632
    Bug: https://bugs.gentoo.org/893630
    Bug: https://bugs.gentoo.org/893634
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/distutils-r1.eclass | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)