From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6IlOEvOVXWB7VAAAgWs5BA (envelope-from ) for ; Fri, 26 Mar 2021 09:06:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IOkwDPOVXWA6cwAAB5/wlQ (envelope-from ) for ; Fri, 26 Mar 2021 08:06:11 +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 aspmx1.migadu.com (Postfix) with ESMTPS id EE38032B17 for ; Fri, 26 Mar 2021 09:06:10 +0100 (CET) Received: from localhost ([::1]:36700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPhTt-0004t7-G5 for larch@yhetil.org; Fri, 26 Mar 2021 04:06:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPhTm-0004sv-8X for guix-patches@gnu.org; Fri, 26 Mar 2021 04:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56988) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPhTl-0004Z6-Vl for guix-patches@gnu.org; Fri, 26 Mar 2021 04:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPhTl-00025c-R0 for guix-patches@gnu.org; Fri, 26 Mar 2021 04:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47407] [PATCH] gnu: guix: Fix openrc init scripts. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 26 Mar 2021 08:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47407 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47407@debbugs.gnu.org Cc: zimoun X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16167459438006 (code B ref -1); Fri, 26 Mar 2021 08:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Mar 2021 08:05:43 +0000 Received: from localhost ([127.0.0.1]:40301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPhTT-000253-4a for submit@debbugs.gnu.org; Fri, 26 Mar 2021 04:05:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:38088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPhTR-00024w-6z for submit@debbugs.gnu.org; Fri, 26 Mar 2021 04:05:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPhTR-0004lb-0q for guix-patches@gnu.org; Fri, 26 Mar 2021 04:05:41 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:35658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPhTM-0004Kb-4y for guix-patches@gnu.org; Fri, 26 Mar 2021 04:05:40 -0400 Received: by mail-wr1-x42a.google.com with SMTP id j18so4733269wra.2 for ; Fri, 26 Mar 2021 01:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/dexsnbi0uDApKS9nRmkWsnZ6UrFihBWQogXt27O4/s=; b=L8kXDCAuKyd3aMtdm3WhyT7EiFkgtawcvm88Ptz/gkva4SwMWaz3UmW1bTJC6Y/JhR e0dAK0FOzGXSiHzYj7meGzTrabI4/hI3ZbzYcUcoso7di3uJnNfIboAzPWmXQYBOBkCp pe5ZOCNBn4hCNjmSQh4VoYVf6KLfOnvQ128q5RTloDZBqj8RBEfcTUg9DoKXYtguBzsr 8kcU1iOLgUPQs50Mmo/yb84ru58nA2p0Sq9f5RPPyvjdioJAFDNneZbNVStCYpkl0ZQu wKB5RFRzXrqp4PgYHjwrMgZQKJqAIaXHCKscfPKKv8Xtnc3/XdFs2e8eLC2Han6EKMaM jEPg== 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:date:message-id:mime-version :content-transfer-encoding; bh=/dexsnbi0uDApKS9nRmkWsnZ6UrFihBWQogXt27O4/s=; b=tgmrcEwYGzXqC80XicYmQ6tTg7L2tsxBlTdxmKnMjwVkdhasnN1/ntQw8nIpsc+sYy A2nb6Rv5RlaC3clpf45JKh+54qPo0jp52ztmzfNIShxvvkmNji6eVQN8nIt7TaPeV5vJ 7Qhj4Dcitd1elR3oRPjVbMMi+A5UvdA/EEzdUvUxWBfh4vBORASbfJ+Ag3ZZXEso37ML QQI3BTrKwATCIEmna0yjn3bhgAg3J5jLo+U+g14yRVTOgJ66RFwektrAkw02YJD1vDee xcHHm7FaDQKnT2/vjIk8W8ou6AWfhBpyRfQgxiWYnoJCN79QhkIswbP+GIX2uSrkHZKt wIwA== X-Gm-Message-State: AOAM533My2w1or6aX22+2NehDRll8XRL5KNk6DAJXS7ZtMledzZLkmWy MNBF//VuJxNdj5au6R6EZ2UX5ErTT80= X-Google-Smtp-Source: ABdhPJw+oKpATQQOxerMi+m8rzKdPBGRsTkWdxlo3zSFnPc1yQeScTNAQVydOMfYbLw87fVsADwSWQ== X-Received: by 2002:a5d:564b:: with SMTP id j11mr13242131wrw.326.1616745933687; Fri, 26 Mar 2021 01:05:33 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.110]) by smtp.gmail.com with ESMTPSA id i8sm11015913wrx.43.2021.03.26.01.05.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 01:05:33 -0700 (PDT) From: zimoun Date: Fri, 26 Mar 2021 09:05:15 +0100 Message-Id: <20210326080515.29679-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616745971; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/dexsnbi0uDApKS9nRmkWsnZ6UrFihBWQogXt27O4/s=; b=RJczis9eubwDzpzZ46KhKLoEawF9mCS2BzOM1Q1dzFU83ZGabcFgjh0D9BEYSnUZ6U9/pD BoaVlaNJIQtGrIsnR/jhsfewdDFfkSvCkDhBd61uXUcNd0MLanRpUNOsTiJLbYKfxMxjLH ZQCm5YDJTvMf74Qfr5i1ZfHpS6KUGxQ6cbbKVCYm+1PyWa7aep8ookO9bjtpL3HKWB+u2M wDAWF+sS47w+sGXoThhOdd5zKdveDV2zpsw3MrTcN/9nhzyQd3wF1VvDeAkgekKSMji1V4 /ST722QS3mUcw57/4pWqnLbujNm9pw7JQTR9iBNIsYdjAonjmli+O8HDk0mHsA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616745971; a=rsa-sha256; cv=none; b=e8eXDw0zWRiH2DPeuo74recoR+Z/zR7r1cQuhI7YEUjKvP8PKOJPZpcKZlwgKZmf5XRrxs Tbn2gNkjCLF7dueOwfT/RnBD919uQrLwZ/C3QOXlfsx81uPZFxsM5YSoZpEjn+9+I9nn7+ nvPkAARlRYLMH5EBwdaj70oZ5pI+iv0ZvIvyCUSt8qw1PXJHr3Sc1nnykMTr3pu6p9VTm3 ESQfkR21BnVBpttqzonpKbbzkDmUgduW6snEpljMEi0GnC/JndOTA1mmoQVx7punjV79Bz eZ4okLVlcwXnWseCyX5UoiVX52jSv5vYMzQpT88nf5eKBIrERKAuHqAFqnaaQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=L8kXDCAu; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=L8kXDCAu; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: EE38032B17 X-Spam-Score: 2.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: gcPIAdCWPwSe Fixes . * gnu/packages/package-management.scm (guix): [arguments]: Fix openrc init. * nix/local.mk: Likewise. --- Hi, The patch is tested using: $ ls $(./pre-inst-env guix build guix \ --with-git-url=guix=$(pwd) \ --with-commit=guix=028e6859ec)/etc/openrc where 028e6859ec is my commit-hash after this patch applied. Then openrc appears under the expected location. Thanks, simon gnu/packages/package-management.scm | 2 +- nix/local.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 888f54322d..e63f07c844 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 \ base-commit: 6e7ba45357078b31a369b23f8a9f38302dfcbb10 -- 2.30.1