Alternative path to tzdb.dat
Fridrich Strba
fridrich.strba at suse.com
Thu Sep 28 17:12:44 UTC 2017
Hello, good people,
For whom it might be interesting, I patched the
sun/util/calendar/ZoneInfoFile.java so that one can specify in
tz.properties an alternative directory for tzdb.dat with the
$JAVA_HOME/jre/lib/ being the fallback whenever the
$JAVA_HOME/jre/lib/tz.properties is not there or the tzdb.dat is not in
the directory specified.
I tested the patch with different cases where tzdb.dat was in the
default position and not in the alternative one, with the opposite, with
the absence of both (where it failed correctly) with different
directories in tz.properties.... It works well for me. This allows me
here not to have to play with symlinks in the post-install phase and
eventually have a non-working java if the position of the system-wide
tzdb.dat changes.
The attached patch applies also quite well to jdk9 where I am testing
the same change right now.
Needless to say, I heavily inspired myself by the patch by Andrew in
icedtea7 and just adapted it to the code in jdk8 and the changed APIs.
For those that could be interested, that is. And also that it does not
sit on my disk only
Cheers
Fridrich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alternative-tzdb_dat.patch
Type: text/x-patch
Size: 2849 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20170928/0e5e0e3a/alternative-tzdb_dat.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20170928/0e5e0e3a/signature.asc>
More information about the distro-pkg-dev
mailing list