Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

77.2. tzdata-2026d

IANA time zone database — musl reads /usr/share/zoneinfo natively

2026d-1 · LicenseRef-Public-Domain · 0.1 SBU · 1.8 MiB, 1203 files · 41_system, 28 of 1047 · ports/core/base/tzdata

Homepage: https://www.iana.org/time-zones

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/base.txt:

musl reads /usr/share/zoneinfo directly. The appbox installs debian's own tzdata, so without this the host and the box disagree about local time on one machine in one session; a POSIX TZ string alone stays correct only until a DST rule changes.

Depends on: gawk.

Required by (6): bmake, libical, plasma-workspace, postgresql, qt6-qtbase, tcl.

Sources: tzdata-2026d.tar.gz (638.4 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install tzdata'

build.sh:

make CC=cc AWK=gawk CFLAGS="$CFLAGS -DHAVE_GETTEXT=0" VERSION=$version zic leapseconds tzdata.zi

ZONES="africa antarctica asia australasia europe northamerica southamerica \
       etcetera backward factory"

install -dm755 "$PKG/usr/share/zoneinfo"
./zic -b fat -d "$PKG/usr/share/zoneinfo" $ZONES
./zic -b fat -d "$PKG/usr/share/zoneinfo/right" -L leapseconds $ZONES

install -m644 zone.tab zone1970.tab iso3166.tab "$PKG/usr/share/zoneinfo/"
install -m644 leapseconds tzdata.zi "$PKG/usr/share/zoneinfo/"
install -Dm644 tzfile.5 -t "$PKG/usr/share/man/man5"

install -dm755 "$PKG/usr/share/licenses/$name"
install -m644 LICENSE "$PKG/usr/share/licenses/$name/"

Directories: /usr/share/licenses/tzdata, /usr/share/zoneinfo.