From: Stuart Henderson Subject: Re: graphics/gimp/stable and Python 2 To: Daniel Dickman , Date: Fri, 19 Jun 2026 21:55:45 +0100 gimp is really just a matter of time before things move to 3, there's not much more work to do in ports here I think. can't we just leave it for now? I would expect that by the time there's a decent solution for mailman, gimp would be about ready to move anyway... -- Sent from a phone, apologies for poor formatting. On 19 June 2026 20:37:37 Daniel Dickman wrote: > The diff below disables Python 2 support from gimp2. Most of the plugins > don't seem to use the Python infra except resynthesizer as far as I can > tell. But that plugin is available on gimp3. > > As graphics/gimp/resynthesizer won't be useful after the below goes in, > I'd also vote for cleanup of that port. > > Looking for tests from gimp2 users that various plugins like gmic continue > to work with the below. > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/graphics/gimp/stable/Makefile,v > diff -u -p -u -r1.180 Makefile > --- Makefile 25 May 2026 14:50:04 -0000 1.180 > +++ Makefile 19 Jun 2026 19:30:57 -0000 > @@ -2,7 +2,7 @@ COMMENT= GNU Image Manipulation Program > > DISTNAME = gimp-2.10.38 > PKGSPEC = gimp->=2,<2.99 > -REVISION = 8 > +REVISION = 9 > > .for i in gimp gimpbase gimpcolor gimpconfig gimpmath gimpmodule \ > gimpthumb gimpui gimpwidgets > @@ -47,9 +47,7 @@ DEBUG_PACKAGES= ${BUILD_PACKAGES} > # C++14 > COMPILER= base-clang ports-gcc > > -MODULES= textproc/intltool \ > - lang/python > -MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2} > +MODULES= textproc/intltool > > COMMON_DEPENDS= archivers/lzip/lzlib \ > devel/desktop-file-utils \ > @@ -57,8 +55,7 @@ COMMON_DEPENDS= archivers/lzip/lzlib \ > graphics/jasper \ > graphics/mypaint-brushes \ > net/glib2-networking \ > - print/poppler-data \ > - x11/py-gtk2 > + print/poppler-data > > BUILD_DEPENDS= ${COMMON_DEPENDS} \ > devel/appstream-glib \ > @@ -103,15 +100,11 @@ CONFIGURE_STYLE= gnu > > CONFIGURE_ARGS+= \ > --disable-check-update \ > + --disable-python \ > --enable-gimp-console \ > --with-pdbgen \ > --without-linux-input \ > --without-alsa \ > --without-webkit > - > -UPDATE_PLIST_ARGS += -i MODPY_PY_PREFIX > - > -post-install: > - ${MODPY_COMPILEALL} ${PREFIX}/lib/gimp/2.0/plug-ins > > .include > Index: pkg/PLIST > =================================================================== > RCS file: /cvs/ports/graphics/gimp/stable/pkg/PLIST,v > diff -u -p -u -r1.59 PLIST > --- pkg/PLIST 20 Oct 2025 19:51:08 -0000 1.59 > +++ pkg/PLIST 19 Jun 2026 19:30:58 -0000 > @@ -254,10 +254,8 @@ lib/gimp/ > lib/gimp/2.0/ > lib/gimp/2.0/environ/ > lib/gimp/2.0/environ/default.env > -lib/gimp/2.0/environ/pygimp.env > lib/gimp/2.0/interpreters/ > lib/gimp/2.0/interpreters/default.interp > -lib/gimp/2.0/interpreters/pygimp.interp > lib/gimp/2.0/modules/ > @static-lib lib/gimp/2.0/modules/libcolor-selector-cmyk.a > lib/gimp/2.0/modules/libcolor-selector-cmyk.la > @@ -312,9 +310,6 @@ lib/gimp/2.0/plug-ins/colorify/ > @bin lib/gimp/2.0/plug-ins/colorify/colorify > lib/gimp/2.0/plug-ins/colormap-remap/ > @bin lib/gimp/2.0/plug-ins/colormap-remap/colormap-remap > -lib/gimp/2.0/plug-ins/colorxhtml/ > -lib/gimp/2.0/plug-ins/colorxhtml/colorxhtml.py > -lib/gimp/2.0/plug-ins/colorxhtml/colorxhtml.pyc > lib/gimp/2.0/plug-ins/compose/ > @bin lib/gimp/2.0/plug-ins/compose/compose > lib/gimp/2.0/plug-ins/contrast-retinex/ > @@ -389,9 +384,6 @@ lib/gimp/2.0/plug-ins/file-jpegxl/ > @bin lib/gimp/2.0/plug-ins/file-jpegxl/file-jpegxl > lib/gimp/2.0/plug-ins/file-mng/ > @bin lib/gimp/2.0/plug-ins/file-mng/file-mng > -lib/gimp/2.0/plug-ins/file-openraster/ > -lib/gimp/2.0/plug-ins/file-openraster/file-openraster.py > -lib/gimp/2.0/plug-ins/file-openraster/file-openraster.pyc > lib/gimp/2.0/plug-ins/file-pat/ > @bin lib/gimp/2.0/plug-ins/file-pat/file-pat > lib/gimp/2.0/plug-ins/file-pcx/ > @@ -446,9 +438,6 @@ lib/gimp/2.0/plug-ins/filter-pack/ > @bin lib/gimp/2.0/plug-ins/filter-pack/filter-pack > lib/gimp/2.0/plug-ins/flame/ > @bin lib/gimp/2.0/plug-ins/flame/flame > -lib/gimp/2.0/plug-ins/foggify/ > -lib/gimp/2.0/plug-ins/foggify/foggify.py > -lib/gimp/2.0/plug-ins/foggify/foggify.pyc > lib/gimp/2.0/plug-ins/fractal-explorer/ > @bin lib/gimp/2.0/plug-ins/fractal-explorer/fractal-explorer > lib/gimp/2.0/plug-ins/fractal-trace/ > @@ -463,18 +452,12 @@ lib/gimp/2.0/plug-ins/gradient-flare/ > @bin lib/gimp/2.0/plug-ins/gradient-flare/gradient-flare > lib/gimp/2.0/plug-ins/gradient-map/ > @bin lib/gimp/2.0/plug-ins/gradient-map/gradient-map > -lib/gimp/2.0/plug-ins/gradients-save-as-css/ > -lib/gimp/2.0/plug-ins/gradients-save-as-css/gradients-save-as-css.py > -lib/gimp/2.0/plug-ins/gradients-save-as-css/gradients-save-as-css.pyc > lib/gimp/2.0/plug-ins/grid/ > @bin lib/gimp/2.0/plug-ins/grid/grid > lib/gimp/2.0/plug-ins/guillotine/ > @bin lib/gimp/2.0/plug-ins/guillotine/guillotine > lib/gimp/2.0/plug-ins/help/ > @bin lib/gimp/2.0/plug-ins/help/help > -lib/gimp/2.0/plug-ins/histogram-export/ > -lib/gimp/2.0/plug-ins/histogram-export/histogram-export.py > -lib/gimp/2.0/plug-ins/histogram-export/histogram-export.pyc > lib/gimp/2.0/plug-ins/hot/ > @bin lib/gimp/2.0/plug-ins/hot/hot > lib/gimp/2.0/plug-ins/ifs-compose/ > @@ -499,15 +482,6 @@ lib/gimp/2.0/plug-ins/nl-filter/ > @bin lib/gimp/2.0/plug-ins/nl-filter/nl-filter > lib/gimp/2.0/plug-ins/pagecurl/ > @bin lib/gimp/2.0/plug-ins/pagecurl/pagecurl > -lib/gimp/2.0/plug-ins/palette-offset/ > -lib/gimp/2.0/plug-ins/palette-offset/palette-offset.py > -lib/gimp/2.0/plug-ins/palette-offset/palette-offset.pyc > -lib/gimp/2.0/plug-ins/palette-sort/ > -lib/gimp/2.0/plug-ins/palette-sort/palette-sort.py > -lib/gimp/2.0/plug-ins/palette-sort/palette-sort.pyc > -lib/gimp/2.0/plug-ins/palette-to-gradient/ > -lib/gimp/2.0/plug-ins/palette-to-gradient/palette-to-gradient.py > -lib/gimp/2.0/plug-ins/palette-to-gradient/palette-to-gradient.pyc > lib/gimp/2.0/plug-ins/photocopy/ > @bin lib/gimp/2.0/plug-ins/photocopy/photocopy > lib/gimp/2.0/plug-ins/plugin-browser/ > @@ -516,17 +490,6 @@ lib/gimp/2.0/plug-ins/print/ > @bin lib/gimp/2.0/plug-ins/print/print > lib/gimp/2.0/plug-ins/procedure-browser/ > @bin lib/gimp/2.0/plug-ins/procedure-browser/procedure-browser > -lib/gimp/2.0/plug-ins/py-slice/ > -lib/gimp/2.0/plug-ins/py-slice/py-slice.py > -lib/gimp/2.0/plug-ins/py-slice/py-slice.pyc > -lib/gimp/2.0/plug-ins/python-console/ > -lib/gimp/2.0/plug-ins/python-console/pyconsole.py > -lib/gimp/2.0/plug-ins/python-console/pyconsole.pyc > -lib/gimp/2.0/plug-ins/python-console/python-console.py > -lib/gimp/2.0/plug-ins/python-console/python-console.pyc > -lib/gimp/2.0/plug-ins/python-eval/ > -lib/gimp/2.0/plug-ins/python-eval/python-eval.py > -lib/gimp/2.0/plug-ins/python-eval/python-eval.pyc > lib/gimp/2.0/plug-ins/qbist/ > @bin lib/gimp/2.0/plug-ins/qbist/qbist > lib/gimp/2.0/plug-ins/sample-colorize/ > @@ -547,9 +510,6 @@ lib/gimp/2.0/plug-ins/sparkle/ > @bin lib/gimp/2.0/plug-ins/sparkle/sparkle > lib/gimp/2.0/plug-ins/sphere-designer/ > @bin lib/gimp/2.0/plug-ins/sphere-designer/sphere-designer > -lib/gimp/2.0/plug-ins/spyro_plus/ > -lib/gimp/2.0/plug-ins/spyro_plus/spyro_plus.py > -lib/gimp/2.0/plug-ins/spyro_plus/spyro_plus.pyc > lib/gimp/2.0/plug-ins/tile/ > lib/gimp/2.0/plug-ins/tile-small/ > @bin lib/gimp/2.0/plug-ins/tile-small/tile-small > @@ -564,38 +524,6 @@ lib/gimp/2.0/plug-ins/wavelet-decompose/ > @bin lib/gimp/2.0/plug-ins/wavelet-decompose/wavelet-decompose > lib/gimp/2.0/plug-ins/web-browser/ > @bin lib/gimp/2.0/plug-ins/web-browser/web-browser > -lib/gimp/2.0/python/ > -lib/gimp/2.0/python/_gimpenums.a > -lib/gimp/2.0/python/_gimpenums.la > -@so lib/gimp/2.0/python/_gimpenums.so > -lib/gimp/2.0/python/_gimpui.a > -lib/gimp/2.0/python/_gimpui.la > -@so lib/gimp/2.0/python/_gimpui.so > -lib/gimp/2.0/python/gimp.a > -lib/gimp/2.0/python/gimp.la > -@so lib/gimp/2.0/python/gimp.so > -lib/gimp/2.0/python/gimpcolor.a > -lib/gimp/2.0/python/gimpcolor.la > -@so lib/gimp/2.0/python/gimpcolor.so > -lib/gimp/2.0/python/gimpenums.py > -lib/gimp/2.0/python/gimpenums.pyc > -lib/gimp/2.0/python/gimpenums.pyo > -lib/gimp/2.0/python/gimpfu.py > -lib/gimp/2.0/python/gimpfu.pyc > -lib/gimp/2.0/python/gimpfu.pyo > -lib/gimp/2.0/python/gimpplugin.py > -lib/gimp/2.0/python/gimpplugin.pyc > -lib/gimp/2.0/python/gimpplugin.pyo > -lib/gimp/2.0/python/gimpshelf.py > -lib/gimp/2.0/python/gimpshelf.pyc > -lib/gimp/2.0/python/gimpshelf.pyo > -lib/gimp/2.0/python/gimpthumb.a > -lib/gimp/2.0/python/gimpthumb.la > -@so lib/gimp/2.0/python/gimpthumb.so > -lib/gimp/2.0/python/gimpui.py > -lib/gimp/2.0/python/gimpui.pyc > -lib/gimp/2.0/python/gimpui.pyo > -lib/gimp/2.0/python/pygimp-logo.png > @static-lib lib/libgimp-2.0.a > lib/libgimp-2.0.la > @lib lib/libgimp-2.0.so.${LIBgimp-2.0_VERSION}