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 #17 received at 27037@debbugs.gnu.org (full text, mbox, reply):

Received: (at 27037) by debbugs.gnu.org; 29 May 2017 14:20:14 +0000
From debbugs-submit-bounces@debbugs.gnu.org Mon May 29 10:20:14 2017
Received: from localhost ([127.0.0.1]:43457 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1dFLWo-0001HI-K6
	for submit@debbugs.gnu.org; Mon, 29 May 2017 10:20:14 -0400
Received: from mail-pg0-f50.google.com ([74.125.83.50]:32911)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lantw44@gmail.com>) id 1dFLWm-0001H4-GZ
 for 27037@debbugs.gnu.org; Mon, 29 May 2017 10:20:12 -0400
Received: by mail-pg0-f50.google.com with SMTP id u187so23674225pgb.0
 for <27037@debbugs.gnu.org>; Mon, 29 May 2017 07:20:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=Bp+5SLY6ZXg9XBp71HdWpK3aAQy83uQeN6oKrPB8TA8=;
 b=p2KRtARtMv314rqleU3JXfFA0zAlFWNpDgFQ4+0VFVpNemXsiJP8qIVRExrhRVUbm/
 PlkyLqb/E7Vqzyhjkq2sVt0cDxOZH8FiVGu53ZWCzR4vNI4ZmyKSTI9toAXzC/wu6ByF
 4+o1t5GgbUxlZnWSy7qcmy2mWx5fpDDTnV7t/68b9FMD/WpresdVHP4Fj9h0YHBLtCpN
 j/sonQgGSWZ3TqLJpra0ve75HmYurb9P62Ao1SCpqf1Yo89ANYgwr/NXu3zb3seXGfIs
 sIy5puhpFYOAGD6kzDwX89176Coh4pcGPox05j5HeQKpjCNnDXpL0V0gPY8Po9m653uV
 jffw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:cc:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=Bp+5SLY6ZXg9XBp71HdWpK3aAQy83uQeN6oKrPB8TA8=;
 b=O1qbWnTzmrD3SQ1QypQAKkzT+KgkPF2CtjJVY2X0dxt5d4gJKRfc4fnUCp2qxmZ+5P
 PH2mIgntR77dUoTX9w4ECBWmb1jpksl55hf2C9D1TfgRXqa3aUVjBtZhXDJDrV/Xe46l
 cyNMKQYflkeOzBQPuikiW/1+AF8cPTdBc93DRNUG9ID2EgwCAzwouL0EsfDSD9dAKN+n
 /4vGW8Oa/sYwC+Xlg/lE/lp6e1rCydnMzdC6ObDeOOfKGEYogrDyhbUDdXbNY3EBWCKx
 QT/HZZhiXS4547ESE1aznmeAnRu1+ZuseWDmAGUjLpZcr8XtEcKYYb/4ND1Yhae+Japl
 stig==
X-Gm-Message-State: AODbwcBtRCjzmzs73Qol/HVASS9CayNQpkRhcJ8PEo4hsIJyhkiHkv+d
 qtBpodzTwNI/N7a9Sgo=
X-Received: by 10.99.176.9 with SMTP id h9mr19614059pgf.160.1496067606212;
 Mon, 29 May 2017 07:20:06 -0700 (PDT)
Received: from [192.168.0.102] (118-163-160-119.HINET-IP.hinet.net.
 [118.163.160.119])
 by smtp.googlemail.com with ESMTPSA id p4sm22246087pgf.21.2017.05.29.07.20.03
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 29 May 2017 07:20:05 -0700 (PDT)
Subject: Re: bug#27037: systemd service files installed by guix 0.13.0 cannot
 used by other distributions
To: Leo Famulari <leo@famulari.name>
References: <CAG-RorUA4NG3wdJcStHTCMASJXtk-gWo-aM6+GHfi=V2=o1wyA@mail.gmail.com>
 <20170523161624.GA15379@jasmine>
 <8c249c24-b33b-3f41-112c-59e04d96803b@gmail.com>
 <20170524220753.GA27348@jasmine>
From: 藍挺瑋 <lantw44@gmail.com>
Message-ID: <eebf6dd4-e00f-1386-269e-6410a0cc336d@gmail.com>
Date: Mon, 29 May 2017 22:19:58 +0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.1.0
MIME-Version: 1.0
In-Reply-To: <20170524220753.GA27348@jasmine>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.2 (/)
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.2 (/)
Leo Famulari 於 西元2017年05月25日 06:07 寫道:
> On Wed, May 24, 2017 at 11:37:27PM +0800, 藍挺瑋 wrote:
>> Leo Famulari 於 西元2017年05月24日 00:16 寫道:
>>> I'm a little confused: is there a situation where Guix is not installed
>>> but '/usr/bin/guix-daemon' exists?
>>
>> This can happen with source installation. 'make install' installs
>> /usr/bin/guix* but not /var/guix. /var/guix doesn't exist until guix-daemon
>> is started.
> 
> I see. We discussed this use case previously, which led to the change
> which caused your issue:
> 
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25852#80
> 
> In short, we decided to break this for `make install` since we didn't
> come up with a better solution at the time.
> 
>>> 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.
>>
>> I think you mean that the systemd service files included in Guix are only
>> intended to be used with binary installation process. Do you mean that using
>> them with traditional 'make install' installation is not supported?
> 
> It's de facto unsupported, since it's not working :) But, I think we
> should address this use case, since it is causing problems for
> downstream packagers.
> 
>> Yes, I am packaging Guix for Arch and Fedora, and I use the systemd service
>> files provided by Guix in my packages since version 0.8.3. If doing so is
>> never supported, I can make my own service files like what I did for version
>> 0.6 to 0.8.2 and I think this bug can be closed.
> 
> I do think you should look into tailoring a service file to those
> systems; you might be able to provide Guix on those systems in a more
> integrated or idiomatic way.

I updated my packages to install two systemd service files for 
guix-daemon to allow users to choose between /usr/bin/guix-daemon and 
/var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon.

> 
> However, we also try to offer upstream service files in the packages
> offered by Guix, so I'd like to find a way to support both the binary
> installation and `make install` use cases simultaneously.
> 
> Unless somebody proposes a fix in the meantime, I'll look into this more
> closely before the next release.
> 

Is it possible to resolve it by providing a configure option to choose 
between two versions of systemd service files, so guix binary tarballs 
can use /var/guix/profiles but packages of other distributions can use 
/usr/bin?




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Tue Sep 9 07:34:32 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.