Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2006 10:29:39 +0300
From:      Vasil Dimov <vd@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        gnome@freebsd.org, python@freebsd.org
Subject:   [patch] x11-toolkits/py-gtk2 does not configure with python2.5
Message-ID:  <20061019072939.GA20150@qlovarnika.bg.datamax>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Vasil Dimov
>Organization:	N/A
>Confidential:	no 
>Synopsis:	[patch] x11-toolkits/py-gtk2 does not configure with python2.5
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		sw-bug
>Release:	FreeBSD 6.2-PRERELEASE amd64
>Environment:

>Description:

I have Python 2.5 installed and PYTHON_VERSION=python2.5 in
/etc/make.conf:

% ls -ld /var/db/pkg/python*
drwxr-xr-x  2 root  wheel  512 Oct 16 11:50 /var/db/pkg/python-2.5/
drwxr-xr-x  2 root  wheel  512 Oct 16 11:51 /var/db/pkg/python25-2.5_1/
%

% pkg_info -L /var/db/pkg/python25-2.5_1/ |grep bin/python
/usr/local/bin/python2.5
/usr/local/bin/python2.5-config
/usr/local/bin/python-shared2.5
/usr/local/bin/python-shared2.5-config
%

For some reason there is no bin/python.

Then the configure step in x11-toolkits/py-gtk2 fails:

/usr/ports/x11-toolkits/py-gtk2# make configure
[...]
checking for a Python interpreter with version >= 2.3.5... none
configure: error: no suitable Python interpreter found
===>  Script "configure" failed unexpectedly.
[...]

>How-To-Repeat:

>Fix:

The following patch to x11-toolkits/py-gtk2 fixes the problem for me:

--- py-gtk2.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/x11-toolkits/py-gtk2/Makefile,v
retrieving revision 1.89
diff -u -r1.89 Makefile
--- Makefile	18 Oct 2006 18:56:36 -0000	1.89
+++ Makefile	19 Oct 2006 07:18:17 -0000
@@ -31,7 +31,8 @@
 USE_GETTEXT=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LIBS="-lintl"
+		LIBS="-lintl" \
+		PYTHON="${PYTHON_VERSION}"
 CONFIGURE_ARGS=	--disable-docs
 LDFLAGS+=	-L${LOCALBASE}/lib
 
--- py-gtk2.diff ends here ---

It may be that bin/python nonexistency is a fault in python25-2.5_1 in
which case, reassign this PR to python@. Or if it is my fault, please
close this PR :)

-- 
Vasil Dimov
gro.DSBeerF@dv
%
A complex system designed from scratch never works and
cannot be patched up to make it work.  You have to start
over, beginning with a working simple system.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061019072939.GA20150>