Skip to contentSkip to conversation

package/tzdata: bump to version 2019b

PATCH New Christopher McCrory 2 participants 3 messages Aug 28, 2019 – Aug 30, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/tzdata: bump to version 2019b

Changed _SITE to https.

Add hash for license file.

---
 package/tzdata/tzdata.hash | 6 ++++--
 package/tzdata/tzdata.mk   | 5 +++--
 2 files changed, 7 insertions(+), 4 deletions(-)
package/tzdata/tzdata.hash +4 -2
index 6a0ea17ce9..166d94ada2 100644
@@ -1,2 +1,4 @@
-# From https://mm.icann.org/pipermail/tz-announce/2018-May/000050.html
-sha512 d059fcd381b2f6ecdafcd68fdd2a00451d1bf9b1affeb164ae7cabca2e022d499e77f0706ec3f3091b8e84c2211aa66da6c90937108771f1bf070cfebc105cae	tzdata2018e.tar.gz
+# From https://mm.icann.org/pipermail/tz-announce/2019-July/000056.html
+sha512 c0104078d994e501d80a41bea31364b1390a75c2fbf42968a8343a090e2ac2eddbc58770ca470b192ea19dec89fcc634141a1de703ea2ffa0325176a64afe1fc tzdata2019b.tar.gz
+# Locally computed:
+sha512 0613408568889f5739e5ae252b722a2659c02002839ad970a63dc5e9174b27cf LICENSE
package/tzdata/tzdata.mk +3 -2
index e20c946208..f8e6625e32 100644
@@ -4,13 +4,14 @@
 #
 ################################################################################
 
-TZDATA_VERSION = 2018e
+TZDATA_VERSION = 2019b
 TZDATA_SOURCE = tzdata$(TZDATA_VERSION).tar.gz
-TZDATA_SITE = http://www.iana.org/time-zones/repository/releases
+TZDATA_SITE = https://www.iana.org/time-zones/repository/releases
 TZDATA_STRIP_COMPONENTS = 0
 TZDATA_DEPENDENCIES = host-tzdata
 HOST_TZDATA_DEPENDENCIES = host-zic
 TZDATA_LICENSE = Public domain
+TZDATA_LICENSE_FILES = LICENSE
 
 # Take care when re-ordering this list since this might break zone
 # dependencies
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/2 package/tzdata: bump to version 2019b

Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Christopher" == Christopher McCrory <[email protected]> writes:

Changed _SITE to https.
Add hash for license file.

---
 package/tzdata/tzdata.hash | 6 ++++--
 package/tzdata/tzdata.mk   | 5 +++--
 2 files changed, 7 insertions(+), 4 deletions(-)
package/tzdata/tzdata.hash +0 -2
index 6a0ea17ce9..166d94ada2 100644
@@ -1,2 +1,4 @@
-# From https://mm.icann.org/pipermail/tz-announce/2018-May/000050.html
-sha512

d059fcd381b2f6ecdafcd68fdd2a00451d1bf9b1affeb164ae7cabca2e022d499e77f0706ec3f3091b8e84c2211aa66da6c90937108771f1bf070cfebc105cae tzdata2018e.tar.gz

package/tzdata/tzdata.hash line 4

Quoted 4 lines
package/tzdata/tzdata.hash +4 -0
+# From https://mm.icann.org/pipermail/tz-announce/2019-July/000056.html
+sha512 c0104078d994e501d80a41bea31364b1390a75c2fbf42968a8343a090e2ac2eddbc58770ca470b192ea19dec89fcc634141a1de703ea2ffa0325176a64afe1fc tzdata2019b.tar.gz
+# Locally computed:
+sha512 0613408568889f5739e5ae252b722a2659c02002839ad970a63dc5e9174b27cf LICENSE

This looks like a sha256sum rather than 512, and it indeed matches that.

Quoted 8 lines
package/tzdata/tzdata.mk +0 -0
index e20c946208..f8e6625e32 100644
@@ -4,13 +4,14 @@
 #
 ################################################################################
 

package/tzdata/tzdata.mk line 14

Quoted 10 lines
package/tzdata/tzdata.mk +3 -2
-TZDATA_VERSION = 2018e
+TZDATA_VERSION = 2019b
 TZDATA_SOURCE = tzdata$(TZDATA_VERSION).tar.gz
-TZDATA_SITE = http://www.iana.org/time-zones/repository/releases
+TZDATA_SITE = https://www.iana.org/time-zones/repository/releases
 TZDATA_STRIP_COMPONENTS = 0
 TZDATA_DEPENDENCIES = host-tzdata
 HOST_TZDATA_DEPENDENCIES = host-zic
 TZDATA_LICENSE = Public domain
+TZDATA_LICENSE_FILES = LICENSE

tzdata is a bit special as we explicitly do not extract the target version source code, so LICENSE will not be available:

Quoted 1 line
Quoted 1 line
Quoted 1 line

tzdata 2019b Collecting legal info

sha256sum: /home/peko/source/buildroot/output-test/build/tzdata-2019b/LICENSE: No such file or directory
ERROR: LICENSE has wrong sha256 hash:
ERROR: expected: 0613408568889f5739e5ae252b722a2659c02002839ad970a63dc5e9174b27cf
ERROR: got :
ERROR: Incomplete download, or man-in-the-middle (MITM) attack

So as a workaround I made it HOST_TZDATA_LICENSE_FILES so it only gets used for the host package and committed to next.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

[Buildroot] checksums was:[PATCH 1/2] package/tzdata: bump to version 2019b

Quoted 13 lines · Peter Korsgaard
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Christopher" == Christopher McCrory <[email protected]> writes:

Changed _SITE to https.
Add hash for license file.

---

<snip>

Quoted 1 line

+# From

https://mm.icann.org/pipermail/tz-announce/2019-July/000056.html

Quoted 1 line

+sha512

Quoted 10 lines

c0104078d994e501d80a41bea31364b1390a75c2fbf42968a8343a090e2ac2eddbc58770ca470b192ea19dec89fcc634141a1de703ea2ffa0325176a64afe1fc tzdata2019b.tar.gz

Review

Quoted 2 lines
(quoted diff) +2 -0
+# Locally computed:
+sha512

0613408568889f5739e5ae252b722a2659c02002839ad970a63dc5e9174b27cf LICENSE

This looks like a sha256sum rather than 512, and it indeed matches that.

D'oh, vim yank, paste error probably

My bash scripting is a little rusty, but how about something like this in /utils/

cat gen-checksum.sh
#!/bin/sh

while getopts ":m125" option ; do
case $option in
m) MD5="true" ;;
1) SHA1="true" ;;
2) SHA256="true" ;;
5) SHA512="true" ;;
*) echo "-m for md5sum -1 for sha1sum -2 for sha256sum -5 for
sha256"; exit ;;
esac
done
shift $((OPTIND-1))

echo "# Locally calculated"
for FILE in $@ ; do
if [ $MD5 ] ; then

    echo -n "md5 "
    basename -a `md5sum $FILE` | tr '\n' ' '
    echo
  fi
  if [ $SHA1 ] ; then
    echo -n "sha1 "
    basename -a `sha1sum $FILE` | tr '\n' ' '
    echo
  fi
  if [ $SHA256 ] ; then
    echo -n "sha256 "
    basename -a `sha256sum $FILE` | tr '\n' ' '
    echo
  fi
  if [ $SHA512 ] ; then
    echo -n "sha512 "
    basename -a `sha512sum $FILE` | tr '\n' ' '
    echo

fi
done

[chrismcc at wednesday external]$ ./gen-checksum.sh -m125
~/src/rrdtool/rrdtool-1.7.2.tar.gz ../sdk/build/rrdtool-1.7.2/COPYRIGHT
../sdk/build/rrdtool-1.7.2/LICENSE
# Locally calculated
md5 638e3a0a1609d97e9f82e8832759dcd2 rrdtool-1.7.2.tar.gz
sha1 f0e54258b0f871099623e3a866751928abbb47af rrdtool-1.7.2.tar.gz
sha256 a199faeb7eff7cafc46fac253e682d833d08932f3db93a550a4a5af180ca58db
rrdtool-1.7.2.tar.gz
sha512 453230efc68aeb4a12842d20a9d246ba478a79c2f6bfd9693a91837c1c1136abe8af177be64fe29aa40bf84ccfce7f2f15296aefe095e89b8b62aef5a7623e29 rrdtool-1.7.2.tar.gz
md5 39df84cfd8a5e18bf988f277f7946676 COPYRIGHT
sha1 7a84d47375119e19a8b521c3df2e25019ca87321 COPYRIGHT
sha256 ab6b4646e9e01f1ec287c29c351c886c4cb7f945c11efc0a1be9f6e5e6cc5320
COPYRIGHT
sha512 18afc0a6f176fee2f28beea23a82e77d8b5a2665e9f97ac6773ab5941b39c021e17eca6fceabb5d0fc523e053cd21e8af614b0e3d1a4aa33c2d219101493afeb COPYRIGHT
md5 4641e94ec96f98fabc56ff9cc48be14b LICENSE
sha1 db95910cb27890d60e596e4c622fc3eeba6693fa LICENSE
sha256 d8c320ffc0030d1b096ae4732b50d2b811cf95e9a9b7377c1127b2563e0a0388
LICENSE
sha512 bd6aecc82d6894394ca4d871e96f68a36f8e84b56d764223d1667e358123cbfc30eb0b85922c406002dc1c400fa4dfb9a0afa9d43d3f3876a4ecdb8a8e85a1f7 LICENSE

Signature · 7 lines
Christopher McCrory
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190830/5b0d6dc5/attachment.html>