Re: how to install new tz data on BSD/OS ?
Hi, BSD/OS 2.1 uses the new zoneinfo but not BSD/OS 1.1. I have one last BSD/OS 1.1 system and I have problems to change its zoneinfo. I got the sources of code and data of tz in ftp://elsie.nci.nih.gov/pub/. 1) zic europe gives : "europe", line ...: input line of unknown type It seems that zic which comes with 1.1 is not compatible with new source format. 2) I got zoneinfo sources and I compiled zic with 'make zic'. First, I had to remove yearistype in zip entry in Makefile since yearistype.sh doesn't appear in sources. I got a new zip which could compile the tz data. I did "zip europe" and "zip -l Europe/Paris" but /etc/localtime stays the same. I copy Europe/Paris to /etc/localtime and this time, the perl script "http://wsspinfo.cern.ch/file/find_dst.pl" says : Today is Fri Sep 20 13:12:31 1996, DST is off The current value of TZ is <not set> No DST change in the next 20 weeks instead of : Today is Fri Sep 20 15:12:7 1996, DST is on The current value of TZ is <not set> The next DST change will be Sun Sep 29 2:59:59 1996 one second later it will be Sun Sep 29 2:0:0 1996 as before the installation of the new /etc/localtime. Any idea about the problem ? Thanks in advance for your help. Gildas. -- Gildas PERROT, perrot@francenet.fr __o FranceNet, 28 rue Desaix, 75015 Paris ---_ \<,_ ---- (_)/ (_)
Date: Fri, 20 Sep 1996 15:19:42 +0200 I copy Europe/Paris to /etc/localtime Be careful; you can't `cp Europe/Paris /etc/localtime' since /etc/localtime is a symbolic link, and the cp screws up whatever file /etc/localtime was pointing to. You may have to recover your old data before proceeding. 1) zic europe gives : "europe", line ...: input line of unknown type It seems that zic which comes with 1.1 is not compatible with new source format. Correct. "http://wsspinfo.cern.ch/file/find_dst.pl" says : Today is Fri Sep 20 13:12:31 1996, DST is off The current value of TZ is <not set> No DST change in the next 20 weeks Hmmm. I just fired up an old BSD/386 1.1 host here and reproduced your problem. Apparently the BSD/386 1.1 runtime has limited table sizes and can't handle the current French rules. (This problem doesn't occur with old SunOS releases like SunOS 4.1.4.) To work around the problem, remove old history that you don't need. I got it to work by replacing the rules for Paris and Monaco with the following, which is correct back to 1946: Rule France 1976 only - Mar 28 2:00s 1:00 S Rule France 1976 only - Sep lastSun 2:00s 0 - Zone Europe/Paris 1:00 France CE%sT 1977 1:00 EU CE%sT Zone Europe/Monaco 1:00 France CE%sT 1977 1:00 EU CE%sT A simpler way to work around the problem is to use `CET' instead of `Europe/Paris'; this is correct back to 1977. 2) I got zoneinfo sources and I compiled zic with 'make zic'. First, I had to remove yearistype in zip entry in Makefile since yearistype.sh doesn't appear in sources. Perhaps you didn't get the right version of the sources? I found yearistype.sh in <URL:ftp://elsie.nci.nih.gov/pub/tzdata96k.tar.gz>. You also need <URL:ftp://elsie.nci.nih.gov/pub/tzcode96l.tar.gz>. For BSD/386 1.1 you should build with the command: make TZDIR=/usr/share/zoneinfo It might be easier to install all the new data files rather than just do Europe. You can do this with: make TZDIR=/usr/share/zoneinfo posix_right ./zic -l CET
participants (2)
-
Gildas Perrot -
Paul Eggert