doc/FAQ.txt says that zope requires glibc (libc6) to work under Linux Zope 2.1.3 seems to works perfectly (AFAICS) on my Sparc 20 under Linux 2.0.35 with libc5.3.12 and python 1.5.2 however there were two small error messages when starting zope, related to the time.timezone module which doesn't seem to be available (maybe it's a problem when I've compiled python, or it's a libc5 problem, or I've deleted some files, I don't know). For those of you who might be interested here are the two small patches to make it work without error messages (they are attached to this message). before going into production state, did anyone encountered other problems when running zope on a libc5 based system ? I mean what really are the risks ? I don't want to update this installation for now, so if it works I'll keep it. thanks in advance. Jerome ALET - alet@unice.fr - http://cortex.unice.fr/~jerome Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE --- Zope-2.1.3-src/ZServer/medusa/http_server.py Mon Nov 15 22:53:56 1999 +++ zope/ZServer/medusa/http_server.py Mon Feb 7 16:38:00 2000 @@ -718,10 +718,18 @@ return (0, None) def compute_timezone_for_log (): + tz = 0 # default to GMT ? + if hasattr(time, "daylight") : if time.daylight: + if hasattr(time, "altzone") : tz = time.altzone else: + if hasattr(time, "timezone") : tz = time.timezone + else : + if hasattr(time, "timezone") : + tz = time.timezone + if tz > 0: neg = 1 else: --- Zope-2.1.3-src/lib/python/DateTime/DateTime.py Thu Oct 28 19:11:41 1999 +++ zope/lib/python/DateTime/DateTime.py Mon Feb 7 16:41:34 2000 @@ -90,7 +90,11 @@ import sys, os, math, regex, ts_regex, DateTimeZone from string import strip,split,upper,lower,atoi,atof,find,join from time import time, gmtime, localtime, asctime -from time import timezone, strftime, mktime +from time import strftime, mktime +try: + from time import timezone # doesn't seem to be used at all +except: + pass # broken libc5 or other problem ? from types import InstanceType,IntType,FloatType,StringType try: from time import tzname except: tzname=('UNKNOWN','UNKNOWN')
participants (1)
-
Jerome ALET