GNU bug report logs

#46871 Service manager "init scripts" missing from current-guix

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

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

Received: (at 46871) by debbugs.gnu.org; 4 Mar 2021 03:38:05 +0000
From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 03 22:38:05 2021
Received: from localhost ([127.0.0.1]:57380 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1lHeoP-00045Q-4H
	for submit@debbugs.gnu.org; Wed, 03 Mar 2021 22:38:05 -0500
Received: from mail-wr1-f51.google.com ([209.85.221.51]:41393)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@gmail.com>) id 1lHeoN-00044r-B1
 for 46871@debbugs.gnu.org; Wed, 03 Mar 2021 22:38:03 -0500
Received: by mail-wr1-f51.google.com with SMTP id f12so22214264wrx.8
 for <46871@debbugs.gnu.org>; Wed, 03 Mar 2021 19:38:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:in-reply-to:references:date:message-id
 :mime-version; bh=cJmMAt0+aYgK5qlhnKJbHPZhoUyMwn8Plfstvq8cu/s=;
 b=oDTIdY5TJKfcwQ0pZbI71ny1rzGguhloQ10ZkbNj3seD8X/zkYHQAaFoHe848Or2GR
 SEXMRYYGTSriNsxvbEyD9YcnTREtpa//p866TLGHrH/pp1ub70VEKeDPpP89xHdpHl+v
 1V5WumlarViFTMOO87kkGsPE4No/s6mxxuInZh3w16IRpZswtMVjMqkHdHeM67ghkAaE
 x3tq1GjxVemv0hXOgFlfHTS0QTy5sxWYQsdT5GCckB3DEN1LwV5qVFi6DWwCc/ZCizBQ
 vVmf34b7hdk1rW6wdIDOnko06d4LwLJajSD+mQE4ieCeXbnEo6OK+YK8iayDyGLhldL+
 EbAA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date
 :message-id:mime-version;
 bh=cJmMAt0+aYgK5qlhnKJbHPZhoUyMwn8Plfstvq8cu/s=;
 b=bNej+ocenl/XFAh5WFFnP1AudpUau0KVyliDUAMcB/BzzQdtXWvLWQasVOzf/Iayg3
 7Zo7GBZsD7Hr9EKx6EiTS33cmeoG3yxxL6oidqKovxw+ff7zeVnoOu1mUG/XTZMUsM0h
 HSOYVUhEmArbFJj1TH6SNj3pgtScZBNyYZts2gJNmFc7evhv0+6CZiH2Zr9q9dBZnv86
 2D3EE1swcsZd9X69tNnbmmsAkCqOOS2urQuYnmG36G3VxohInJAuva98JFKbX1YBgDEt
 cqlaGVKHd7fTLsFOAXoeATPbNsP7++5mdOLM++3khxg0lCTa9ERFxrjJL+1CYxGiGjHD
 RYMA==
X-Gm-Message-State: AOAM532DuD3zZHHm4boWwKSB9ZzVTScQPFKmKHIwMPHVjt9ZxLxaKt2w
 hO/bKbgSxDG031+acJfS3D9AVbl/WAw=
X-Google-Smtp-Source: ABdhPJxZ0NTLtkQOqXe5T61ncWeUu5hfCOoMwCdfejZbVQrScShTXMFs4mNnEi8dF9kNvU8YFk1WNA==
X-Received: by 2002:a5d:5411:: with SMTP id g17mr1764258wrv.194.1614829077259; 
 Wed, 03 Mar 2021 19:37:57 -0800 (PST)
Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id a21sm9655047wmb.5.2021.03.03.19.37.55
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 03 Mar 2021 19:37:56 -0800 (PST)
From: zimoun <zimon.toutoune@gmail.com>
To: Leo Famulari <leo@famulari.name>, 46871@debbugs.gnu.org
Subject: Re: bug#46871: Service manager "init scripts" missing from
 current-guix
In-Reply-To: <YD3VuIZ4FLpjpqN1@jasmine.lan>
References: <YD3VuIZ4FLpjpqN1@jasmine.lan>
Date: Thu, 04 Mar 2021 04:27:39 +0100
Message-ID: <86pn0fsims.fsf@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46871
Cc: Mathieu Othacehe <othacehe@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: -1.0 (-)
[Message part 1 (text/plain, inline)]
Hi,

On Tue, 02 Mar 2021 at 01:05, Leo Famulari <leo@famulari.name> wrote:

> ------
> cp: cannot stat '/root/.config/guix/current/etc/openrc/guix-daemon': No such file or directory
> chmod: cannot access '/etc/init.d/guix-daemon': No such file or directory
>  * rc-update: service `guix-daemon' does not exist
> ------
>
> I downloaded the 1.2.0 release binary and, indeed, there is no directory
> 'etc/openrc' in root's current-guix profile. It's also missing from the
> 'guix-1.2.0' store item that is the current-guix in this context.
>
> There is 'etc/init.d', 'lib/upstart', and 'lib/systemd'.

Neither in the latest binary from CI:

<https://ci.guix.gnu.org/search/latest/archive?query=spec:guix-master+status:success+system:x86_64-linux+guix-binary.tar.xz>

Noting ’guix-profile’ instead of ’current-profile’ in the extracted ’var’:

$ ls -l var/guix/profiles/per-user/root/
total 0
lrwxrwxrwx 1 sitour sitour 19 janv.  1  1970 guix-profile -> guix-profile-1-link
lrwxrwxrwx 1 sitour sitour 51 janv.  1  1970 guix-profile-1-link -> /gnu/store/…-profile

Mathieu, how this ’latest’ tarball is produced?  With “guix pack
--profile-name=current-guix” as in “make release”?


The 2 last commits seems about openrc seem,

  d27dbeb9d8 gnu: guix: Install OpenRC init files to $(prefix)/etc.
  cabac732de guix-install.sh: Support OpenRC.

I miss why in nix/local.mk:

--8<---------------cut here---------------start------------->8---
# The service script for openrc.
openrcservicedir = $(sysconfdir)/init.d
nodist_openrcservice_DATA = etc/openrc/guix-daemon
--8<---------------cut here---------------end--------------->8---

instead of:

  openrcservicedir = $(sysconfdir)/openrc

and then in accordance with the substitutes* replacement.  Well, this
tiny patch does that:


[fix.patch (text/x-diff, inline)]
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 776867eab7..938907eb12 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -212,7 +212,7 @@ $(prefix)/etc/init.d\n")))
                         (substitute* "nix/local.mk"
                           (("^openrcservicedir = .*$")
                            (string-append "openrcservicedir = \
-$(prefix)/etc/init.d\n")))
+$(prefix)/etc/openrc\n")))
 
                         (invoke "sh" "bootstrap")))
                     (add-before 'build 'use-host-compressors
diff --git a/nix/local.mk b/nix/local.mk
index d2ce349d9c..7c438ea78c 100644
--- a/nix/local.mk
+++ b/nix/local.mk
@@ -181,7 +181,7 @@ etc/init.d/guix-daemon: etc/init.d/guix-daemon.in	\
 	mv "$@.tmp" "$@"
 
 # The service script for openrc.
-openrcservicedir = $(sysconfdir)/init.d
+openrcservicedir = $(sysconfdir)/openrc
 nodist_openrcservice_DATA = etc/openrc/guix-daemon
 
 etc/openrc/guix-daemon: etc/openrc/guix-daemon.in	\
[Message part 3 (text/plain, inline)]


It seems to fix…  but not well tested since I am still failing with
“make release”. :-)

I have tried with

  ./pre-inst-env guix build guix \
      --with-git-url=guix=$(pwd) \
      --with-commit=guix=xxxxxxxx

WDYT?


> Weirder: none of these files are available in current-guix on a
> "current" Guix installation, although they do appear in the result of
> `guix build guix`. Minus openrc of course. Is this expected?

Is it not the difference between the package Guix and (guix self)?
Other said, “guix pull” does not install the package Guix in “current”
but compile (guix self).  Maybe I misunderstand something.


Cheers,
simon

Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 07:46:33 2024; 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.