Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705468 - dev-python/pygtk should depend on dev-python/numpy-python2
Summary: dev-python/pygtk should depend on dev-python/numpy-python2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
: 706250 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-01-15 07:59 UTC by Bernd
Modified: 2020-01-25 10:38 UTC (History)
3 users (show)

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


Attachments
emerge-info-pygtk.txt (emerge-info-pygtk.txt,14.57 KB, text/plain)
2020-01-15 08:00 UTC, Bernd
Details
pygtk-numpy-dep.patch (pygtk-numpy-dep.patch,906 bytes, patch)
2020-01-15 08:03 UTC, Bernd
Details | Diff
0001-dev-python-pygtk-patch-numpy-dependency.patch (0001-dev-python-pygtk-patch-numpy-dependency.patch,1.29 KB, patch)
2020-01-15 21:21 UTC, Bernd
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2020-01-15 07:59:25 UTC
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.
Comment 1 Bernd 2020-01-15 08:00:43 UTC
Created attachment 603330 [details]
emerge-info-pygtk.txt

output of emerge --info pygtk
Comment 2 Bernd 2020-01-15 08:03:18 UTC
Created attachment 603332 [details, diff]
pygtk-numpy-dep.patch

patch to depend on dev-python/numpy-python2 instead of dev-python/numpy
Comment 3 Mart Raudsepp gentoo-dev 2020-01-15 09:11:37 UTC
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.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-01-15 09:29:22 UTC
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.
Comment 5 Mart Raudsepp gentoo-dev 2020-01-15 10:08:25 UTC
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.
Comment 6 Bernd 2020-01-15 21:20:06 UTC
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.
Comment 7 Bernd 2020-01-15 21:21:47 UTC
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
Comment 8 Larry the Git Cow gentoo-dev 2020-01-16 06:05:14 UTC
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(-)
Comment 9 Rémi Cardona (RETIRED) gentoo-dev 2020-01-25 10:38:56 UTC
*** Bug 706250 has been marked as a duplicate of this bug. ***