mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
tzdata: reorder zone list to avoid missing links
The 'backward' zone references entries from other zones (e.g. Pacific/*) that have not yet been compiled, leading to missing links. To fix this, take-over the zone list sort order from upstream 'tzdata' and also ensure that make fails if zic terminates with a non-zero exit code. Signed-off-by: Michel Marti <mma@objectxp.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
0b467c6b95
commit
db22eb686a
@ -12,9 +12,11 @@ TZDATA_DEPENDENCIES = host-tzdata
|
|||||||
HOST_TZDATA_DEPENDENCIES = host-zic
|
HOST_TZDATA_DEPENDENCIES = host-zic
|
||||||
TZDATA_LICENSE = Public domain
|
TZDATA_LICENSE = Public domain
|
||||||
|
|
||||||
|
# Take care when re-ordering this list since this might break zone
|
||||||
|
# dependencies
|
||||||
TZDATA_DEFAULT_ZONELIST = \
|
TZDATA_DEFAULT_ZONELIST = \
|
||||||
africa antarctica asia australasia backward etcetera \
|
africa antarctica asia australasia europe northamerica \
|
||||||
europe factory northamerica pacificnew southamerica
|
southamerica pacificnew etcetera backward systemv factory
|
||||||
|
|
||||||
ifeq ($(call qstrip,$(BR2_TARGET_TZ_ZONELIST)),default)
|
ifeq ($(call qstrip,$(BR2_TARGET_TZ_ZONELIST)),default)
|
||||||
TZDATA_ZONELIST = $(TZDATA_DEFAULT_ZONELIST)
|
TZDATA_ZONELIST = $(TZDATA_DEFAULT_ZONELIST)
|
||||||
@ -49,8 +51,8 @@ endef
|
|||||||
define HOST_TZDATA_BUILD_CMDS
|
define HOST_TZDATA_BUILD_CMDS
|
||||||
(cd $(@D); \
|
(cd $(@D); \
|
||||||
for zone in $(TZDATA_ZONELIST); do \
|
for zone in $(TZDATA_ZONELIST); do \
|
||||||
$(ZIC) -d _output/posix -y yearistype.sh $$zone; \
|
$(ZIC) -d _output/posix -y yearistype.sh $$zone || exit 1; \
|
||||||
$(ZIC) -d _output/right -L leapseconds -y yearistype.sh $$zone; \
|
$(ZIC) -d _output/right -L leapseconds -y yearistype.sh $$zone || exit 1; \
|
||||||
done; \
|
done; \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
Loading…
x
Reference in New Issue
Block a user