Files
makronix/docs/reference/calendar-libs.txt
T
lotherkandClaude Sonnet 5.5 7c0d3697c9 docs/reference/calendar-libs.txt: what pkgsrc has for iCalendar and what it costs MCDE (t0148, step 1)
libical 3.0.20 / 4.0.5 include glib2, icu and libxml2 unconditionally (libical4
also gobject-introspection); the sysroot has icu 93 MB, glib2 17 MB, libxml2 3 MB,
curl 4 MB -- there for other packages (icu: one, boost-libs; glib2: 15), while the
MCDE packages depend on Xft2, libjpeg-turbo and png only.  CalDAV = HTTP + XML;
www/curl and www/neon exist, no CalDAV client library by name.  Options with what
each needs; whether libical can be built without glib/ICU is NOT checked (source
not fetched).  The choice is Konrad's: it is a dependency of the whole desktop.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:54:39 +00:00

58 lines
3.5 KiB
Plaintext

Calendar libraries: what pkgsrc has and what it would cost MCDE (t0148, step 1)
Read and measured 2026-11-14. Sources: pkgsrc/time/libical/Makefile and
pkgsrc/time/libical4/Makefile, pkgsrc/www/curl and www/neon (directories),
build/obj/destdir.amd64/usr/pkg/pkgdb (the sysroot's package database), packages.list.
The decision of the task (rebuild dtcm, or a new dtcalendar on a shared library
lib/McdeCal) is not made here; this is what it needs to be made on.
1. What pkgsrc offers for iCalendar
- time/libical 3.0.20 ("Reference implementation of the iCalendar data type
and format (v3)") and time/libical4 4.0.5 (v4). Both use CMake and
include, unconditionally, devel/glib2, textproc/icu and textproc/libxml2
buildlinks; libical4 also needs devel/gobject-introspection (its
TOOL_DEPENDS glib2-introspection). The recipe builds the glib binding
(PKGCONFIG_OVERRIDE src/libical-glib/libical-glib.pc.in) and sets
-DUSE_BUILTIN_TZDATA=OFF -DICAL_BUILD_DOCS=OFF.
- Not known here: which upstream CMake switches would leave out the glib part
or ICU (the libical source is not in build/distfiles, nothing was built).
With pkgsrc's recipe as it is they come along.
- Other: time/py-icalendar (Python, out of the boundary), time/ical (the old
Tcl ical), time/ical2rem.
2. What it costs, measured in the sysroot's package database
- icu-78.3: 93 MB installed; glib2-2.88.3nb1: 17 MB; libxml2-2.15.4: 3 MB;
curl-8.23.0: 4 MB. All four are in the sysroot already.
- But they are there for other packages: icu is needed by ONE package
(boost-libs-1.92.0); glib2 by 15 (cairo, gdk-pixbuf2, dbus-glib, avahi,
at-spi2-core ...). The MCDE packages themselves depend on Xft2,
libjpeg-turbo and png only. A calendar on pkgsrc's libical would make the
desktop itself depend on icu and glib2. Against the boundary of GOAL.md
(CDE, Motif, Xlib, X11; fast on a computer of 1995) that is the price.
3. CalDAV (RFC 4791)
- It is HTTP (WebDAV methods) and XML. pkgsrc has www/curl (curl-8.23.0 is
in the sysroot) and www/neon (neon-0.33.0, a WebDAV-oriented HTTP library);
the XML part is libxml2 or expat. No CalDAV client library was found by
name in pkgsrc.
- "rpc.cmsd not onto the network" (the task, security rule of the ideas
file) stands: dtcm's own server is the old CDE one.
4. Options, with what each needs (a reading, not a decision)
(a) Rewrite lib/McdeCal small, in C99: read and write the subset that matters
(VEVENT, VTODO, VALARM, a few properties, RRULE for the usual cases).
Needs a decision about VTIMEZONE: the system's zoneinfo (NetBSD has it)
instead of reading the zones in the files. No new dependency. The risk
is recurrence rules and time zones, which are where libical is solid.
(b) pkgsrc's libical as it is: complete, and icu + glib2 + libxml2 become
dependencies of the desktop (sizes above).
(c) libical built by a recipe of our own in ext/ (like afpfs-ng and MCDE)
without the glib and ICU parts, if upstream allows it -- NOT checked.
My reading: (a) for the small part first (read/write a .ics, show a week,
no RRULE beyond daily/weekly/monthly/yearly with COUNT/UNTIL), with (c) as the
fallback if recurrence and zones grow; (b) only if the size is accepted.
Needs Konrad's word because it is a dependency of the whole desktop.
5. Not looked at: dtcm's csa model (lib/csa) against RFC 5545 -- what maps and
what does not, and the one-time import of the callog file (step 6 of the
task).