On Tue, Apr 11, 2023 at 09:37:27AM +0200, bi...@debian.org wrote:
> Package: nvme-cli
> Version: 2.3-2         
> Severity: serious
> Tags: sid bookworm
> User: debhel...@packages.debian.org
> Usertags: systemd-files-in-usr-bookworm
> 
> Dear Maintainer,
> 
> It seems that your package nvme-cli is shipping files (.service, .socket or
> .timer) in /usr/lib/systemd/system.
[...]

The culprit seems to be here:
https://sources.debian.org/src/nvme-cli/2.4%2Breally2.3-2/meson.build/#L27

(making the systemddir build option unusable.)

The proper solution would involve pkg-config and systemd.pc
which should be queried for the systemdsystemunitdir variable.
(Note: do not forget to build-dep on pkg-config and systemd.)

This should give you a bunch of packages to choose from as examples of
how to implement that using meson:
https://codesearch.debian.net/search?q=get_option.*systemdsystemunitdir&literal=0&perpkg=1

Regards,
Andreas Henriksson

Reply via email to