GNU bug report logs

#27037 systemd service files installed by guix 0.13.0 cannot used by other distributions

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #8 received at 27037@debbugs.gnu.org (full text, mbox, reply):

Received: (at 27037) by debbugs.gnu.org; 23 May 2017 16:16:32 +0000
From debbugs-submit-bounces@debbugs.gnu.org Tue May 23 12:16:32 2017
Received: from localhost ([127.0.0.1]:34934 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1dDCU4-0005lS-MZ
	for submit@debbugs.gnu.org; Tue, 23 May 2017 12:16:32 -0400
Received: from out1-smtp.messagingengine.com ([66.111.4.25]:36905)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo@famulari.name>) id 1dDCU3-0005lL-10
 for 27037@debbugs.gnu.org; Tue, 23 May 2017 12:16:32 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.nyi.internal (Postfix) with ESMTP id 8B07B20A8F;
 Tue, 23 May 2017 12:16:30 -0400 (EDT)
Received: from frontend1 ([10.202.2.160])
 by compute4.internal (MEProxy); Tue, 23 May 2017 12:16:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name;
 h=cc:content-type:date:from:in-reply-to:message-id:mime-version
 :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc
 :x-sasl-enc; s=mesmtp; bh=t8IRZyNO9OA+sRsN5Dlql25tbXqnDJePdlDQWP
 3TsLY=; b=cEkAMVSE8VN7EkCSHo1w1YPeqCwbyAvV8/UYbItMxGqjKCySBpj987
 5ZHZht7eSimlMLTbKz6ey6XMPrizZs5O3VirPbtd5ag5FE9evzFUCHTqYzMX7PxW
 yjxAckkO9NCl+iHUMFIVLfI0MU4iAMZWRv4jbLCGt+jGEaGraUu8A=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-sender
 :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=t8IRZyNO9OA+sRsN5D
 lql25tbXqnDJePdlDQWP3TsLY=; b=G11mFjyK/2ASxCK5rFmffx8N6mny9qiMur
 JKzq9dkp9fGYx6+KCIyBvlFGUM+UeCpEQg3goAZ7LhQ7Qs1Qn68LWAZwrHdGZRqI
 mrrZYiPHbqrTtDteI2bUBdR7wyjgUytCSVmqtA9a7LoHx7gBEipYfiHBEVuJY4fr
 0eUpHDpnMnnC6OsNlUSKvUGoQg9auO5a5cxW+wHK84gwvZ++lwmW/WwmfywWyyrk
 QggjCO4nZ9rhebeWrNr1FoPS5csE/V99iDwUNrzuSAiLlzLxhxCvPqluVo0A23RW
 MYXND0/WPUk8B7vrTPq8tearWD7Jgac9kCsfsLhGarpAMssCpOIA==
X-ME-Sender: <xms:XmAkWTuahTmuYmpNiw5hSlUbZRlnRq72SzsTD9ral_d2TciLQ0s-3A>
X-Sasl-enc: +KxQRD56aZRBZ4I/uPws0eb4ddMtxPVZ1EODcKoicUuE 1495556190
Received: from localhost (unknown [172.56.29.96])
 by mail.messagingengine.com (Postfix) with ESMTPA id 3E72E7E7C6;
 Tue, 23 May 2017 12:16:30 -0400 (EDT)
Date: Tue, 23 May 2017 12:16:24 -0400
From: Leo Famulari <leo@famulari.name>
To: 藍挺瑋 <lantw44@gmail.com>
Subject: Re: bug#27037: systemd service files installed by guix 0.13.0 cannot
 used by other distributions
Message-ID: <20170523161624.GA15379@jasmine>
References: <CAG-RorUA4NG3wdJcStHTCMASJXtk-gWo-aM6+GHfi=V2=o1wyA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga"
Content-Disposition: inline
In-Reply-To: <CAG-RorUA4NG3wdJcStHTCMASJXtk-gWo-aM6+GHfi=V2=o1wyA@mail.gmail.com>
User-Agent: Mutt/1.8.2 (2017-04-18)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 27037
Cc: 27037@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -0.7 (/)
[Message part 1 (text/plain, inline)]
On Tue, May 23, 2017 at 11:33:42PM +0800, 藍挺瑋 wrote:

Hi!

> I found the systemd service files installed by guix 0.13.0
> use /var/guix/profiles/per-user/root/guix-profile/bin/guix* instead of
> /usr/bin/guix* in ExecStart=. The path /var/guix/profiles don't exist
> on systems that don't have guix installed before

I'm a little confused: is there a situation where Guix is not installed
but '/usr/bin/guix-daemon' exists?

The path '/var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon'
is guaranteed to exist if you followed the instructions in Binary
Installation [0], which is, as far as I know, the most common way to
install Guix on other distros. So, I think this path is appropriate for
the basic service file we provide.

> Is it possible to fix systemd service files, so it can be easily used
> by packages in other distributions?

I think that, if you are packaging Guix for other distros, you should
provide your own service file. My experience is that each systemd-based
distro uses systemd's advanced features (e.g. process grouping and
resource limiting) in different ways. So, making your own service file,
in accordance with your distro's standards, will help Guix work in a way
that is more idiomatic to the host distro.

[0] Specifically, it happens during the initial unpacking and renaming:
`mv var/guix /var/ && mv gnu/`
https://www.gnu.org/software/guix/manual/html_node/Binary-Installation.html
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Tue Sep 9 07:28:09 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.