From owner-freebsd-ports@FreeBSD.ORG Mon Nov 3 15:39:17 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6AC716A4CE for ; Mon, 3 Nov 2003 15:39:17 -0800 (PST) Received: from hotmail.com (bay2-f67.bay2.hotmail.com [65.54.247.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AC5943FE5 for ; Mon, 3 Nov 2003 15:39:15 -0800 (PST) (envelope-from missive@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 3 Nov 2003 15:39:14 -0800 Received: from 208.186.59.185 by by2fd.bay2.hotmail.msn.com with HTTP; Mon, 03 Nov 2003 23:39:12 GMT X-Originating-IP: [208.186.59.185] X-Originating-Email: [missive@hotmail.com] From: "Lee Harr" To: freebsd-ports@freebsd.org Date: Mon, 03 Nov 2003 23:39:12 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 03 Nov 2003 23:39:14.0954 (UTC) FILETIME=[B0E18EA0:01C3A263] Subject: Re: Can't build psycopg with PYTHON_VERSION=python2.1 (for zope) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2003 23:39:17 -0000 >When I try to build database/py-psycopg after setting >PYTHON_VERSION=python2.1 I get this error: > >creating Makefile >./config.status: /usr/local/lib/pythonpython2.1/config/makesetup: not found >===> Building for py21-psycopg-1.1.7 >gmake: Makefile: No such file or directory >gmake: *** No rule to make target `Makefile'. Stop. >*** Error code 2 > I asked on the zope@zope.org list and someone posted this patch: Try patch (in /usr/ports/databases/py-psycopg directory): ================================================== --- Makefile.orig +++ Makefile @@ -30,7 +30,8 @@ CONFIGURE_ARGS= --with-python=${PYTHON_CMD} \ --with-postgres-libraries=${LOCALBASE}/lib \ --with-postgres-includes=${LOCALBASE}/include \ - --with-mxdatetime-includes=${DATETIME_INC} + --with-mxdatetime-includes=${DATETIME_INC} \ + --with-python-version=2.1 DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py DATETIME_INC= ${PYTHON_SITELIBDIR}/mx/DateTime/mxDateTime/ ================================================== which seems to do the trick! Does not look like a general fix, but maybe someone with a better idea how this all fits together could make it work. In the meantime if you need psycopg with zope you can use this method. _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail