On Mon, Dec 25, 2023 at 12:20 AM Richard Laager <rlaa...@debian.org> wrote: > > On 2023-12-12 04:52, Martin-Éric Racine wrote: > > Build-Depends: systemd must be changed to systemd [linux-any], since > > systemd has not been powerted to non-Linux platforms. > > I suspect that change would be necessary, but not sufficient. > > In commit 7f969a0ecab4ef3ab50defd4fe9d7e7a47817dbe, I wrote: > Build-Depend on systemd > > This is required for the pkg-config file, so that waf will detect > systemd and install the systemd units.
Only on linux-any. > If past me was correct, without systemd at build-time, waf will not > install the systemd units. Then we will end up with other failures in > debian/rules or from the .install files. Not installing them on platforms where systemd has not been ported is the correct action. > HURD is the only non-Linux platform that Debian supports these days, > right? kFreeBSD is gone, IIRC. > > The ntpsec package (like ntp before it, IIRC) does not build on HURD > anyway. From debian/rules: It built enough to have ntpdate. The Hurd patch was even updated just a few days before the version that added the build-depends on systemd. > ifeq (hurd, $(DEB_HOST_ARCH_OS)) > # hurd does not provided the system calls needed for ntpd to work. > exit 1 > endif > > I see a couple of ways forward here: > > A) I properly indicate this package does not support HURD. > > I think I would just replace the "Architecture: any" with > "Architecture: linux-any" on binary packages in debian/control, but > I would love confirmation on that. Which is what this bug requested. Martin-Éric