Package: debhelper
Version: 13.24.2
Severity: normal
X-Debbugs-Cc: martin-eric.rac...@iki.fi

In its current form, dh_installsystemd installs debian/package.unit which 
essentially follows dh_installinit logic.

This doesn't work for packages that ship multiple units, especially timers. For 
instance, src:apt ships the following units via bin:apt:

apt-daily.service
apt-daily.timer
apt-daily-upgrade.service
apt-daily-upgrade.timer

They have to be manually installed via debian/apt.install because 
dh_installsystemd cannot deal with filenames that deviate from the package.unit 
format.

A better logic would be something similar to dh_installcron:

apt.apt-daily.service
apt.apt-daily.timer
apt.apt-daily-upgrade.service
apt.apt-daily-upgrade.timer

This would enable specifying which of the binary targets should ship the files.

Basically, if there are package.unit files, ship them with package. If there 
are package.*.unit files, ship them with the binary target specified before the 
first period.

Martin-Éric

-- System Information:
Debian Release: 13.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 6.12.22+bpo-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE=fi:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debhelper depends on:
ii  autotools-dev            20240727.1
ii  dh-autoreconf            20
ii  dh-strip-nondeterminism  1.14.1-2
ii  dpkg                     1.22.18
ii  dpkg-dev                 1.22.18
ii  dwz                      0.15-1+b1
ii  file                     1:5.46-5
ii  libdebhelper-perl        13.24.2
ii  libdpkg-perl             1.22.18
ii  man-db                   2.13.1-1
ii  perl                     5.40.1-3
ii  po-debconf               1.0.21+nmu1

debhelper recommends no packages.

Versions of packages debhelper suggests:
pn  dh-make  <none>

-- no debconf information

Reply via email to