summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-02-09 18:19:38 +0000
committerSam James <sam@gentoo.org>2023-02-09 18:22:36 +0000
commit50546c3db84904399e5624eb8f163e3d2be284e3 (patch)
treebeae5f9da62caaa029b74314b4b4a46aadc3e6e9 /eclass
parentmedia-gfx/ristretto: Bump to 0.13.0 (diff)
downloadgentoo-50546c3db84904399e5624eb8f163e3d2be284e3.tar.gz
gentoo-50546c3db84904399e5624eb8f163e3d2be284e3.tar.bz2
gentoo-50546c3db84904399e5624eb8f163e3d2be284e3.zip
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>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index e97789cc1990..06fd6a5059dd 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -248,8 +248,14 @@ _distutils_set_globals() {
'
;;
setuptools)
+ # || ( ... ) dep is a workaround for bug #892525
+ # It can be removed once >=67.2.0 is stable and replaced with
+ # a simple >=67.2.0 dep.
bdep+='
- >=dev-python/setuptools-65.7.0[${PYTHON_USEDEP}]
+ || (
+ >=dev-python/setuptools-67.2.0[${PYTHON_USEDEP}]
+ <dev-python/setuptools-65.6.4[${PYTHON_USEDEP}]
+ )
>=dev-python/wheel-0.38.4[${PYTHON_USEDEP}]
'
;;