Control: tags -1 pending Control: found -1 1:2.1.7-2 Hi,
On Sun, 20 Jul 2014 23:32:19 +0200 Jelmer Vernooij <[email protected]> wrote: > The patch in this package was applied. Let's keep 731544 open about > systemd support not working. I did some digging in older versions, and the situation regarding dovecot's systemd support is as follows: - A first attempt to enable systemd support was made with 1:2.1.7-1 with commit 4db927a38: systemd units were shipped, but they were not used because of missing calls to dh_systemd_enable. - 1:2.1.7-2 removed the B-D on systemd, thus breaking --with-systemdsystemunitdir=auto which relied on systemd's pkgconfig file to detect the unit directory. With the B-D on systemd missing, 1:2.1.7-2 and subsequent versions mostly did not ship the systemd units and even if they did, they still lacked dh_systemd_enable calls in d/rules that would make the units usable. - In 1:2.1.17-1 a B-D on dh-systemd together with dh_systemd_enable was added. Also the units were supposed to be installed using dh_install (via dovecot-core.install), however this didn't happen for two reasons: + dovecot.service was never built because --with-systemdsystemunitdir=auto was still being used with no B-D on systemd. + d/rules never called dh_install. - Because of --with-systemdsystemunitdir=auto, some package versions on some architectures shipped the systemd units, if the buildd's they were built on happened to have systemd installed for some reason. Digging up the dovecot-core amd64 and i386 packages from snapshot.d.o, the following versions did ship _and_ enable the systemd units: Version Archs with systemd units 1:2.2.13-6 i386 1:2.2.13-7 i386 amd64 1:2.2.13-8 i386 amd64 1:2.2.13-9 i386 1:2.2.13-10 i386 1:2.2.13-11 i386 1:2.2.13-12~deb8u1 i386 amd64 1:2.2.15-1 i386 1:2.2.18-1 i386 1:2.2.18-1+b1 i386 amd64 1:2.2.18-2 amd64 i386 1:2.2.18-2+b1 i386 amd64 In order to fix this issue and ensure that the units will consistently show up in the packages, dovecot should either B-D on systemd (which is a bit of overkill), or --with-systemdsystemunitdir=/lib/systemd/system should be manually specified instead. I have already pushed a commit with the latter option which will be included in the next upload. Also note that Jessie's updated package added the systemd units (because all buildd's now seem to have systemd installed), while the original Jessie package (1:2.2.13-11) did not include them. Regards, Apollon

