From owner-freebsd-ports@FreeBSD.ORG Tue Nov 4 00:51:31 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 173E616A4CE for ; Tue, 4 Nov 2003 00:51:31 -0800 (PST) Received: from sbtm.yonsei.net (sbtm.yonsei.net [61.100.191.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DA1A43F75 for ; Tue, 4 Nov 2003 00:51:30 -0800 (PST) (envelope-from perky@sbtm.yonsei.net) Received: by sbtm.yonsei.net (Postfix, from userid 1001) id 9859928415; Tue, 4 Nov 2003 17:51:29 +0900 (KST) Date: Tue, 4 Nov 2003 17:51:29 +0900 From: Hye-Shik Chang To: Lee Harr Message-ID: <20031104085129.GA25486@i18n.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Yonsei University User-Agent: Mutt/1.5.4i cc: freebsd-ports@freebsd.org 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: Tue, 04 Nov 2003 08:51:31 -0000 On Mon, Nov 03, 2003 at 11:39:12PM +0000, Lee Harr wrote: > >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! Here's a generalized one: .if ${PYTHON_REL} < 220 CONFIGURE_ARGS+= --with-python-version=2.1 .endif Regards, Hye-Shik =)