Bug #5958
closed
Osmocom Debian packages don't run systemctl daemon-reload
Added by osmith about 1 year ago.
Updated about 1 year ago.
Description
We should build the debian packages with:
%:
dh $@ --with systemd
So that the debhelper scripts properly run systemctl daemon-reload
, restart services on upgrades etc.
See:
- Priority changed from Normal to High
- Status changed from New to In Progress
- % Done changed from 0 to 20
Instead of --with systemd
, we should upgrade the debhelper compat levels of the packages, it is enabled by default for >= 10 (see here).
We support debian 10 and higher. Debian 10 has debhelper version 12.1.1, which supports compat levels up to v12.
So I'll adjust our packages to use level 12.
- % Done changed from 20 to 90
Patches:
- Set compat level 12 via
Build-Depends: debhelper-compat (= 12)
and remove the old debian/compat file (as suggested here, note that even though it says "= 12" it also works with higher versions of debhelper)
- Set the maintainer everywhere to "Osmocom team <openbsc@lists.osmocom.org>". We already had this in some packages, make it consistent.
https://gerrit.osmocom.org/q/topic:dh-12
- % Done changed from 90 to 60
I'll just let jenkins build all of them in CI verification and fix the ones that fail. Apparently not all just work after upgrading the level.
pespin pointed out in chat that we might not want to break compatibility with debian 9 yet, just in case somebody is still using it.
debian 9 has debhelper version 10.2.5 (listed here as o-o-stable), which supports compatibility level v10.
This still fixes the systemd problem, so I'll adjust the patches to use that.
- % Done changed from 60 to 80
A nice side-effect is, that with v10 debhelper doesn't use -j1 anymore by default. It should speed up building all debian packages a bit.
- % Done changed from 80 to 90
- Status changed from In Progress to Resolved
- % Done changed from 90 to 100
Also available in: Atom
PDF