GNU bug report logs -
#76924
31.0.50; Wrong install location for systemd user unit file
Previous Next
Reported by: Ulrich Müller <ulm <at> gentoo.org>
Date: Mon, 10 Mar 2025 18:57:02 UTC
Severity: normal
Found in version 31.0.50
Fixed in version 31.1
Done: Ulrich Müller <ulm <at> gentoo.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Ulrich Müller <ulm <at> gentoo.org>
> Cc: Ulrich Müller <ulm <at> gentoo.org>, 76924 <at> debbugs.gnu.org
> Date: Tue, 11 Mar 2025 14:34:20 +0100
>
> > Or maybe we should use pkg-config, at least if no --prefix was
> > specified at configure time?
>
> systemd.pc has this
> (https://github.com/systemd/systemd/blob/cd20d48c69f9e586de914e1facf33b11122477ae/src/core/systemd.pc.in#L34):
>
> systemd_user_unit_dir=${prefix}/lib/systemd/user
> systemduserunitdir=${systemd_user_unit_dir}
>
> So depending on the prefix, that would be /lib or /usr/lib (which are
> equivalent, see above).
>
> Maybe the cleanest solution would be to ask pkg-config (after all,
> systemd must find these files), with $(prefix)/lib/systemd/user as
> fallback location.
SGTM, thanks.
This bug report was last modified 69 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.