Alternative path to tzdb.dat
Fridrich Strba
fridrich.strba at suse.com
Sat Sep 30 20:06:52 UTC 2017
Hello, Andrew,
On 30/09/17 20:41, Andrew Hughes wrote:
> We did try to get the original patch upstream some time ago, but they
> were reluctant to accept such a change if a symlink would do. We could
> try again though.
Yeah, the symlink is less then optimal solution. You have to symlink in
post-install phase, and then you have to have the system-wide tzdb.dat
present. That one needs a tzdb tool that needs Java. So the chicken-egg
problem comes.
With this patch, one can filter out the timezone-java package in build
environment when building the tzdb tool and still the user has the
advantage of fresh timezone information as the system-wide one is
updated on every release of the data...
>
> The only thing I note about the patch is that you retrieve homeDir via
> a doPrivileged call, when you're already inside a doPrivileged block.
> Was this intentional?
Nah, just an oversight. Should be reading more of the context. Attached
is the new, simplified patch.
Cheers
F.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alternative-tzdb_dat.patch
Type: text/x-patch
Size: 2740 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20170930/2a5e4788/alternative-tzdb_dat-0001.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/20170930/2a5e4788/signature-0001.asc>
More information about the distro-pkg-dev
mailing list