Without this tweak, the build fails for me. gtk+-2 expects python3
executable.  I also have this problem with gtk+-3 and I think the
problem also exists in 4.

configuration:
        target: x11
===>  Building for gtk+-2.24.33
gmake  all-recursive
gmake[1]: Entering directory '/usr/ports/pobj/gtk+-2.24.33/gtk+-2.24.33'
Making all in po
gmake[2]: Entering directory '/usr/ports/pobj/gtk+-2.24.33/gtk+-2.24.33/po'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/usr/ports/pobj/gtk+-2.24.33/gtk+-2.24.33/po'
Making all in po-properties
gmake[2]: Entering directory 
'/usr/ports/pobj/gtk+-2.24.33/gtk+-2.24.33/po-properties'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory 
'/usr/ports/pobj/gtk+-2.24.33/gtk+-2.24.33/po-properties'
Making all in gdk
gmake[2]: Entering directory '/usr/ports/pobj/gtk+-2.24.33/gtk+-2.24.33/gdk'
( cd . && /usr/local/bin/glib-mkenums --template gdkenumtypes.h.template \
        gdk.h gdkapplaunchcontext.h gdkcairo.h gdkcolor.h gdkcursor.h 
gdkdisplay.h gdkdisplaymanager.h gdkdnd.h gdkdrawable.h gdkevents.h gdkfont.h 
gdkgc.h gdki18n.h gdkimage.h gdkinput.h gdkkeys.h gdkkeysyms.h 
gdkkeysyms-compat.h gdkpango.h gdkpixbuf.h gdkpixmap.h gdkprivate.h 
gdkproperty.h gdkregion.h gdkrgb.h gdkscreen.h gdkselection.h gdkspawn.h 
gdktestutils.h gdktypes.h gdkvisual.h gdkwindow.h ) >> xgen-geth \
&& (cmp -s xgen-geth gdkenumtypes.h || cp xgen-geth gdkenumtypes.h ) \
&& rm -f xgen-geth \
&& echo timestamp > stamp-gdkenumtypes.h
cd .. && /bin/sh ./config.status gdk/gdkconfig.h
env: python3: No such file or directory
gmake[2]: *** [Makefile:2046: stamp-gdkenumtypes.h] Error 127
gmake[2]: *** Waiting for unfinished jobs....
config.status: executing gdk/gdkconfig.h commands
config.status: gdk/gdkconfig.h is unchanged
echo timestamp > stamp-gc-h
gmake[2]: Leaving directory '/usr/ports/pobj/gtk+-2.24.33/gtk+-2.24.33/gdk'
gmake[1]: *** [Makefile:730: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/pobj/gtk+-2.24.33/gtk+-2.24.33'
gmake: *** [Makefile:622: all] Error 2


diff --git a/x11/gtk+2/Makefile b/x11/gtk+2/Makefile
index 79e3dfbc37c..41fee63ca26 100644
--- a/x11/gtk+2/Makefile
+++ b/x11/gtk+2/Makefile
@@ -87,4 +87,7 @@ post-install:
 # built as a subpackage of x11/gtk+3
        rm ${PREFIX}/bin/gtk-update-icon-cache
 
+pre-configure:
+       @ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python3
+
 .include <bsd.port.mk>

Reply via email to