From owner-freebsd-python@FreeBSD.ORG Mon Jan 12 12:23:29 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C513316A5C5 for ; Mon, 12 Jan 2004 12:23:29 -0800 (PST) Received: from smaug.vex.net (smaug.vex.net [66.246.136.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2A1B43D81 for ; Mon, 12 Jan 2004 12:23:08 -0800 (PST) (envelope-from x@xxvii.net) Received: from bee.vii.net (69-90-55-67.fastdsl.ca [69.90.55.67]) by smaug.vex.net (Postfix) with ESMTP id 41B4C4871F for ; Mon, 12 Jan 2004 15:23:09 -0500 (EST) Received: by bee.vii.net (Postfix, from userid 1000) id 341B8BD4B; Mon, 12 Jan 2004 15:23:07 -0500 (EST) From: Tim Middleton Organization: xxvii.net To: python@freebsd.org Date: Mon, 12 Jan 2004 14:34:54 -0500 User-Agent: KMail/1.5.94 X-Whee: Yes, Please. MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200401121434.54521.x@Vex.Net> Subject: mx-base and multiple python versions X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: python@freebsd.org List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 20:23:29 -0000 Just noticing that when i have py23-mx-base-2.0.4 installed and I try to install py21-mx-base-2.0.4 (using PYTHON_VERSION=python2.1 make), i get the error: An older version of lang/py-mx-base is already installed (py23-mx-base-2.0.4)You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. I get around it with a FORCE_PKG_REGISTER ... but it seems to me maybe the bsd.python.mk isn't doing all the magic it should be... -- Tim Middleton | Cain Gang Ltd | "Who is Ungit?" said he, still holding x@veX.net | www.Vex.Net | my hands. --C.S.Lewis (TWHF) From owner-freebsd-python@FreeBSD.ORG Mon Jan 12 12:23:39 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AFF016A4D6 for ; Mon, 12 Jan 2004 12:23:39 -0800 (PST) Received: from smaug.vex.net (smaug.vex.net [66.246.136.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4CBD43D69 for ; Mon, 12 Jan 2004 12:23:08 -0800 (PST) (envelope-from x@xxvii.net) Received: from bee.vii.net (69-90-55-67.fastdsl.ca [69.90.55.67]) by smaug.vex.net (Postfix) with ESMTP id 84941486FE for ; Mon, 12 Jan 2004 15:23:08 -0500 (EST) Received: by bee.vii.net (Postfix, from userid 1000) id 87C77BD48; Mon, 12 Jan 2004 15:23:06 -0500 (EST) From: Tim Middleton Organization: xxvii.net To: python@freebsd.org Date: Mon, 12 Jan 2004 14:45:46 -0500 User-Agent: KMail/1.5.94 X-Whee: Yes, Please. MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200401121445.46756.x@Vex.Net> Subject: psycopg and python 2.1 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: python@freebsd.org List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 20:23:39 -0000 Next py21 problem (obviously building this stuff for zope... sigh)... if you try to set the environment PYTHON_VERSION=python2.1 the py-psycopg port will not build... this is because it uses PYTHON_VERSION variable for its own purposes, and it screws up the paths used in configure. Work around is to use -D PYTHON_VERSION=python2.1 on the make command line. It seems to me that the bsd.python.mk file shouldn't use quite so generic looking environment variables, or they are bound to clash with some software build environments as they have here eventually. If something like FREEBSD_PY_VER (just pulling that out of the air) was used, it would likely never clash with anything not FREEBSD specific. This isn't a huge issue as the work around is easy above... and hopefully the need for python 2.1 dies soon (as it will for me with Zope 2.7)... so i don't want to PR it... but just thought i'd raise the issue of clashing environment variables on this list in case anyone wants to think about it... -- Tim Middleton | Cain Gang Ltd | "Who is Ungit?" said he, still holding x@veX.net | www.Vex.Net | my hands. --C.S.Lewis (TWHF) From owner-freebsd-python@FreeBSD.ORG Mon Jan 12 18:11:48 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 037C716A4CE for ; Mon, 12 Jan 2004 18:11:48 -0800 (PST) Received: from smtp105.mail.sc5.yahoo.com (smtp105.mail.sc5.yahoo.com [66.163.169.225]) by mx1.FreeBSD.org (Postfix) with SMTP id 7874743D1F for ; Mon, 12 Jan 2004 18:11:46 -0800 (PST) (envelope-from kaeru@pd.jaring.my) Received: from unknown (HELO ?219.95.34.186?) (khairil?yusof@219.95.34.186 with plain) by smtp105.mail.sc5.yahoo.com with SMTP; 13 Jan 2004 02:11:45 -0000 From: Khairil Yusof To: python@freebsd.org In-Reply-To: <200401121434.54521.x@Vex.Net> References: <200401121434.54521.x@Vex.Net> Content-Type: text/plain Message-Id: <1073959894.87595.5.camel@wolverine.home.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.5.1FreeBSD GNOME Team Port Date: Tue, 13 Jan 2004 10:11:35 +0800 Content-Transfer-Encoding: 7bit Subject: Re: mx-base and multiple python versions X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2004 02:11:48 -0000 On Mon, 2004-01-12 at 14:34 -0500, Tim Middleton wrote: > An older version of lang/py-mx-base is already installed > (py23-mx-base-2.0.4)You may wish to ``make deinstall'' and install this > port again by ``make reinstall'' to upgrade it properly. > I get around it with a FORCE_PKG_REGISTER ... but it seems to me maybe the > bsd.python.mk isn't doing all the magic it should be... This happens to me, when I try to build any port that sets PYTHON_VERSION (any Zope port) also. -- "You keep using that word. I do not think it means what you think it means." FreeBSD 5.2-CURRENT i386 10:02am up 7 days, 22:18, 4 users, load averages: 0.75, 0.96, 0.83 From owner-freebsd-python@FreeBSD.ORG Wed Jan 14 07:51:15 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5F4016A4CE; Wed, 14 Jan 2004 07:51:15 -0800 (PST) Received: from ipop3.tm.net.my (service.tm.net.my [202.188.95.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDAC743D54; Wed, 14 Jan 2004 07:51:12 -0800 (PST) (envelope-from kaeru@streamyx.com) Received: from av4 ([172.20.0.21]) by ipop3.tm.net.my (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0HRH00CCBLD8YC@ipop3.tm.net.my>; Wed, 14 Jan 2004 23:51:08 +0800 (SGT) Received: from wolverine.home.net ([219.95.34.186]) by ipop1.tm.net.my (iPlanet Messaging Server 5.1 HotFix 1.6 (built Oct 18 2002)) with ESMTP id <0HRH00ELRLD79P@ipop1.tm.net.my>; Wed, 14 Jan 2004 23:51:08 +0800 (SGT) Received: from wolverine.home.net (localhost.home.net [127.0.0.1]) by wolverine.home.net (8.12.10/8.12.10) with ESMTP id i0EFp4x3056030; Wed, 14 Jan 2004 23:51:04 +0800 Received: (from kaeru@localhost) by wolverine.home.net (8.12.10/8.12.10/Submit) id i0EFp26e056029; Wed, 14 Jan 2004 23:51:02 +0800 (MYT envelope-from kaeru) Date: Wed, 14 Jan 2004 23:51:01 +0800 From: Khairil Yusof To: gnome@freebsd.org Message-id: <20040114155101.GA35788@streamyx.com> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=8t9RHnE3ZwKMSgU+ Content-disposition: inline User-Agent: Mutt/1.4.1i cc: python@freebsd.org Subject: libxml2 python subport X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2004 15:51:15 -0000 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Some Zope ports, require libxml2 python bindings for python 2.1. Currently with libxml2, you can only have a package with one version only (specified at runtime). bsd.python.mk, and most python ports, already support having multiple versions with the same origin. eg. py21-foo, py23-foo with PKG_PREFIX Looking in the ports tree, I see that databases/py-PyGreSQL solves this problem by being a subport of datbases/postgresql7 I'm thinking of making a subport textproc/py-libxml2, so that instead of a WITH_PYTHON knob, users can just build the libxml2 python package as a port, and have python libxml2 packages for different python versions if needed. Is this the right way to do it? If it's ok, I'll start working on a patch and port. --=20 PGP ID:6FFEFD7F FreeBSD 5.2-CURRENT i386 11:34pm up 9 days, 11:50, 4 users, load averages: 1.65, 1.58, 1.58 --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFABWVgDAqnLW/+/X8RAqrUAKDd5y/W0KGHL/XNYAYT6WovPsxnlQCffJV9 j9mQst3bBgX+joSPPyuQ+Ec= =o7QF -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+-- From owner-freebsd-python@FreeBSD.ORG Wed Jan 14 09:42:57 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB07716A4CE; Wed, 14 Jan 2004 09:42:57 -0800 (PST) Received: from creme-brulee.marcuscom.com (rrcs-midsouth-24-172-16-118.biz.rr.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50E2643D5E; Wed, 14 Jan 2004 09:42:56 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from [10.2.1.4] (vpn-client-4.marcuscom.com [10.2.1.4]) i0EHfrsm093613; Wed, 14 Jan 2004 12:41:59 -0500 (EST) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Khairil Yusof In-Reply-To: <20040114155101.GA35788@streamyx.com> References: <20040114155101.GA35788@streamyx.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-zKSD61UKCQd+EfbKZI7z" Organization: MarcusCom, Inc. Message-Id: <1074102190.774.17.camel@gyros> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 14 Jan 2004 12:43:10 -0500 X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on creme-brulee.marcuscom.com cc: FreeBSD GNOME Users cc: python@freebsd.org Subject: Re: libxml2 python subport X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2004 17:42:57 -0000 --=-zKSD61UKCQd+EfbKZI7z Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2004-01-14 at 10:51, Khairil Yusof wrote: > Some Zope ports, require libxml2 python bindings for python 2.1. >=20 > Currently with libxml2, you can only have a package with one version > only (specified at runtime). >=20 > bsd.python.mk, and most python ports, already support having multiple > versions with the same origin. eg. py21-foo, py23-foo with PKG_PREFIX >=20 > Looking in the ports tree, I see that databases/py-PyGreSQL solves this > problem by being a subport of datbases/postgresql7 >=20 > I'm thinking of making a subport textproc/py-libxml2, so that instead > of a WITH_PYTHON knob, users can just build the libxml2 python package > as a port, and have python libxml2 packages for different python > versions if needed. >=20 > Is this the right way to do it? If it's ok, I'll start working on a > patch and port. Is this really necessary? libxml2 builds with Python supported enabled by default. No one has complained thus far. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-zKSD61UKCQd+EfbKZI7z Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBABX+ub2iPiv4Uz4cRAk/dAJ9zSrYHvzzlWZDnkPiFjegULo5S1wCdHYkx pvbDx3PmNnamqlNcPn+ARTQ= =H+qI -----END PGP SIGNATURE----- --=-zKSD61UKCQd+EfbKZI7z-- From owner-freebsd-python@FreeBSD.ORG Wed Jan 14 19:40:51 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9CE816A4CE for ; Wed, 14 Jan 2004 19:40:51 -0800 (PST) Received: from smtp102.mail.sc5.yahoo.com (smtp102.mail.sc5.yahoo.com [216.136.174.140]) by mx1.FreeBSD.org (Postfix) with SMTP id 8333743D46 for ; Wed, 14 Jan 2004 19:40:44 -0800 (PST) (envelope-from kaeru@pd.jaring.my) Received: from unknown (HELO ?219.95.34.186?) (khairil?yusof@219.95.34.186 with plain) by smtp102.mail.sc5.yahoo.com with SMTP; 15 Jan 2004 03:40:42 -0000 From: Khairil Yusof To: Joe Marcus Clarke In-Reply-To: <1074102190.774.17.camel@gyros> References: <20040114155101.GA35788@streamyx.com> <1074102190.774.17.camel@gyros> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-9u7EM5pI7yKEJ69yCblC" Message-Id: <1074138029.95771.26.camel@wolverine.home.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.5.2FreeBSD GNOME Team Port Date: Thu, 15 Jan 2004 03:40:30 +0000 cc: FreeBSD GNOME Users cc: python@freebsd.org Subject: Re: libxml2 python subport X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2004 03:40:52 -0000 --=-9u7EM5pI7yKEJ69yCblC Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2004-01-14 at 12:43 -0500, Joe Marcus Clarke wrote: > Is this really necessary? libxml2 builds with Python supported enabled > by default. No one has complained thus far. I ran into a problem, in porting a zope component that's dependent on libxml2. I'll try to make the situation clearer. zope ports uses python2.1 (lang/python21) third-party python modules/ports are installed by default for latest version (in this case 2.3) So any zope port, will not find required dependencies (or work if you hack it) because it will look in python2.1 directory, not python2.3. I'm trying to figure out the best way to have multiple python versions of libxml2 python bindings based on existing ports. - sub port (which is how the rpm is done) and will always automatically follow latest libxml2 port. or - independent port using python binding tarballs released by xmlsoft. but you always have to chase libxml2 port everything new version is released. or - tell users you can only have one libxml2 python binding for one python version at runtime build only, using with PYTHON_VERSION=3DX Please advise, on what you think is best. --=20 "You keep using that word. I do not think it means what you think it means."=20 FreeBSD 5.2-CURRENT i386=20 3:40am up 9 days, 23:56, 1 user, load averages: 0.70, 0.65, 0.59 --=-9u7EM5pI7yKEJ69yCblC Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBABgusDAqnLW/+/X8RAiajAJ9gMsAWkA9F9wAfI5yOgxkd/kMtAQCeMVIp V0lKLNAIj/0CkEd2cfxJUWQ= =luwf -----END PGP SIGNATURE----- --=-9u7EM5pI7yKEJ69yCblC-- From owner-freebsd-python@FreeBSD.ORG Thu Jan 15 11:33:02 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CE9416A4D2; Thu, 15 Jan 2004 11:33:02 -0800 (PST) Received: from creme-brulee.marcuscom.com (rrcs-midsouth-24-172-16-118.biz.rr.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65A5343D62; Thu, 15 Jan 2004 11:32:44 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from [10.2.1.4] (vpn-client-4.marcuscom.com [10.2.1.4]) i0FJVesm006202; Thu, 15 Jan 2004 14:31:40 -0500 (EST) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Khairil Yusof In-Reply-To: <1074138029.95771.26.camel@wolverine.home.net> References: <20040114155101.GA35788@streamyx.com> <1074102190.774.17.camel@gyros> <1074138029.95771.26.camel@wolverine.home.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-WWXntOU0VuB4sQyxkhjQ" Organization: MarcusCom, Inc. Message-Id: <1074195184.766.24.camel@gyros> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 15 Jan 2004 14:33:04 -0500 X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on creme-brulee.marcuscom.com cc: FreeBSD GNOME Users cc: python@freebsd.org Subject: Re: libxml2 python subport X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2004 19:33:02 -0000 --=-WWXntOU0VuB4sQyxkhjQ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2004-01-14 at 22:40, Khairil Yusof wrote: > On Wed, 2004-01-14 at 12:43 -0500, Joe Marcus Clarke wrote: >=20 > > Is this really necessary? libxml2 builds with Python supported enabled > > by default. No one has complained thus far. >=20 > I ran into a problem, in porting a zope component that's dependent on > libxml2. >=20 > I'll try to make the situation clearer. >=20 > zope ports uses python2.1 (lang/python21) > third-party python modules/ports are installed by default for latest > version (in this case 2.3) >=20 > So any zope port, will not find required dependencies (or work if you > hack it) because it will look in python2.1 directory, not python2.3. >=20 > I'm trying to figure out the best way to have multiple python versions > of libxml2 python bindings based on existing ports. >=20 > - sub port (which is how the rpm is done) and will always automatically > follow latest libxml2 port. >=20 > or >=20 > - independent port using python binding tarballs released by xmlsoft. > but you always have to chase libxml2 port everything new version > is released. >=20 > or >=20 > - tell users you can only have one libxml2 python binding for one > python version at runtime build only, using with PYTHON_VERSION=3DX >=20 > Please advise, on what you think is best. Go ahead and create a slave port to libxml2 that installs the Python bindings needed for zope. Once that's done, I'll update libxml2 to support slaves. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-WWXntOU0VuB4sQyxkhjQ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBABurwb2iPiv4Uz4cRAsW4AJ4m64a0mQL7V78FIefXq2B6muy/kwCgg6NV 8E3+gT3i7MfIStE4+v4HMN0= =hPwi -----END PGP SIGNATURE----- --=-WWXntOU0VuB4sQyxkhjQ--