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

The problem seems to originate from:
https://sources.debian.org/src/tlp/1.5.0-1/debian/rules/#L9

The upstream default value is actually correct for Debian (at the
moment):
https://sources.debian.org/src/tlp/1.5.0-1/Makefile/#L17

However, this will change in the future... so I think a better solution
would be to actually retrieve the value from systemd.pc.

You should be able to do this by:
* build-dep on pkg-config and systemd (for systemd.pc)
* Modify debian/rules `export TLP_SYSD=/usr/lib/systemd/system` to:
export TLP_SYSD=$(shell pkg-config --variable=systemdsystemunitdir systemd)
* Update https://sources.debian.org/src/tlp/1.5.0-1/debian/tlp.install/#L5

Regards,
Andreas Henriksson

Reply via email to