GNU bug report logs - #76924
31.0.50; Wrong install location for systemd user unit file

Previous Next

Package: emacs;

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>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Ulrich Müller <ulm <at> gentoo.org>, 76924 <at> debbugs.gnu.org
Subject: bug#76924: 31.0.50; Wrong install location for systemd user unit file
Date: Tue, 11 Mar 2025 15:38:25 +0100
>>>>> On Tue, 11 Mar 2025, Eli Zaretskii wrote:

>> 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.

Sorry, I had a thinko there. Asking pkg-config isn't such a good idea.
Imagine someone installing with prefix=/usr/local, we would then install
the unit file in a stray location outside prefix. It is even worse for
non-root installs where the dir may not even be writable.

So I come back to my original solution of $(prefix)/lib/systemd/user,
which just avoids "lib64" in favour of "lib".

Or we could add a configure option (like --with-systemduserunitdir),
but maybe that would be over-engineered.




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.