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


Message #29 received at 76924 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ulrich Müller <ulm <at> gentoo.org>
Cc: schwab <at> linux-m68k.org, 76924 <at> debbugs.gnu.org
Subject: Re: bug#76924: 31.0.50; Wrong install location for systemd user
 unit file
Date: Wed, 12 Mar 2025 14:23:17 +0200
> From: Ulrich Müller <ulm <at> gentoo.org>
> Cc: Ulrich Müller <ulm <at> gentoo.org>,  Eli Zaretskii
>  <eliz <at> gnu.org>,
>   76924 <at> debbugs.gnu.org
> Date: Tue, 11 Mar 2025 18:50:36 +0100
> 
> >>>>> On Tue, 11 Mar 2025, Andreas Schwab wrote:
> 
> > On Mär 11 2025, Ulrich Müller wrote:
> >> 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.
> 
> > But the unit file needs to be installed in a location searched by
> > systemd, so it needs to follow systemd's idea of prefix.
> 
> More precisely, they need to be installed in a directory that is in
> systemd's search path for unit files. Which includes /usr/lib,
> /usr/local/lib, /etc, and a few others.
> 
> Looks like we should have a configure option for it then?

Is there no way of knowing what is systemd's idea of prefix?  If not,
I guess a configure option will have to do, but the question of the
default still stands, no?




This bug report was last modified 70 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.