From owner-freebsd-java@FreeBSD.ORG Fri Mar 4 17:57:32 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 A9544106564A for ; Fri, 4 Mar 2011 17:57:32 +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 04FD38FC15 for ; Fri, 4 Mar 2011 17:57:31 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA02039 for ; Fri, 04 Mar 2011 19:41:38 +0200 (EET) (envelope-from avg@freebsd.org) Message-ID: <4D712451.9080003@freebsd.org> Date: Fri, 04 Mar 2011 19:41:37 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101213 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-java@freebsd.org X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: on java and timezone data again 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: Fri, 04 Mar 2011 17:57:32 -0000 First, it's really inconvenient to rebuild jdk/jre ports/packages each time timezone data changes (and that happens a lot recently). Then, it's a little bit of PITA to download from Sun/Oracle. And the data is not shared between possibly multiple installations of Java. In various linux distributions they seem to have tzdata-java package built from standard timezone data. The package installs timezone files into a shared javazi directory and apparently all java packages are patched to use that directory instead of private lib/zi directory. I looked into the debian package specification and the process seems to be really simple. Apparently there is a javazic utility that converts standard timezone data into the java format. As I understand that tool is a part of JDK, but is not actually installed. E.g. during openjdk build the javazic.jar is produced (in build/bsd-amd64/btjars). So, potentially we could create a package for javazic, e.g. based on openjdk6. Then we could build our own tzdata-java packages. Then we would have to patch all the jdks (with sources). At the moment I have only a very vague idea about how to represent the above in ports. Or if we need to do that at all. -- Andriy Gapon