🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.devel
Article #81

Re: How to indicate that a package won't work without systemd

#81
From: Simon McVittie
Date: Tue, 20 Oct 2026 09:20
47 lines
3783 bytes
On Tue, 20 Oct 2026 at 00:42:33 +0200, Marc Haber wrote:
>I would like to write package dependencies that a certain package 
>indicates that it won't work without systemd, most prominently that it 
>would NOT work with sysvinit.

What feature(s) of systemd? I know systemd's detractors often say it's 
monolithic, but it's actually quite modular, and the down side of that 
is that dependent packages do need to know which parts they are 
depending on.

If it only needs systemd as pid 1, then yes, systemd-sysv is the closest
thing available in the apt/dpkg packaging system [1].

If it needs a working `systemd --user` (like dbus-user-session in 
trixie), then systemd as pid 1 is not enough, and it needs to depend on 
libpam-systemd. This is a stronger dependency (more constraints) than 
having systemd as pid 1.

If it needs higher-level/optional components like libnss-systemd, 
systemd-boot, systemd-container, systemd-resolved, systemd-timesyncd 
then those are additional things to depend on.

>systemd-sysv [...] seems 
>kind of wrong for me since it has "sysv" in the name

This is a historical artifact of how the transition from sysvinit to 
systemd was implemented (initially with systemd as a non-default choice 
that disabled but did not remove sysvinit, and then with systemd by 
default). The fact that the previous default init is packaged as 
sysvinit-core, not as sysvinit, is another artifact remaining from that 
transition.

If the same transition had been done today, I think we'd probably have 
packages named init-is-systemd and init-is-sysvinit, with the same 
meaning as what's currently systemd-sysv and sysvinit-core respectively.

     smcv

---

[1] It is technically possible to run systemd as pid 1 without 
installing systemd-sysv, and it is technically possible to boot with 
init=/something/that/is/not/systemd even if systemd-sysv is installed - 
not every dependency can be expressed in terms of apt/dpkg Depends, 
which fundamentally are about what's installed, not what's running.  
"The running kernel must be 6.18 or later" is another example of a 
dependency that we can't fully enforce via apt/dpkg.
Technical Details
Message-ID: <NQeaJ-6JfH-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <NQ4Ep-6Ctz-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Simon McVittie <smcv@debian.org>
Newsgroups: linux.debian.devel
Subject: Re: How to indicate that a package won't work without systemd
Date: Tue, 20 Oct 2026 11:20:01 +0200
Message-ID: <NQeaJ-6JfH-9@gated-at.bofh.it>
References: <NQ4Ep-6Ctz-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-devel-request@lists.debian.org  Tue Oct 20 09:19:09 2026
Old-Return-Path: <smcv@debian.org>
X-Amavis-Spam-Status: No, score=-4.729 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.329, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
X-Debian-User: smcv
X-Mailing-List: <debian-devel@lists.debian.org> archive/latest/372692
List-ID: <debian-devel.lists.debian.org>
List-URL: <https://lists.debian.org/debian-devel/>
List-Archive: https://lists.debian.org/msgid-search/atct_goyhJ3vPQj3@definition.pseudorandom.co.uk
Approved: robomod@news.nic.it
Lines: 47
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 20 Oct 2026 10:01:50 +0100
X-Original-Message-ID: <atct_goyhJ3vPQj3@definition.pseudorandom.co.uk>
X-Original-References: <atac2Wtu3RkizT42@torres.zugschlus.de>