From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#25852: Users not updating their installations of Guix Date: Thu, 09 Mar 2017 11:58:12 +0100 Message-ID: <87innid8e3.fsf@gnu.org> References: <20170223211156.GA24382@jasmine> <877f429kju.fsf@gnu.org> <20170306213434.GA25316@jasmine> <20170307063330.bhv2ugsvi3qeofu5@penguin> <20170307195118.GA30247@jasmine> <20170307205848.42w2pusavz37dgwu@penguin> <20170307222215.GA4046@jasmine> <20170308062542.hfypmvgp2o6il2xf@penguin> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clvmj-0000Qx-PU for bug-guix@gnu.org; Thu, 09 Mar 2017 05:59:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clvmg-0007Qq-Nu for bug-guix@gnu.org; Thu, 09 Mar 2017 05:59:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48985) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clvmg-0007Qi-K4 for bug-guix@gnu.org; Thu, 09 Mar 2017 05:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1clvmg-0000rG-DQ for bug-guix@gnu.org; Thu, 09 Mar 2017 05:59:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170308062542.hfypmvgp2o6il2xf@penguin> ("=?UTF-8?Q?Tom=C3=A1=C5=A1_?= =?UTF-8?Q?=C4=8Cech?="'s message of "Wed, 8 Mar 2017 07:25:42 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: =?UTF-8?Q?Tom=C3=A1=C5=A1_?= =?UTF-8?Q?=C4=8Cech?= Cc: 25852@debbugs.gnu.org Tom=C3=A1=C5=A1 =C4=8Cech skribis: > On Tue, Mar 07, 2017 at 05:22:15PM -0500, Leo Famulari wrote: >>On Tue, Mar 07, 2017 at 09:58:48PM +0100, Tom=C3=A1=C5=A1 =C4=8Cech wrote: >>> On Tue, Mar 07, 2017 at 02:51:18PM -0500, Leo Famulari wrote: >>> > This will take effect for the next release of Guix; it addresses a >>> > problem that arises when somebody installs the binary release of Guix. >>> > >>> > I'm not addressing downstream packages of Guix with this commit. >>> >>> I'm sorry, I may not understand correctly your answer. >>> >>> Are you saying that situation when user freshly installs Guix on >>> system with systemd (and thus has empty /gnu/store)? >> >>The "fix" I pushed will help anyone who does a new installation of Guix >>on a Systemd or Upstart-based system, after the next release of Guix. > > Unless I'm missing some other commit, this won't work. > > When I perform these steps: > 1] ./configure && make && sudo make install (or package installation) > 2] mkdir /gnu/store > 3] attempt to start daemon will fail as there is no guix-daemon in > @localstatedir@/guix/profiles/per-user/root/guix-profile/bin/guix-daemon > because there is no guix-daemon in /gnu/store > > Without daemon running you won't be able to make one in that location. Good point. To address this, we might actually need to revert 613d0895b92c677e0639d5e77c55043e38e020c8 (that is, keep @bindir@ in the .service files), and instead replace @bindir@ with @localstatedir@ in the recipe of the =E2=80=98guix=E2=80=99 package. That way, the install-from-source scenario Tom=C3=A1=C5=A1 describes above = would work, *and* the binary tarball would refer to localstatedir as Leo intended. WDYT? Thanks, Ludo=E2=80=99.