From owner-freebsd-java@FreeBSD.ORG  Tue Dec 20 22:10:12 2011
Return-Path: <owner-freebsd-java@FreeBSD.ORG>
Delivered-To: freebsd-java@hub.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 77BFF1065672
	for <freebsd-java@hub.freebsd.org>;
	Tue, 20 Dec 2011 22:10:12 +0000 (UTC)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org
	[IPv6:2001:4f8:fff6::28])
	by mx1.freebsd.org (Postfix) with ESMTP id F045F8FC08
	for <freebsd-java@hub.freebsd.org>;
	Tue, 20 Dec 2011 22:10:11 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
	by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBKMABqp006869
	for <freebsd-java@freefall.freebsd.org>; Tue, 20 Dec 2011 22:10:11 GMT
	(envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBKMABS6006868;
	Tue, 20 Dec 2011 22:10:11 GMT (envelope-from gnats)
Date: Tue, 20 Dec 2011 22:10:11 GMT
Message-Id: <201112202210.pBKMABS6006868@freefall.freebsd.org>
To: freebsd-java@FreeBSD.org
From: Jilles Tjoelker <jilles@stack.nl>
Cc: 
Subject: Re: java/163456: [patch] java/openjdk6: build and distribute open
 timezone data (tzdata)
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Jilles Tjoelker <jilles@stack.nl>
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Dec 2011 22:10:12 -0000

The following reply was made to PR java/163456; it has been noted by GNATS.

From: Jilles Tjoelker <jilles@stack.nl>
To: Greg Lewis <glewis@eyesbeyond.com>
Cc: Jason Helfman <jhelfman@experts-exchange.com>,
	FreeBSD-gnats-submit@freebsd.org, jkim@freebsd.org
Subject: Re: java/163456: [patch] java/openjdk6: build and distribute open
 timezone data (tzdata)
Date: Tue, 20 Dec 2011 23:05:04 +0100

 On Tue, Dec 20, 2011 at 09:47:57AM -0800, Greg Lewis wrote:
 > On Mon, Dec 19, 2011 at 10:39:04AM -0800, Jason Helfman wrote:
 > > Timezone data hasn't been updated since 2010 in OpenJDK. This patch downloads open timezone data, uses the built java tool
 > > javazic.jar to translate files so java may use them, and distributes into the correct location.
 
 > > Builds cleanly in Tinderbox => http://jgh.devio.us/files/logs/openjdk6-b24_1.log.gz
 
 Great.
 
 > > This patch encapsulates the spirit of ports/161945, and potentially could be seen as a duplicate if compilefontconfig.jar
 > > were copied into ${PREFIX}/openjdk6/jre/lib/
 
 > Thanks for doing this!  I wonder if with a little more work we couldn't
 > make this work for all of the JDK ports instead of having to reimplement
 > it for openjdk7, jdk16, jdk15, diablo, etc.
 
 > I.e., can we pull this out into a separate port that installs the
 > appropriate zoneinfo files into somewhere like
 > ${LOCALBASE}/share/java/zoneinfo and then symlink the zi directory in all
 > of the jdk and jre ports to that directory.
 
 This would avoid the need to update and recompile all JDKs whenever
 tzdata changes.
 
 > I haven't looked deeply into your change but I assume the biggest problem
 > with this is that you need a JDK with javazic.jar already installed before
 > you can process the raw zoneinfo files so we'd be creating a circular
 > dependency.
 
 Yes, this causes a bootstrapping problem. It is not much worse than the
 bootstrapping problem Java already has, though. The bootstrap
 requirement changes from a JDK to a JDK-with-javazic.jar.
 
 Also, the files generated by javazic.jar are architecture-independent so
 this should not make bootstrapping a new architecture harder (except
 that ports has no concept of architecture-independent binary packages).
 
 Another alternative is a second tzdata-java port that downloads the
 generated files, so it does not need Java to build.
 
 Don't let this stop you from committing the changes to openjdk6, though.
 
 -- 
 Jilles Tjoelker