From perky@akaraka.yonsei.ac.kr  Sun Jan 13 03:50:30 2002
Return-Path: <perky@akaraka.yonsei.ac.kr>
Received: from akaraka.yonsei.ac.kr (akaraka.yonsei.ac.kr [165.132.134.53])
	by hub.freebsd.org (Postfix) with ESMTP
	id D2A0C37B416; Sun, 13 Jan 2002 03:50:29 -0800 (PST)
Received: (from perky@localhost)
	by akaraka.yonsei.ac.kr (8.11.6/8.11.4) id g0DBoQ458216;
	Sun, 13 Jan 2002 20:50:26 +0900 (KST)
	(envelope-from perky)
Message-Id: <200201131150.g0DBoQ458216@akaraka.yonsei.ac.kr>
Date: Sun, 13 Jan 2002 20:50:26 +0900 (KST)
From: Hye-Shik Chang <perky@fallin.lv>
Reply-To: Hye-Shik Chang <perky@fallin.lv>
To: FreeBSD-gnats-submit@freebsd.org
Cc: "HAYASHI Yasushi" <yasi@yasi.to>,
	"Neil Blakey-Milner" <nbm@freebsd.org>
Subject: Fix port : www/zope (make compatible with Python 2.2)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         33836
>Category:       ports
>Synopsis:       Fix port : www/zope (make compatible with Python 2.2)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 13 04:00:03 PST 2002
>Closed-Date:    Sun Jan 13 10:23:25 PST 2002
>Last-Modified:  Sun Jan 13 10:25:22 PST 2002
>Originator:     Hye-Shik Chang
>Release:        FreeBSD 4.5-PRERELEASE i386
>Organization:
Yonsei University
>Environment:
System: FreeBSD akaraka.yonsei.ac.kr 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #0: Mon Dec 24 06:07:50 KST 2001 root@akaraka.yonsei.ac.kr:/usr/src/sys/compile/RYOKO i386

>Description:
- temporary fix for compatibility to python 2.2

(Makefile.pre.in was set obsolete by BDFL of Python)

>How-To-Repeat:

>Fix:

diff -ruN zope.orig/Makefile zope/Makefile
--- zope.orig/Makefile	Sat Oct 20 06:09:35 2001
+++ zope/Makefile	Sun Jan 13 20:47:36 2002
@@ -7,7 +7,7 @@
 
 PORTNAME=	zope
 PORTVERSION=	2.4.2
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	www python zope
 MASTER_SITES=	http://www.zope.org/Products/Zope/${PORTVERSION}/
 DISTNAME=	Zope-${PORTVERSION}-src
@@ -49,6 +49,19 @@
 		VERSION=${PORTVERSION} \
 		WEBBASEDIR=${WEBBASEDIR}
 
+.include <bsd.port.pre.mk>
+
+MF_TEMPLATE=	${ZOPEBASEDIR}/lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/Makefile.pre.in
+post-patch:
+.if ${PYTHON_REL} >= 220
+# temporary trick until next release
+	@${SED} -e 's,.*config\(/Makefile.pre.in\).*,    return "${MF_TEMPLATE}",' \
+		-e 's,.*sys.version.*,,' \
+		-e 's,\(cp %s \.\),if [ ! -f ./Makefile.pre.in ]; then (\1); fi,' \
+		${WRKSRC}/inst/do.py > ${WRKSRC}/inst/do.py.tmp \
+		&& ${MV} -f ${WRKSRC}/inst/do.py.tmp ${WRKSRC}/inst/do.py
+.endif
+
 # I decided to consider the whole souce tree to be part of the package
 # since in there, Zope can live on its own. I can use Zope's own building
 # mechanism.
@@ -121,4 +134,4 @@
 	@${ECHO} "===>   For Apache changes see ${APACHE_CONFDIR}/apache.conf.Zope-Changes."
 	@${ECHO} "===>   Zope.cgi and pcgi-wrapper live in ${CGIBINDIR}."
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:

From: "HAYASHI Yasushi" <yasi@yasi.to>
To: <FreeBSD-gnats-submit@freebsd.org>, <perky@fallin.lv>
Cc: "Neil Blakey-Milner" <nbm@freebsd.org>, <yasi@yasi.to>
Subject: Re: ports/33836: Fix port : www/zope (make compatible with Python 2.2)
Date: Sun, 13 Jan 2002 22:56:53 +0900

 Dear Chang,
 (This is repost from GNATS web page)
 
 ----- Original Message -----
 From: "Hye-Shik Chang" <perky@fallin.lv>
 To: <FreeBSD-gnats-submit@freebsd.org>
 Cc: "HAYASHI Yasushi" <yasi@yasi.to>; "Neil Blakey-Milner" <nbm@freebsd.org>
 Sent: Sunday, January 13, 2002 8:50 PM
 Subject: Fix port : www/zope (make compatible with Python 2.2)
 
 
 >
 > >Submitter-Id: current-users
 > >Originator: Hye-Shik Chang
 > >Organization: Yonsei University
 > >Confidential: no
 > >Synopsis: Fix port : www/zope (make compatible with Python 2.2)
 (snip)
 > >Description:
 > - temporary fix for compatibility to python 2.2
 >
 > (Makefile.pre.in was set obsolete by BDFL of Python)
 
 Thanks for your work.
 
 Your Makefile can build Zope-2.4.2 under python-2.2,
 but this binary doesn't run correctly when I tried.
 
 
 How-To-Repeat:
   (1) Run Zope
         # /usr/local/www/Zope/start -w 8080 &
   (2) Login Zope via WWW browser
         $ netscape http://localhost:8080/manage
   (3) Select "Logout" from right-upper menu
   (4) An error occurs.
       > Zope Error
       >
       > Zope has encounterd an error while publishing this resource.
       >
       > Error Type: KeyError
       > Error Value: _logout_path
 
  I've not seen this error under python-2.1.1.
 
 
 

From: Hye-Shik Chang <perky@akaraka.yonsei.ac.kr>
To: Hye-Shik Chang <perky@fallin.lv>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/33836: Fix port : www/zope (make compatible with Python 2.2)
Date: Mon, 14 Jan 2002 02:33:09 +0900

 close this PR please.
 new patch is available at ports/33844
State-Changed-From-To: open->closed 
State-Changed-By: okazaki 
State-Changed-When: Sun Jan 13 10:23:25 PST 2002 
State-Changed-Why:  
superseded by ports/33844 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33836 
>Unformatted:
