From owner-freebsd-gnome@FreeBSD.ORG Thu Oct 19 07:30:16 2006 Return-Path: X-Original-To: gnome@freebsd.org Delivered-To: freebsd-gnome@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3269D16A47C; Thu, 19 Oct 2006 07:30:16 +0000 (UTC) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0177243DC2; Thu, 19 Oct 2006 07:29:40 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id 8EE6DB865; Thu, 19 Oct 2006 10:29:39 +0300 (EEST) Received: (nullmailer pid 47228 invoked by uid 1002); Thu, 19 Oct 2006 07:29:39 -0000 Date: Thu, 19 Oct 2006 10:29:39 +0300 From: Vasil Dimov To: FreeBSD-gnats-submit@freebsd.org Message-ID: <20061019072939.GA20150@qlovarnika.bg.datamax> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-send-pr-version: 3.113 Cc: gnome@freebsd.org, python@freebsd.org Subject: [patch] x11-toolkits/py-gtk2 does not configure with python2.5 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@FreeBSD.org List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2006 07:30:16 -0000 >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.