From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uFDqIGFWQGDUBAAA0tVLHw (envelope-from ) for ; Thu, 04 Mar 2021 03:39:13 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KB+mHGFWQGARdAAAbx9fmQ (envelope-from ) for ; Thu, 04 Mar 2021 03:39:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id 239F71ECB0 for ; Thu, 4 Mar 2021 04:39:11 +0100 (CET) Received: from localhost ([::1]:38436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHepS-0006zD-N3 for larch@yhetil.org; Wed, 03 Mar 2021 22:39:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHepK-0006yz-PG for bug-guix@gnu.org; Wed, 03 Mar 2021 22:39:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHepK-0005a5-Hq for bug-guix@gnu.org; Wed, 03 Mar 2021 22:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHepK-00046k-Fl for bug-guix@gnu.org; Wed, 03 Mar 2021 22:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46871: Service manager "init scripts" missing from current-guix Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 Mar 2021 03:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46871 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Leo Famulari , 46871@debbugs.gnu.org Received: via spool by 46871-submit@debbugs.gnu.org id=B46871.161482908515716 (code B ref 46871); Thu, 04 Mar 2021 03:39:02 +0000 Received: (at 46871) by debbugs.gnu.org; 4 Mar 2021 03:38:05 +0000 Received: from localhost ([127.0.0.1]:57380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) 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 ) 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 In-Reply-To: References: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Othacehe Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614829153; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=cJmMAt0+aYgK5qlhnKJbHPZhoUyMwn8Plfstvq8cu/s=; b=bUJXW451bLn6G4qD85mGdCjB1wVloLVQlFwZEdYA2+OT26eC76FMn10NN85/mUYUEbDLI8 GOImgzGKnHcS9OoCS+LAVSr62WNU+zIVA2QLbVBWHIv6xuygbpkYb+bv4LNyIK91SYvxFo 767euNaCuGCB0Ujbv0utiP5DUy8qZdH9ujkDTMoGZvn5qziQS8qeYnJplGRWcyph2Uhn/z riceUzAQOaN9ycqg7QvgcePa8nMhLqa+hEucrnExfjZiTeQkleKB/s/MBTA5LQ5aZTXTnT YzukAbJFES8Kig4XbvEZ9V7NRsZkGrE/EFtHIV72OPjUApH94JhLT1n0yNW0fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614829153; a=rsa-sha256; cv=none; b=pMtCM4LE68CMSA/5fFr3h1B7/fKhKH/h5GAZjYR+1MV/1NVtno4y4Y/ZrTgu2WjmyuKLY9 PYcYoLBJIJbG13j+RfAYgrASGR3Ynr+cp9neSnMnHr0UByIBScWChMtuMNH1TbRuu4QRa3 QvhHhzV/FGe0snHQ0IsoUxAft8qV67YsUNL76hx/3BP3VYdLPaLPSn9RsXIocoWgF4tNbe haBQ98EoIbBnL5aDiOrETGjjUflX5mbEnZUS0dF8tyk91v7TUkSaekmiHNcwIXVtqgPS3r JtRrtrLvf+2GdhWMVlVuiJd/DcgOw8ZNsBurKJGAVbgzPyQbJYlXekiTphdJGg== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=oDTIdY5T; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.26 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=oDTIdY5T; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 239F71ECB0 X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: G/KeuGDQsIfk --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On Tue, 02 Mar 2021 at 01:05, Leo Famulari wrote: > ------ > cp: cannot stat '/root/.config/guix/current/etc/openrc/guix-daemon': No s= uch 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: Noting =E2=80=99guix-profile=E2=80=99 instead of =E2=80=99current-profile= =E2=80=99 in the extracted =E2=80=99var=E2=80=99: $ 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/st= ore/=E2=80=A6-profile Mathieu, how this =E2=80=99latest=E2=80=99 tarball is produced? With =E2= =80=9Cguix pack --profile-name=3Dcurrent-guix=E2=80=9D as in =E2=80=9Cmake release=E2=80=9D? 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 =3D $(sysconfdir)/init.d nodist_openrcservice_DATA =3D etc/openrc/guix-daemon --8<---------------cut here---------------end--------------->8--- instead of: openrcservicedir =3D $(sysconfdir)/openrc and then in accordance with the substitutes* replacement. Well, this tiny patch does that: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=fix.patch Content-Description: fix.patch 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 \ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable It seems to fix=E2=80=A6 but not well tested since I am still failing with =E2=80=9Cmake release=E2=80=9D. :-) I have tried with ./pre-inst-env guix build guix \ --with-git-url=3Dguix=3D$(pwd) \ --with-commit=3Dguix=3Dxxxxxxxx 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, =E2=80=9Cguix pull=E2=80=9D does not install the package Guix i= n =E2=80=9Ccurrent=E2=80=9D but compile (guix self). Maybe I misunderstand something. Cheers, simon --=-=-=--