package/tzdata and package/zic: bump to version 2019a
PATCH 1/1 package/tzdata and package/zic: bump to version 2019a
From: Adam Duskett <[email protected]>
Also add TZDATA_LICENSE_FILES and ZIC_LICENSE_FILES, and hashes for those files.
--- package/tzdata/tzdata.hash | 5 +++-- package/tzdata/tzdata.mk | 3 ++- package/zic/zic.hash | 5 +++-- package/zic/zic.mk | 3 ++- 4 files changed, 10 insertions(+), 6 deletions(-)
package/tzdata/tzdata.hash +3 -2
@@ -1,2 +1,3 @@ -# 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-March/000055.html +sha512 d8eb5b2b68abee08bd2b0d2134bce85b5c0aee85168e9697a607604ed5be7d1539ac60fda9b37e0c9c793ef6251978bc250563a0af59497fde775499964bb5aa tzdata2019a.tar.gz +sha512 9fe102f8894714cd0bd7d72a92e5ca29e4f75ff3f802d6fc363d5349b83345251b1d572a35321bd487cc70485da337b90df0cd37f896b6343f6f4c29cba7a295 LICENSE
package/tzdata/tzdata.mk +2 -1
@@ -4,13 +4,14 @@ # ################################################################################ -TZDATA_VERSION = 2018e +TZDATA_VERSION = 2019a TZDATA_SOURCE = tzdata$(TZDATA_VERSION).tar.gz TZDATA_SITE = http://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
package/zic/zic.hash +3 -2
@@ -1,2 +1,3 @@ -# From https://mm.icann.org/pipermail/tz-announce/2018-May/000050.html -sha512 4a245cae2d0922b24539a94cf4a8ccc2bba1ee696e0aaefecb41c7c8d78724a7fcea6039909336177b8b26fec8fc47719e3e56ca9839dbaf52f9a4fec84d4717 tzcode2018e.tar.gz +# From https://mm.icann.org/pipermail/tz-announce/2019-March/000055.html +sha512 7cc76ce6be4a67c3e1b2222cb632d2de9dabb76899793a938f87a1d4bb20e462cabdae9e3b986aaabaa400795370510095d236dbad5aff4c192d0887f0ecedf5 tzcode2019a.tar.gz +sha256 9fe102f8894714cd0bd7d72a92e5ca29e4f75ff3f802d6fc363d5349b83345251b1d572a35321bd487cc70485da337b90df0cd37f896b6343f6f4c29cba7a295 LICENSE
package/zic/zic.mk +2 -1
@@ -4,11 +4,12 @@ # ################################################################################ -ZIC_VERSION = 2018e +ZIC_VERSION = 2019a ZIC_SOURCE = tzcode$(ZIC_VERSION).tar.gz ZIC_SITE = http://www.iana.org/time-zones/repository/releases ZIC_STRIP_COMPONENTS = 0 ZIC_LICENSE = Public domain +ZIC_LICENSE_FILES = LICENSE define HOST_ZIC_BUILD_CMDS $(HOST_MAKE_ENV) $(MAKE) -C $(@D) zic
Signature · 1 line
2.21.0
PATCH 1/1 package/tzdata and package/zic: bump to version 2019a
Hello Adam,
Quoted 7 lines · On Fri, 17 May 2019 13:40:19 -0400 aduskett at gmail.com wrote:
From: Adam Duskett <[email protected]>
Also add
TZDATA_LICENSE_FILESandZIC_LICENSE_FILES, and hashes for those files.Signed-off-by Adam Duskett <[email protected]>---
Nit: the commit title would be better formatted as:
package/{tzdata,zic}: bump to version 2019a
package/tzdata/tzdata.mk line 14
Quoted 9 lines
package/tzdata/tzdata.mk +2
-1-TZDATA_VERSION = 2018e +TZDATA_VERSION = 2019a TZDATA_SOURCE = tzdata$(TZDATA_VERSION).tar.gz TZDATA_SITE = http://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
Unfortunately, this breaks "make legal-info":
Quoted 1 line
Quoted 1 line
Quoted 1 line
tzdata 2019a Collecting legal info
sha512sum: /home/thomas/projets/buildroot/output/build/tzdata-2019a/LICENSE: No such file or directory
ERROR: LICENSE has wrong sha512 hash:
ERROR: expected: 9fe102f8894714cd0bd7d72a92e5ca29e4f75ff3f802d6fc363d5349b83345251b1d572a35321bd487cc70485da337b90df0cd37f896b6343f6f4c29cba7a295
ERROR: got :
ERROR: Incomplete download, or man-in-the-middle (MITM) attack
make[1]: *** [package/tzdata/tzdata.mk:65: tzdata-legal-info] Error 1
This is due to the fact that tzdata for the target is not extracted (TZDATA_EXTRACT_CMDS is empty).
So either we need to extract at least the LICENSE file, or perhaps we could extract it normally, it's just 4.5 MB of data anyway.
In any case, when you add license information to a package, it would be good to test with "make legal-info" before submitting the patch :/
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/tzdata and package/zic: bump to version 2019a
Quoted 10 lines · Thomas Petazzoni
Unfortunately, this breaks "make legal-info":
Quoted 1 line
Quoted 1 line
Quoted 1 line
tzdata 2019a Collecting legal info
sha512sum:
/home/thomas/projets/buildroot/output/build/tzdata-2019a/LICENSE: No such file or directory
ERROR: LICENSE has wrong sha512 hash:
ERROR: expected: 9fe102f8894714cd0bd7d72a92e5ca29e4f75ff3f802d6fc363d5349b83345251b1d572a35321bd487cc70485da337b90df0cd37f896b6343f6f4c29cba7a295
ERROR: got :
ERROR: Incomplete download, or man-in-the-middle (MITM) attack
make[1]: *** [package/tzdata/tzdata.mk:65: tzdata-legal-info] Error 1
Quoted 5 lines
This is due to the fact that tzdata for the target is not extracted (
TZDATA_EXTRACT_CMDSis empty).So either we need to extract at least the LICENSE file, or perhaps we could extract it normally, it's just 4.5 MB of data anyway.
Actually, we should probably get rid of the split between tz and tzdata,
because now the logic is really confusing IMO.
Regards,
Arnout