From owner-freebsd-questions@FreeBSD.ORG Sat Aug 25 21:01:29 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2CF016A46B for ; Sat, 25 Aug 2007 21:01:29 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from eunet.yu (smtpclu-1.eunet.yu [194.247.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id 2FDC813C469 for ; Sat, 25 Aug 2007 21:01:28 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from nyx.localhost (adsl-221-254.eunet.yu [213.198.221.254]) by eunet.yu (8.13.6/8.13.6) with ESMTP id l7PL1ME1018080; Sat, 25 Aug 2007 23:01:23 +0200 Message-Id: <200708252101.l7PL1ME1018080@eunet.yu> Date: Sat, 25 Aug 2007 22:56:41 +0200 From: Nikola Lecic To: Kirk Strauser In-Reply-To: References: X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) X-Operating-System: FreeBSD 6.2-RELEASE X-Face: pbl6-.[$G'Fi(Ogs2xlXP-V6{3||$Y[LOYs&~GJoikj'cVjcFC[V7du;;0~6nO= [Vi2?uU1Pq~,=Adj@,T:|"`$AF~il]J.Nz#2pU',Y7.{B;m/?{#sO^Dvo$rnmY6] Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-EUNET-AVAS-Milter-Version: 2.0.0 X-AVAS-Virus-Status: clean X-AVAS-Spamd-Symbols: BAYES_50,TW_ZP,UNPARSEABLE_RELAY X-AVAS-Spam-Score: 0.1 Cc: freebsd-questions@freebsd.org Subject: Re: ports/UPDATING instructions and Python 2.4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2007 21:01:29 -0000 On Sat, 25 Aug 2007 09:15:52 -0500 Kirk Strauser wrote: > I need to keep Python 2.4 on my system to run Zope (which isn't =20 > compatible with 2.5). So, I dutifully followed the instructions =20 > under /usr/ports/UPDATING starting with "If want to keep 2.4.x =20 > installed alongside 2.5.x [...]". When I came back a little later, =20 > all of my dependent ports had been upgraded from py24-* to py25-*, =20 > effectively killing my webserver. >=20 > Could someone else take a look at those instructions and see if they =20 > make sense - they look a little suspicious to me - or if there is =20 > some gotcha that I might have missed? Thanks. Hello Kirk, A couple of thoughts that could be useful. The instructions explain how to keep both 2.4 and 2.5 versions of _Python_itself_, that's all. The "PYTHON_DEFAULT_VERSION=3Dpython2.5" line of /etc/make.conf serves as an indicator to all new applications to avoid confusion if python-2.4 is installed alongside. You now probably have something like: # ls -d /var/db/pkg/py* /var/db/pkg/python24-2.4.4_1 /var/db/pkg/python25-2.5.1 /var/db/pkg/py25-cairo-1.4.0_1 /var/db/pkg/py25-chardet-1.0_3 [... etc., py25-* only ...] Zope feels fine in this situation: # cd /usr/ports/www/zope3 # make configure [...] =3D=3D=3D> Patching for zope-3.3.1 =3D=3D=3D> Applying FreeBSD patches for zope-3.3.1 =3D=3D=3D> zope-3.3.1 depends on file: /usr/local/bin/python2.4 - found =3D=3D=3D> Configuring for zope-3.3.1 Configuring Zope installation Using Python interpreter at /usr/local/bin/python2.4 (The same for other py-* ports that are fixed to 2.4 interpreter (i.e. www/py-pylons).) Now, I'm trying to understand what happened to your webserver: you said that changing py24-* to py25-* broke it. Maybe I'm mistaken, but I see just 7 py-* ports that have any relationship with Zope. These are:=20 databases/py-psycopg [WITH_ZOPE optional] devel/py-zopeInterface devel/py-twistedCore [dependent on devel/py-zopeInterface] lang/py-mx-base [WITH_ZOPE optional] x11-toolkits/py-kiwi [optionally linked with devel/py-zopeInterface] devel/py-zconfig [not sure about this one] textproc/py-zpt [not sure about this one] The presence of 'WITH_ZOPE' flag will force the port to use correct version of Python:=20 # cd /usr/ports/lang/py-mx-base/ # make USE_ZOPE=3Dyes =3D=3D=3D> py23-mx-base-2.0.6 depends on file: /usr/local/bin/python2.3= - not found =3D=3D=3D> Verifying install for /usr/local/bin/python2.3 in /usr/port= s/lang/python23 (ZOPE_VERSION is also available.) So where is the connection between zope and py-* ports that crashed your webserver? Please elaborate on this, i.e. how does you webserver depend on py24-*? In meantime, if you just need py24- versions of several ports, you can do something like this: # portupgrade -f -r -m "PYTHON_VERSION=3D2.4" py25-imaging This will install py24-imaging and rebuild ports dependent on it (e.g. graphics/skencil). Use '-n' flag to see what will happen first. This is a quick and non-elegant help to get your webserver working again. If you provide more information you will surely get more in-depth explanation and more elegant solution from someone, preferably from other Zope users. Nikola Le=C4=8Di=C4=87