#1150079 opnerc: Should depend on the same version of librc

Package:
openrc
Source:
openrc
Description:
dependency based service manager (runlevel change mechanism)
Submitter:
Matthias Geiger
Date:
2026-10-08 10:41:01 UTC
Severity:
normal
Tags:
#1150079#5
Date:
2026-10-05 16:29:29 UTC
From:
To:
Hi Mark,

as discussed on IRC:

14:17         werdahias | LeePen: just found out the hard way that mixing openrc with a newer librc leads to an unbootable system
14:18         werdahias | so maybe that should be a {binary:Version} depends
14:20         werdahias | because it Depends:  librc1t64 (>= 0.63.3), but if you install 0.64 or greater the system will not boot
14:22 ... Irssi: Join to #debian-init was synced in 376 secs
14:32              navi | are the openrc and librc binaries not being taken from the same build?
14:32         werdahias | well, the version constraint allows installing a higher version, maybe that should be a = rather than >=
14:39        hephaistor | if libraries are installed, it is generally assumed they are compatible until they bump the soname
14:39        hephaistor | if librc has no use other than to support openrc, it could be moved into the openrc package even (I’ve seen packages do that)
14:39        hephaistor | otherwise it needs a = because partial upgrades are supported
14:40              navi | i know of a couple more packages that use librc, i don't know if any of them are in debian
14:39         werdahias | I wanted to eventually package the plymouth plugin which uses librc
14:41              navi | all other distros ship openrc binaries and librc on the same package
14:41              navi | maybe i should look into this tbh, even if we can't fix it, to know going forward
14:41         werdahias | imo the issue is that openrc *must* depend on the same version of librc, and that can be fixed on the packaging side
14:42              navi | at the moment it's a must
14:43              navi | but i want to make openrc actually 1.0 soon, and by that point on, semver and soversion should be the actual limitors
14:43              navi | well, "soon" is, about one or two years
14:43         werdahias | that would be very cool

Attached is a patch that facilitates this:

 ...
 Depends: insserv, mount, librc1t64 (= 0.63.3-4),
 ...


best,

werdahias



- -- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.0.7+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: OpenRC (via /run/openrc), PID 1: openrc-init
LSM: AppArmor: enabled

Versions of packages openrc depends on:
ii  insserv      1.27.0-1
ii  libaudit1    1:4.2.1-1
ii  libc6        2.43-7
ii  libcap2      1:2.78-1+b1
ii  libeinfo1    0.63.3-1
ii  libpam0g     1.7.0-8
ii  librc1t64    0.63.3-1
ii  libselinux1  3.11-2.1
ii  mount        2.42.4-1

openrc recommends no packages.

Versions of packages openrc suggests:
pn  policycoreutils  <none>
ii  sysvinit-core    3.18-1

- -- no debconf information
-----BEGIN PGP SIGNATURE-----

iIsEARYKADMWIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCasPQZhUcd2VyZGFoaWFz
QGRlYmlhbi5vcmcACgkQ7L7btge5sr70MgEAhpcoD30Wq00+FbTk8qIV3WAGuAlp
y7V1j1+IS68HCNQA+wbX6NQYIqoePU+FQbMtUNSfCkiF5ees1ZHWiV7QAc8B
=lq7d
-----END PGP SIGNATURE-----

#1150079#10
Date:
2026-10-07 06:28:57 UTC
From:
To:
Thanks.

Does the same apply to libeinfo1?

Mark

#1150079#15
Date:
2026-10-08 10:36:58 UTC
From:
To:
12:33         werdahias | btw: should openrc also have a versioned dependency on libeinfo? or is it not that critical, like librc
12:35             navi_ | skarnet: i'm just not sure if the way s-d parses arguments works super well, iirc it should but i have to test
12:35             navi_ | for now this is fine, when i test i can edit the init.d myself too
12:35             navi_ | werdahias: libeinfo hasn't been touched in a good while, shouldn't matter but ideally yes ig?
12:35             navi_ | eventually i wanted to split einfo from openrc into a general package
12:35         werdahias | ack, thanks, then we will add that
12:36             navi_ | since gentoo also carries their own einfo impl
12:35         werdahias | TIL
12:36             navi_ | portage prints green stars very similarly to openrc


So IMO this should be fine as-is, thought it wouldn't hurt to add a
Depends: libeinfo ( = ${binary:Version}), too.

best,