On Tuesday 29 August 2006 7:35 am, Schöberle Dániel wrote:
> # ls -l /etc/localtime
> lrwxr-xr-x  1 root  wheel  25 Aug  1 18:55 /etc/localtime ->
> /usr/share/zoneinfo/GMT+0 

So it turns out that building the jdk while a system's
timezone is set to GMT offset 0 will cause this failure.

Here's an update to fix that case (for after unlock):
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/jdk/1.5/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- Makefile    28 Jul 2006 13:18:45 -0000      1.23
+++ Makefile    31 Aug 2006 13:47:25 -0000
@@ -6,8 +6,8 @@
 COMMENT-jre=           "Java2(TM) Standard Edition Runtime Environment v${V}"
 V=                     1.5.0
 DISTNAME=              jdk-1_5_0
-PKGNAME=               jdk-${V}p19
-PKGNAME-jre=           jre-${V}p19
+PKGNAME=               jdk-${V}p20
+PKGNAME-jre=           jre-${V}p20
 
 CATEGORIES=            devel/jdk java
 
Index: patches/patch-j2se_src_share_classes_java_util_TimeZone_java
===================================================================
RCS file: patches/patch-j2se_src_share_classes_java_util_TimeZone_java
diff -N patches/patch-j2se_src_share_classes_java_util_TimeZone_java
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-j2se_src_share_classes_java_util_TimeZone_java        31 Aug 
2006 13:47:26 -0000
@@ -0,0 +1,20 @@
+$OpenBSD$
+--- j2se/src/share/classes/java/util/TimeZone.java.orig        Wed Aug 30 
13:18:08 2006
++++ j2se/src/share/classes/java/util/TimeZone.java     Wed Aug 30 13:19:26 2006
+@@ -748,15 +748,13 @@ abstract public class TimeZone implement
+       }
+       int gmtOffset =  (hours * 60 + num) * 60 * 1000;
+ 
++      zi = ZoneInfoFile.getCustomTimeZone(id, negative ? -gmtOffset : 
gmtOffset);
+       if (gmtOffset == 0) {
+-          zi = ZoneInfoFile.getZoneInfo(GMT_ID);
+           if (negative) {
+               zi.setID("GMT-00:00");
+           } else {
+               zi.setID("GMT+00:00");
+           }
+-      } else {
+-          zi = ZoneInfoFile.getCustomTimeZone(id, negative ? -gmtOffset : 
gmtOffset);
+       }
+       return zi;
+     }

Reply via email to