From owner-freebsd-java@FreeBSD.ORG Tue Jun 21 10:03:47 2011 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B29551065670 for ; Tue, 21 Jun 2011 10:03:47 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0C6958FC16 for ; Tue, 21 Jun 2011 10:03:46 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA13597; Tue, 21 Jun 2011 12:52:38 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1QYxdN-0008M1-T0; Tue, 21 Jun 2011 12:52:37 +0300 Message-ID: <4E0069E3.3040903@FreeBSD.org> Date: Tue, 21 Jun 2011 12:52:35 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110503 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Jilles Tjoelker References: <20110619205449.GC69133@stack.nl> In-Reply-To: <20110619205449.GC69133@stack.nl> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-java@FreeBSD.org Subject: Re: java timezone data files X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2011 10:03:47 -0000 Just in case: http://article.gmane.org/gmane.os.freebsd.devel.java/11638 It would be cool if Someone could produce a proper solution at last. on 19/06/2011 23:54 Jilles Tjoelker said the following: > Various Java ports want a "tzupdater" from Sun/Oracle which can be > annoying to download. I noticed that Ubuntu/Debian do not need this > tzupdater and have a package with timezone data files for Java. It turns > out that these files can be generated on FreeBSD as well. > > A page about the Debian package is at > http://packages.debian.org/sid/tzdata-java > The interesting part is the .debian.tar.gz tarball in the "Download > Source Package" section, for example > http://ftp.de.debian.org/debian/pool/main/t/tzdata/tzdata_2011g-1.debian.tar.gz > This contains a patch debian/patches/java.diff with additional files > that Java needs and a file debian/rules which says how to build it. > The original source simply contains what we have in head > src/contrib/tzdata, plus three files solar87, solar88 and solar89. > > I am using openjdk6 because Debian also uses it for this purpose. > Unfortunately, the port does not install javazic.jar but it is in the > work directory as build/bsd-i586/btjars/javazic.jar . > > After copying our tzdata to a temporary directory and applying Debian's > java.diff to it, the following command creates the data files (in > tzgen-java/): > > java -jar \ > /usr/ports/java/openjdk6/work/build/bsd-i586/btjars/javazic.jar \ > -V 2011g -d tzgen-java \ > africa antarctica asia australasia europe northamerica southamerica \ > etcetera factory backward systemv pacificnew \ > gmt jdk11_backward > > This gives a few error messages but generates files. > > These files are quite similar to those in /usr/local/jdk1.6.0/jre/lib/zi > and Europe/Amsterdam even matches exactly. Replacing the files, java > from jdk1.6.0 still appears to work correctly, although I do not know > how to test this more thoroughly. > -- Andriy Gapon