Current pygtk-2.24.0-r4 supports only python 2.7, but depends on numpy, whose 1.17* releases no longer support py27. It should instead depend on dev-python/numpy-python2. This results in update conflicts for numpy with other packages depending on numpy. Reproducible: Always I attach emerge info and a diff which for this. If desired, I can open a PR with said patch.
Created attachment 603330 [details] emerge-info-pygtk.txt output of emerge --info pygtk
Created attachment 603332 [details, diff] pygtk-numpy-dep.patch patch to depend on dev-python/numpy-python2 instead of dev-python/numpy
I don't think numpy-python2 is a viable solution, and I remember core python team and QA agreeing. So I'm not moving towards that unless I get some positive information towards that from them. Bug 662518 discusses a better solution for pygtk, but it needs someone putting in the time to do the checks necessary to just drop numpy overall from pygtk.
It's no worse than depending on numpy and blocking upgrade for users. I'd suggest either switching or using || dep, unless you can handle *removing* the dep soonish.
I knew some sort of slot handling was coming from Soap__, that would avoid such dep changes in consumers. In any case, the solution here is bug 662518, and it doesn't have to be me that does the grep checks across pygtk consumer tarball unpacks/ebuild src_prepares.
Sure, bug #662518 is a better long-term solution, also the complete removal of the package. But at this time, none of those solutions looks to be anywhere close to realisation. But I need pygtk for app-office/dia, media-gfx/gimp and a handful of other packages and I need a current numpy for some 30+ packages. I picked up the idea from Michal using a || dep and will attach an updated patch to the ebuild. Feel free to do whatever you think suits the best. Thanks all for your attention.
Created attachment 603424 [details, diff] 0001-dev-python-pygtk-patch-numpy-dependency.patch updated patch to use an || dep for either of <dev-python/numpy-1.17.4 and >=dev-python/numpy-python2-1.16.5
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2050db1c23bc4daf2ada49c7a22c37700e4b2152 commit 2050db1c23bc4daf2ada49c7a22c37700e4b2152 Author: Bernd Waibel <waebbl@gmail.com> AuthorDate: 2020-01-15 19:36:55 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2020-01-16 06:04:30 +0000 dev-python/pygtk: patch numpy dependency The patch introduces alternate dev-python/numpy deps. Either use old numpy-1.16 or the new py2 only numpy-python2 package. Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Bernd Waibel <waebbl@gmail.com> Closes: https://bugs.gentoo.org/705468 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/pygtk/pygtk-2.24.0-r4.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
*** Bug 706250 has been marked as a duplicate of this bug. ***