Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778767 - media-gfx/gimp-2.10.22-r2 Python is hard disabled with --disable-python not allowing python to be used at all
Summary: media-gfx/gimp-2.10.22-r2 Python is hard disabled with --disable-python not a...
Status: RESOLVED DUPLICATE of bug 711684
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-27 16:21 UTC by Sarah
Modified: 2021-03-27 20:11 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sarah 2021-03-27 16:21:27 UTC
Unable to use python scripts in GIMP because the ebuild has hard blocked any python with --disable-python in the src_configure() function. The 9999 ebuild doesn't have this and is now forcing people who need python in gimp to use that ebuild.
I guess this has been done for a reason but I can't find out why. There are no related bugs or anything.
Comment 1 Andreas Sturmlechner gentoo-dev 2021-03-27 16:25:08 UTC

*** This bug has been marked as a duplicate of bug 711684 ***
Comment 2 Ionen Wolkens gentoo-dev 2021-03-27 16:49:21 UTC
(In reply to Sarah from comment #0)
> Unable to use python scripts in GIMP because the ebuild has hard blocked any
> python with --disable-python in the src_configure() function. The 9999
> ebuild doesn't have this and is now forcing people who need python in gimp
> to use that ebuild.
The gimp2.99.x/-9999 ebuilds are unlikely to be useful to you given your scripts also need to be ported to python3 (if compatible with gimp3 they would have a "import gi" line somewhere).

Hopefully porting effort for gimp python scripts will pick up when gimp3 releases.

python2 support is not coming back
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-27 17:00:21 UTC
It's masked via package.use.mask but it's restored in the test versions (2.99.x) and 9999
Comment 4 Sergey Torokhov 2021-03-27 19:42:03 UTC
In Gimp 2.10.x branch the python2 support was depended on dev-python/pygtk that was dropped ( https://bugs.gentoo.org/706462 ) during Python2 runtime dependencies removal from portage tree. 

Anyway python2 runtime dependencies are forbidden now in main portage tree. You could only restore dev-python/pygtk and enable python2 support in gimp back in local overlay.

Unfortunatelly I don't know if were any python plugins were ported to python3 to test them in gimp 2.99.x.
Comment 5 Sarah 2021-03-27 19:55:54 UTC
I understand that python2 is not coming back. Atm going to 2.99 or 9999 build to test python3 isn't feasible either. It asks for >=x11-libs/pango-1.44.7 but that one is masked as well due to bug #698922 causing system issues. So I guess python as a whole for now disabled with gimp.
Comment 6 Ionen Wolkens gentoo-dev 2021-03-27 20:11:07 UTC
pango-1.44.7 is mostly fine, I use it myself (along with gimp-2.99.4, and I profile unmasked USE=python)

gimp's own python3 plugins works fwiw, I'm seeing it run with py3.9 in ps:
/usr/bin/python3.9 /usr/lib64/gimp/2.99/plug-ins/spyro-plus/spyro-plus.py -gimp 270 13 12 -run 1

But unless your aim is to port plugins or write new ones, like I said that probably won't be useful (all old plugins won't work as-is).