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: ports/104560: [patch] x11-toolkits/py-gtk2 does not configure with python2.5 Message-ID: <20061019072939.GA20150@qlovarnika.bg.datamax> Resent-Message-ID: <200610190730.k9J7UKsu005233@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 19 07:30:20 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Vasil Dimov >Release: FreeBSD 6.2-PRERELEASE amd64 >Organization: N/A >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. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061019072939.GA20150>