[tz] Daylight saving in Trkey problem

Brian Inglis Brian.Inglis at SystematicSw.ab.ca
Sat Nov 5 08:09:34 UTC 2016

On 2016-11-04 13:00, Paul Eggert wrote:
> On 11/03/2016 11:16 PM, Caner Aydinbey wrote:
>> i need to do sha512, i do as described but it doesnot work.
> I guess Oracle's TZUpdater tool normally checks your tzdata updates
> against a central server maintained by Oracle, and verifies that your
> update matches a checksum on file with the central server. This
> prevents users from installing their own changes (and also poses some
> interesting privacy and security implications -- did you know about
> that central server?).
> If I'm right, it sounds like you could fix things by running a shell
> command like this:
> sha512sum tzdata2016g.tar.gz | awk '{print $1}' >tzdata2016g.tar.gz.sha512
> just before running TZUpdater. Here 'sha512sum' is the GNU core
> utilities SHA-512 checksummer and 'awk' is POSIX Awk. The
> documentation in
> http://www.oracle.com/technetwork/java/javase/tzupdater-readme-136440.html
> is unclear about this, though. For clarity, please ask Oracle tech
> support, as this mailing list is a generic one and we aren't expert
> in Oracle's quirks.
> You might also consider upgrading to 2016i instead of bothering with 2016g.

Try the attached script extracted from a larger one if it gets thru the filters.

Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
-------------- next part --------------
# tz-java-fix - get latest tz data, untar, fix, update java

# constants

# variables

# tmp dir
mkdir -p $tmp/

# get remote links to latest releases
wget -nv -N -P $tmp/ --retr-symlinks=no $site/tzdata-latest.tar.gz	

# get remote name from link contents
mv -fv $tmp/tzdata-latest.tar.gz $tmp/tzdata-latest
latest=$(readlink $tmp/tzdata-latest)

# get release from remote name

# set up local names

wget -nv -N -P $tmp/ $site/$latest
# tmp dir for editing Makefile
mkdir -p $tmp/$datadir/

tar -xf $tmp/$targz -C $tmp/$datadir/
sed -i "/^\s*VERSION\s*=\s*/s/\s*=\s*.*$/= $release/" $tmp/$datadir/Makefile
cd $tmp/$datadir/ 
tar -czf $tmp/tzdata-latest.tar.gz *
sha512sum $tmp/tzdata-latest.tar.gz | \
    sed 's/\s.*$//' > $tmp/tzdata-latest.tar.gz.sha512 
java -jar /usr/share/java/tzupdater.jar -l file://$tmp/tzdata-latest.tar.gz

More information about the tz mailing list