On Thu, 31 Oct 2024 at 01:17:41 +0200, Adrian Bunk wrote (in #1086472,
a FTBFS bug report against src:marco):
...
...
On Tue, 11 Mar 2025 at 20:13:10 +0100, Bastian Germann wrote
(in cloned bug #1100147 assigned to src:startup-notification):
I see that the change you're requesting has been made in upstream git
but is not in any release. There is discussion on
https://gitlab.freedesktop.org/xdg/startup-notification/-/issues/6
pointing out that this is an API and ABI break on the 32-bit
architectures (other than i386).
There are some packages other than marco that were previously using the
documented API correctly (in a way that is not Y2038-safe on armel/armhf
but follows upstream's documentation), like xfwm4 and libwnck3 upstream,
and compiz via a Debian patch. For example:
/* https://sources.debian.org/src/xfwm4/4.20.0-1/src/startup_notification.c/?hl=139#L125 */
time_t tv_sec;
suseconds_t tv_usec;
long l_sec, l_usec;
/* ... */
sn_startup_sequence_get_last_active_time (sequence, &l_sec, &l_usec);
tv_sec = l_sec; tv_usec = l_usec;
/* continue to do things with tv_sec and tv_usec */
If the change you're proposing is made in startup-notification, then
those three packages (and possibly more) will start to FTBFS. I think
that's worse than one FTBFS in marco.
Instead of changing startup-notification, I think the right solution
to #1086472 for trixie would be to apply a patch to marco, similar to
https://salsa.debian.org/compiz-team/compiz-reloaded/-/blob/master/debian/patches/64-bit-time-t-compat.patch?ref_type=heads
in compiz.
For the longer term, we should see what startup-notification upstream
will do, and whether they're going to break the API and ABI, or
deprecate sn_startup_sequence_get_*_time() and add another entry point.
I suggested on the upstream issue that a new entry point returning an
int64_t with microseconds since the epoch, similar to g_get_real_time(),
would avoid the API/ABI issue while also being more convenient to use
than separate seconds and microseconds.
I think we should be strict about not breaking upstream's API and ABI in
Debian, even if upstream's API and ABI is not ideal. That way lies
cross-distro divergence, and someone having to do a lot of work in
several years' time to unpick it.
However, if someone wants to overrule me and break API/ABI anyway, then
they should note that this is a transition, which would require changing
the name of the package (probably to libstartup-notification0t64) and
coordination with the release team to rebuild reverse-dependencies. I
would suggest that a few days before transition freeze is not the time
to start a previously unplanned transition, involving sourceful changes
to at least 4 packages and a series of binNMUs, just to avoid having to
apply a patch to src:marco.
smcv