Bug 224486

Summary: Python Flavors for x11-toolkits/gtk20?
Product: Ports & Packages Reporter: bye <owen94012>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: pi, tobik
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description bye 2017-12-20 16:30:14 UTC
I'm porting some software that relies on gtk and python 3.2+ 

relevant Makefile parts:
USES=		autoreconf gmake	\
		libtool pkgconfig	\
		python:3.2+

OPTIONS_DEFINE=		NLS
NLS_USES=		gettext
NLS_CONFIGURE_ENABLE=	gettext

INSTALLS_ICONS=		yes
GNU_CONFIGURE=		yes
USE_LDCONFIG=		yes

USE_GNOME=		introspection:run py3gobject3 intltool

I tracked the issue down to gtk-update-icon-cache from x11-toolkits/gtk20.

gtk-update-icon-cache pulls in python2.7 even though python 3.6 was already installed earlier in the process.

Later when the configure script runs, it finds the wrong python version and fails with the error:
checking for a Python interpreter with version >= 3.2.3... none
configure: error: no suitable Python interpreter found

Is there a way to build this port w/o pulling in python 2.7?
Comment 1 Tobias Kortkamp freebsd_committer freebsd_triage 2018-01-01 17:17:44 UTC
(In reply to bcomputerguy from comment #0)
This is too vague to answer.  What software are you trying to port?

I'm closing this since it's more of a support question better suited
for ports@ than the bug tracker.

I doubt that having Python 2.7 installed is the cause of the problem.
It's perfectly normal to have both Python 2.7 and 3.6 installed
simultaneously.

Since the port appears to use autoconf try looking at
${WRKSRC}/config.log for some clues on why configure fails
to find Python 3.6.
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2018-01-20 15:04:40 UTC
It's this:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225259