ports/104560: [patch] x11-toolkits/py-gtk2 does not configure with python2.5

Vasil Dimov vd at FreeBSD.org
Thu Oct 19 07:30:30 UTC 2006

>Number:         104560
>Category:       ports
>Synopsis:       [patch] x11-toolkits/py-gtk2 does not configure with python2.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 19 07:30:20 GMT 2006
>Originator:     Vasil Dimov
>Release:        FreeBSD 6.2-PRERELEASE amd64


I have Python 2.5 installed and PYTHON_VERSION=python2.5 in

% 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

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.



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 @@
-		LIBS="-lintl"
+		LIBS="-lintl" \
 CONFIGURE_ARGS=	--disable-docs
--- 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 at . Or if it is my fault, please
close this PR :)

Vasil Dimov
gro.DSBeerF at 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.

More information about the freebsd-ports-bugs mailing list