GNU bug report logs - #73903
[shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Dariqq <dariqq@HIDDEN>; dated Sun, 20 Oct 2024 10:13:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 73903 <at> debbugs.gnu.org:


Received: (at 73903) by debbugs.gnu.org; 16 Dec 2024 21:33:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 16 16:33:47 2024
Received: from localhost ([127.0.0.1]:56527 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tNIio-0002vW-N4
	for submit <at> debbugs.gnu.org; Mon, 16 Dec 2024 16:33:46 -0500
Received: from mout01.posteo.de ([185.67.36.65]:41437)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dariqq@HIDDEN>) id 1tNIim-0002uu-I7
 for 73903 <at> debbugs.gnu.org; Mon, 16 Dec 2024 16:33:45 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id A7301240027
 for <73903 <at> debbugs.gnu.org>; Mon, 16 Dec 2024 22:33:38 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1734384818; bh=Lhks7xKI2dXg8M4MtQFfbHLmrdBZ7/FCiXsajQZ729E=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:
 Content-Transfer-Encoding:From;
 b=QBs2yAEaugrPBsdSnueuXdz7tXvM/lWunHW7RD507QiDgARxB6mGVQTtLTlHox2Vx
 Jimiu1+Xk6uFICaH2Z93x+nOSJD5r5SF4XeVy40FIBhaRpoNy7dinuWAkDu2ca9sUW
 uYpg2CHDtYhqN9avGcLhaT37Yk7gMdpFge5ULRJN8HlTo+LWRAr3UymFZP5JQvEP1D
 eygYoQB/rjrYZIXK1dFE6OcVFU04FSe3aiHtX7LtO7mN1VdpCl26LlWIpvov15w1da
 jybrCzjKTWiipK8KMmu5nFFWShtuML+dlNypTyfRnwrQZXkLsW4ekQaTg2BISkNaJs
 KqQmB+CEzBsAw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4YBtVB10LHz9rxR;
 Mon, 16 Dec 2024 22:33:38 +0100 (CET)
From: Dariqq <dariqq@HIDDEN>
To: 73903 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: home: Use shepherd-for-home as the default shepherd.
Date: Mon, 16 Dec 2024 21:33:13 +0000
Message-ID: <635b463202206bc955624634a5734987b0319835.1734384082.git.dariqq@HIDDEN>
In-Reply-To: <cover.1734384082.git.dariqq@HIDDEN>
References: <cover.1734384082.git.dariqq@HIDDEN>
MIME-Version: 1.0
X-Debbugs-Cc: ( <paren@HIDDEN>, Andrew Tropin <andrew@HIDDEN>, Janneke Nieuwenhuizen <janneke@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Tanguy Le Carrour <tanguy@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73903
Cc: Dariqq <dariqq@HIDDEN>
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

* gnu/home/services/shepherd.scm (home-shepherd-configuration): Change default
value of shepherd field to shepherd-for-home

Change-Id: I3773403bb1fcdcbe2acb1bbcbfaa009f4d31ace4
---
 gnu/home/services/shepherd.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/home/services/shepherd.scm b/gnu/home/services/shepherd.scm
index 37ad1489d6..c9bf819803 100644
--- a/gnu/home/services/shepherd.scm
+++ b/gnu/home/services/shepherd.scm
@@ -55,7 +55,7 @@ (define-record-type* <home-shepherd-configuration>
   home-shepherd-configuration make-home-shepherd-configuration
   home-shepherd-configuration?
   (shepherd home-shepherd-configuration-shepherd
-            (default shepherd-1.0))               ;package
+            (default shepherd-for-home))               ;package
   (auto-start? home-shepherd-configuration-auto-start?
                (default #t))
   (daemonize? home-shepherd-configuration-daemonize?
-- 
2.46.0





Information forwarded to , bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.

Message received at 73903 <at> debbugs.gnu.org:


Received: (at 73903) by debbugs.gnu.org; 16 Dec 2024 21:33:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 16 16:33:42 2024
Received: from localhost ([127.0.0.1]:56524 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tNIik-0002v9-9x
	for submit <at> debbugs.gnu.org; Mon, 16 Dec 2024 16:33:42 -0500
Received: from mout02.posteo.de ([185.67.36.66]:55363)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dariqq@HIDDEN>) id 1tNIii-0002uj-60
 for 73903 <at> debbugs.gnu.org; Mon, 16 Dec 2024 16:33:40 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 55571240101
 for <73903 <at> debbugs.gnu.org>; Mon, 16 Dec 2024 22:33:33 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1734384814; bh=aIxYr0NUaWuGoQHYGQJf6+pQJhnM6lRjX6TKvptCCsA=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:
 Content-Transfer-Encoding:From;
 b=duiXYmD1IdO7QYl2BNyb07h9qDF6w8CU0hxBsRFF6k3bG26fAS26R8ybA1X1C+GYX
 9Q0u7zTvSoXalyXqe+FsLQo49rPk5oeXlKh4aavEciMTlTiXPABpyDaT6xU3vlaRBE
 YKWFUV6rV10lAEFqOjdLW9J/W4/GlTfgpvLiBK11Htmrh9ohlz5wvmJPwiJCXNo7rf
 0ohnx1rZwXp3TiZL+xal9PAqEhC05QrUEmkQniD7TIM+wiG7IjvI83tYHjqHdidaKX
 T2zvk2O1mlYGrwjq4wb6O3/xk0IkX2DI2ev75k/fU3lCiLQ9iNVCMRXWnnNEI9TRJY
 TbwDJ5pqcmz4w==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4YBtV52dMXz9rxN;
 Mon, 16 Dec 2024 22:33:33 +0100 (CET)
From: Dariqq <dariqq@HIDDEN>
To: 73903 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: Add shepherd-for-home.
Date: Mon, 16 Dec 2024 21:33:12 +0000
Message-ID: <eb03bd84723fc23f8ca3548442f4b44ba96a6891.1734384082.git.dariqq@HIDDEN>
In-Reply-To: <cover.1734384082.git.dariqq@HIDDEN>
References: <cover.1734384082.git.dariqq@HIDDEN>
MIME-Version: 1.0
X-Debbugs-Cc: Sharlatan Hellseher <sharlatanus@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73903
Cc: Dariqq <dariqq@HIDDEN>
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

* gnu/packages/admin.scm (shepherd-for-home): New variable.

Change-Id: If66c7e7b688de239ca862326b51592b43ba22c25
---
 gnu/packages/admin.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 77d02baa4e..08ac3d582a 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -428,6 +428,33 @@ (define-public shepherd-1.0
 
 (define-public shepherd shepherd-0.10)
 
+;; A variant of shepherd without sbin to not mask
+;; halt and reboot on foreign distributions
+(define-public shepherd-for-home
+  (let ((base shepherd-1.0))
+    (hidden-package
+     (package/inherit base
+       (name "shepherd-for-home")
+       (source #f)
+       (build-system trivial-build-system)
+       (arguments
+        (list
+         #:modules '((guix build union)
+                     (guix build utils))
+         #:builder
+         #~(begin
+             (use-modules (guix build union)
+                          (guix build utils))
+             (union-build #$output
+                          (list #$(this-package-input "shepherd"))
+                          #:create-all-directories? #t)
+             (delete-file-recursively
+              (string-append #$output "/sbin"))
+             (delete-file-recursively
+              (string-append #$output "/share/man/man8")))))
+       (native-inputs '())
+       (inputs (list base))))))
+
 (define-public guile2.2-shepherd
   (package
     (inherit shepherd-0.10)
-- 
2.46.0





Information forwarded to sharlatanus@HIDDEN, bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.

Message received at 73903 <at> debbugs.gnu.org:


Received: (at 73903) by debbugs.gnu.org; 16 Dec 2024 21:33:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 16 16:33:42 2024
Received: from localhost ([127.0.0.1]:56522 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tNIij-0002v7-TS
	for submit <at> debbugs.gnu.org; Mon, 16 Dec 2024 16:33:42 -0500
Received: from mout01.posteo.de ([185.67.36.65]:33467)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dariqq@HIDDEN>) id 1tNIig-0002ud-5M
 for 73903 <at> debbugs.gnu.org; Mon, 16 Dec 2024 16:33:40 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 07C88240027
 for <73903 <at> debbugs.gnu.org>; Mon, 16 Dec 2024 22:33:30 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1734384811; bh=jj4mjQg9Sj4/8AxxaPfWItesj6DHGsXsEF94wAvkaSM=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:
 Content-Transfer-Encoding:From;
 b=BIXg+7/Gus3VaZXM/KSCyjS+aJb9ZMNirtwqBi9nOufbTGv+y6+Jzhtl4lLg0gjZu
 mlit+Pjs6SaUlk9dSOiHWwW+kbLuV6GzTWZ9TBNBTP0mX2PQ7snzBpb7PHF8612gJz
 Eth4HFaoLivNq5uQ8leSPkKn50Kt0axInw16POFH9lYWFq49D+Hyoiq945oCN1BCCD
 6sHUnbqbsqa9tFIDq9CcIYlpmXnCFxpEA2QbwkP9AiUZ1W3stKyR87v8vw4ZF5/5DX
 1t7zyVd9TE+JYYtOPAawhfFR9VIralnTyUj/ao+tdYI8GA93YpLiNfRiEWy/6TZizO
 dVhxiNHzPoVzw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4YBtV20qJpz9rxG;
 Mon, 16 Dec 2024 22:33:29 +0100 (CET)
From: Dariqq <dariqq@HIDDEN>
To: 73903 <at> debbugs.gnu.org
Subject: [PATCH 0/2] Add shepherd-for-home and make it default
Date: Mon, 16 Dec 2024 21:33:11 +0000
Message-ID: <cover.1734384082.git.dariqq@HIDDEN>
MIME-Version: 1.0
X-Debbugs-Cc: ( <paren@HIDDEN>, Andrew Tropin <andrew@HIDDEN>, Janneke Nieuwenhuizen <janneke@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Tanguy Le Carrour <tanguy@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73903
Cc: Dariqq <dariqq@HIDDEN>
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hello,

This adds a variant of shepherd without sbin and makes it the default for home services. The reason is that when using guix home with shepherd services on a foreign distribution the default shepherd package masks commands like halt, shutdown and reboot which are usually provided by the initsystem. 

Per the discussion in https://issues.guix.gnu.org/73903 the package is hidden and just symlinks all the relevant files from the base shepberd to the new output.

I successfully reconfigured my home environment and confirmed that halt/reboot are now provided by my system profile.


Dariqq (2):
  gnu: Add shepherd-for-home.
  gnu: home: Use shepherd-for-home as the default shepherd.

 gnu/home/services/shepherd.scm |  2 +-
 gnu/packages/admin.scm         | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)


base-commit: c3290cee6add60b7e56f5f919d9498d78542790a
-- 
2.46.0





Information forwarded to , bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.

Message received at 73903 <at> debbugs.gnu.org:


Received: (at 73903) by debbugs.gnu.org; 12 Dec 2024 10:51:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 12 05:51:16 2024
Received: from localhost ([127.0.0.1]:37818 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tLgmp-0008SM-M9
	for submit <at> debbugs.gnu.org; Thu, 12 Dec 2024 05:51:15 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47136)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1tLgmn-0008S9-Sh
 for 73903 <at> debbugs.gnu.org; Thu, 12 Dec 2024 05:51:14 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1tLgme-0005w7-Sd; Thu, 12 Dec 2024 05:51:07 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=abE4z31F/YmujtDONsWpXI2bKoks/Wvwtsv8c5yUxcQ=; b=arfbG2GmdoadUXqfmCIR
 4NKxwQDVMOWdg82z4NRCdl+sB954cme9uXE32GaK3MyHYZKQeZGIynIk7dLNlKuSxo2ADbtxGuhK6
 WIG2nVQh6ASRvX48hsYSjGjGSJG276FLZTLwi4PpKIpKOHs2dzli5XNoNnqlloQCSTkSvJUtrumyF
 GB189kZ4jdFofguT9jVLkMgq5o6cCPcTwKOSK0lZyIfrJHrX4cF2oN1Hk5ivq0PZKLl0ZBC0RWh+R
 d6t5PBjqGoOxEgANmkidcQ2MqVoDNA9kZ5Brh3GtjyKffUVuUL3BGBkWh6vjb7Rwpsvx5QNs67D2H
 jCde0RXdXvoTFA==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Dariqq <dariqq@HIDDEN>
Subject: Re: bug#73903: [shepherd]: Guix Home's shepherd masks
 shutdown/reboot on foreign distribution
In-Reply-To: <6054002f-17fb-4a5d-832d-30392aac396a@HIDDEN>
 (dariqq@HIDDEN's message of "Tue, 26 Nov 2024 18:49:01 +0000")
References: <7869edcc-d4a4-48a1-9a76-e0e67752d806@HIDDEN>
 <87a5e7wbmf.fsf@HIDDEN>
 <e1746555-6ef6-4a7c-970e-007bdd5c91ab@HIDDEN>
 <87jzcyyygp.fsf@HIDDEN>
 <f344c832-f1e9-48af-b6b6-05ec074be630@HIDDEN>
 <87bjy2at2h.fsf@HIDDEN>
 <6054002f-17fb-4a5d-832d-30392aac396a@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Duodi 22 Frimaire an 233 de la =?utf-8?Q?R=C3=A9volu?=
 =?utf-8?Q?tion=2C?= jour de la =?utf-8?Q?Bruy=C3=A8re?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Thu, 12 Dec 2024 11:50:45 +0100
Message-ID: <87frmtcgze.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73903
Cc: 73903 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Dariqq,

Dariqq <dariqq@HIDDEN> skribis:

> Imo it would make sense to have the sbinless shepherd be the default=20
> shepherd for home-shepherd s.t. the home environment never provides=20
> shutdown/halt by default. Those are commands are for the system to take=20
> care of (whether that is the shepherd coming from root-shepherd or the=20
> init from the foreign system).

I agree.

> On my foreign distro setup i am currently using this (apologies if the=20
> formatting turns out weird):
>
> (define shepherd-for-home
>    (package
>     (inherit shepherd)
>     (name "shepherd-for-home")
>     (source #f)
>     (build-system trivial-build-system)
>     (arguments
>      (list
>       #:modules '((guix build union)
>                   (guix build utils))
>       #:builder
>       #~(begin
>           (use-modules (guix build union)
>                        (guix build utils))
>           (union-build #$output
>                        (list #$(this-package-input "shepherd"))
>                        #:create-all-directories? #t)
>           (delete-file-recursively (string-append #$output "/sbin"))
>           (delete-file-recursively (string-append #$output=20
> "/share/man/man8")))))
>     (native-inputs '())
>     (inputs (list shepherd))))

Perfect!

Would you like to submit a patch adding this package (probably with the
=E2=80=98hidden?=E2=80=99 property), followed by a patch making it the defa=
ult for Home?

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.

Message received at 73903 <at> debbugs.gnu.org:


Received: (at 73903) by debbugs.gnu.org; 26 Nov 2024 18:49:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 13:49:24 2024
Received: from localhost ([127.0.0.1]:52443 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tG0cm-0001jO-5u
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2024 13:49:24 -0500
Received: from mout01.posteo.de ([185.67.36.65]:58831)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dariqq@HIDDEN>) id 1tG0ck-0001j8-Bd
 for 73903 <at> debbugs.gnu.org; Tue, 26 Nov 2024 13:49:23 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 8D519240027
 for <73903 <at> debbugs.gnu.org>; Tue, 26 Nov 2024 19:49:14 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1732646954; bh=RfkMk0My+oUbfhF/ZpVhC8Y2Gn1Txna9rIZU0K0jw74=;
 h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:Content-Type:
 Content-Transfer-Encoding:From;
 b=SuwMO79Wa6wISvPRdKHetje2+JoKiv+U1mhpQ5z/raphMpOkPKJcZA8c3yz80fBb3
 ihSulq43S+G0evLX6u+qdSppRYSKz5F9ViXcJ4MTlFzduO+/1+8BEScIzXk55SKg3p
 ftnTYu3eoNC3ruk1uXR/kHSQnrDnQWukgYT+K2uiqrjIXiaPzMKMvnjpkAyfW+mib/
 LggGnYuOiFzGAWgBv8djU8ho7lJ7lxyacAZLabl8aMzZVm2GjE0xE5kO85zQaZ9+nr
 WXAaUxu+Qgb/Sgz18oPARKW8HOHwrJTnHgQZ9G1mkJEAObP6vcTjKqzIN0pIRywdyj
 pXXeIyMk2e2HA==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4XyWnj5j2Rz9rxF;
 Tue, 26 Nov 2024 19:49:13 +0100 (CET)
Message-ID: <6054002f-17fb-4a5d-832d-30392aac396a@HIDDEN>
Date: Tue, 26 Nov 2024 18:49:01 +0000
MIME-Version: 1.0
Subject: Re: bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot
 on foreign distribution
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
References: <7869edcc-d4a4-48a1-9a76-e0e67752d806@HIDDEN>
 <87a5e7wbmf.fsf@HIDDEN> <e1746555-6ef6-4a7c-970e-007bdd5c91ab@HIDDEN>
 <87jzcyyygp.fsf@HIDDEN> <f344c832-f1e9-48af-b6b6-05ec074be630@HIDDEN>
 <87bjy2at2h.fsf@HIDDEN>
Content-Language: en-US
From: Dariqq <dariqq@HIDDEN>
In-Reply-To: <87bjy2at2h.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73903
Cc: 73903 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

On 26.11.24 16:55, Ludovic Courtès wrote:
> Hi,
> 
> Dariqq <dariqq@HIDDEN> skribis:
> 
>>
>> How should this work? should this be a (public?) procedure? Should it
>> rebuild shepherd or just copy the output with trivial-build-system?
> 
> My understanding of this proposal is that there would be a
> “shepherd-foreign” package, which is like “shepherd” but without
> ‘reboot’ and ‘halt’.
> 
> That package could be implemented with ‘trivial-build-system’ or
> ‘copy-build-system’ indeed, and it would symlink all of ‘shepherd’,
> except its ‘sbin’ directory.
> 

Imo it would make sense to have the sbinless shepherd be the default 
shepherd for home-shepherd s.t. the home environment never provides 
shutdown/halt by default. Those are commands are for the system to take 
care of (whether that is the shepherd coming from root-shepherd or the 
init from the foreign system).

On my foreign distro setup i am currently using this (apologies if the 
formatting turns out weird):

--8<---------------cut here---------------start------------->8---
(define shepherd-for-home
   (package
    (inherit shepherd)
    (name "shepherd-for-home")
    (source #f)
    (build-system trivial-build-system)
    (arguments
     (list
      #:modules '((guix build union)
                  (guix build utils))
      #:builder
      #~(begin
          (use-modules (guix build union)
                       (guix build utils))
          (union-build #$output
                       (list #$(this-package-input "shepherd"))
                       #:create-all-directories? #t)
          (delete-file-recursively (string-append #$output "/sbin"))
          (delete-file-recursively (string-append #$output 
"/share/man/man8")))))
    (native-inputs '())
    (inputs (list shepherd))))
--8<---------------cut here---------------end--------------->8---


If we don't want to care about the manpages then the 
(#:create-all-directories? #t) can be omitted in union-build.

>> I just thought of a more elegant solution, but this would be a lot
>> harder to implement properly:
>>
>> - Move the sbin stuff into a seperate output
>> - Home shepherd service only adds the main output to the profile and
>>    shepherd-root-service both
>> - Will need adjustments some packages that currently reference
>>    shutdown/reboot ( -> lots of rebuilds because logind) and the same
>>    change for the shepherd packages in the shepherd module.
> 
> The advantage is that no extra step would be needed when using a foreign
> distro.  But yeah, it’s relatively intrusive, and not my favorite
> solution, FWIW.  Dunno.
> 


If this would be possible without rebuilding I'd really like it because 
it makes clear what part of the shepherd something depends on (service 
manager stuff vs generic init stuff) and avoids an extra package that is 
just shepherd minus sbindir. But the 3300 dependants of logind makes 
this really unattractive.

> WDYT?
> 
> Ludo’.

Dariqq





Information forwarded to bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.

Message received at 73903 <at> debbugs.gnu.org:


Received: (at 73903) by debbugs.gnu.org; 26 Nov 2024 15:55:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 10:55:15 2024
Received: from localhost ([127.0.0.1]:50182 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tFxuE-00015P-V7
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2024 10:55:15 -0500
Received: from eggs.gnu.org ([209.51.188.92]:36062)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1tFxuC-00012Z-D0
 for 73903 <at> debbugs.gnu.org; Tue, 26 Nov 2024 10:55:13 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1tFxu5-0005NQ-IB; Tue, 26 Nov 2024 10:55:05 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=cu9NC6Z/alI6KcdwKpN8I1GNUKRv/7zDRwG+c656BQg=; b=itdhgpNA+Y7KfQohlsPh
 kGeGhScefqrjuW4m1O1fgTKheWFJ8KFwA2HDarmUVyc/NBo9hg+MV5G7/eEiNXdAvDmtMemrb/hIE
 J33mVbDe2knrELkZmWB5tuLt9+IU6UkRv7v8F1ymSTR5/OYOYeL/lw/TfbWn7LdSdR7iy6wy4nExQ
 fjfuT7Zow/0kR+f8zdHoz2egKVoZMcTHlqPM5ubJNaPTfU0xzLkWmZ5LZ7i2FUWnTtBMUefxnn71a
 zqv85g2KsYX9caG3rnoUUOFg/LrCLWo50Nz7nHrVAfbZjTdTbPdm3JVmt12F56iKEpa1kbwNYPGzQ
 /y34tS9btbpmFA==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Dariqq <dariqq@HIDDEN>
Subject: Re: bug#73903: [shepherd]: Guix Home's shepherd masks
 shutdown/reboot on foreign distribution
In-Reply-To: <f344c832-f1e9-48af-b6b6-05ec074be630@HIDDEN>
 (dariqq@HIDDEN's message of "Thu, 21 Nov 2024 16:21:55 +0000")
References: <7869edcc-d4a4-48a1-9a76-e0e67752d806@HIDDEN>
 <87a5e7wbmf.fsf@HIDDEN>
 <e1746555-6ef6-4a7c-970e-007bdd5c91ab@HIDDEN>
 <87jzcyyygp.fsf@HIDDEN>
 <f344c832-f1e9-48af-b6b6-05ec074be630@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Sextidi 6 Frimaire an 233 de la =?utf-8?Q?R=C3=A9vol?=
 =?utf-8?Q?ution=2C?= jour de la =?utf-8?Q?M=C3=A2che?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Tue, 26 Nov 2024 16:55:02 +0100
Message-ID: <87bjy2at2h.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73903
Cc: 73903 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Dariqq <dariqq@HIDDEN> skribis:

> On 20.11.24 11:46, Ludovic Court=C3=A8s wrote:
>
>>=20
>>> Another (simpler solution) would be to just solve the problem in guix
>>> by using a shepherd variant that deletes sbin and share/man/man8.
>> Yes, this sounds like a reasonable solution to me.
>> Ludo=E2=80=99.
>
> How should this work? should this be a (public?) procedure? Should it
> rebuild shepherd or just copy the output with trivial-build-system?

My understanding of this proposal is that there would be a
=E2=80=9Cshepherd-foreign=E2=80=9D package, which is like =E2=80=9Cshepherd=
=E2=80=9D but without
=E2=80=98reboot=E2=80=99 and =E2=80=98halt=E2=80=99.

That package could be implemented with =E2=80=98trivial-build-system=E2=80=
=99 or
=E2=80=98copy-build-system=E2=80=99 indeed, and it would symlink all of =E2=
=80=98shepherd=E2=80=99,
except its =E2=80=98sbin=E2=80=99 directory.

> I just thought of a more elegant solution, but this would be a lot
> harder to implement properly:
>
> - Move the sbin stuff into a seperate output
> - Home shepherd service only adds the main output to the profile and
>   shepherd-root-service both
> - Will need adjustments some packages that currently reference
>   shutdown/reboot ( -> lots of rebuilds because logind) and the same
>   change for the shepherd packages in the shepherd module.

The advantage is that no extra step would be needed when using a foreign
distro.  But yeah, it=E2=80=99s relatively intrusive, and not my favorite
solution, FWIW.  Dunno.

WDYT?

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.

Message received at 73903 <at> debbugs.gnu.org:


Received: (at 73903) by debbugs.gnu.org; 21 Nov 2024 16:22:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 21 11:22:15 2024
Received: from localhost ([127.0.0.1]:51450 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tE9wd-0002aZ-EU
	for submit <at> debbugs.gnu.org; Thu, 21 Nov 2024 11:22:15 -0500
Received: from mout01.posteo.de ([185.67.36.65]:56663)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dariqq@HIDDEN>) id 1tE9wb-0002aM-3v
 for 73903 <at> debbugs.gnu.org; Thu, 21 Nov 2024 11:22:14 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id E072F240027
 for <73903 <at> debbugs.gnu.org>; Thu, 21 Nov 2024 17:22:06 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1732206126; bh=yT69bsY/2YKZdJRHGXeiNifnXNJPSGfXf2GnqCwot5Q=;
 h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:Content-Type:
 Content-Transfer-Encoding:From;
 b=jgV4T7ItnG78xDfUxIVFBue46QIcxA6bf6DLaCukzrsx3NqMjjaiuXFao3obafN3P
 ybLAQDsPX5xziMX3YJGXUAdUpYDOVIz1krd23z5t8qpo7YBf0kUQAd3UtQpfwY0/8J
 tHJo7W63i8dm6ZZXXs7yHMhI0y3TjU7xPZVSSBj/U09M3hAIkZM9EXBm5s2yw2GEDH
 LOnnh8aCMPGdssgVqYj1alw5Elh6FaSV6/gWT3+hLTAGu8rJ0a8Z0u2q/cJtgCCLtC
 XGJFPotICJg4xkE13ArKxnh1PaDr3cbxJFvJJd5F9Emq5WqiiMIAwJ+Du4XIwxZDh6
 GBsTCsjcvEn+A==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4XvNmF5jXFz9rxN;
 Thu, 21 Nov 2024 17:22:05 +0100 (CET)
Message-ID: <f344c832-f1e9-48af-b6b6-05ec074be630@HIDDEN>
Date: Thu, 21 Nov 2024 16:21:55 +0000
MIME-Version: 1.0
Subject: Re: bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot
 on foreign distribution
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
References: <7869edcc-d4a4-48a1-9a76-e0e67752d806@HIDDEN>
 <87a5e7wbmf.fsf@HIDDEN> <e1746555-6ef6-4a7c-970e-007bdd5c91ab@HIDDEN>
 <87jzcyyygp.fsf@HIDDEN>
Content-Language: en-US
From: Dariqq <dariqq@HIDDEN>
In-Reply-To: <87jzcyyygp.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73903
Cc: 73903 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

On 20.11.24 11:46, Ludovic Courtès wrote:

> 
>> Another (simpler solution) would be to just solve the problem in guix
>> by using a shepherd variant that deletes sbin and share/man/man8.
> 
> Yes, this sounds like a reasonable solution to me.
> 
> Ludo’.

How should this work? should this be a (public?) procedure? Should it 
rebuild shepherd or just copy the output with trivial-build-system?


I just thought of a more elegant solution, but this would be a lot 
harder to implement properly:

- Move the sbin stuff into a seperate output
- Home shepherd service only adds the main output to the profile and 
shepherd-root-service both
- Will need adjustments some packages that currently reference 
shutdown/reboot ( -> lots of rebuilds because logind) and the same 
change for the shepherd packages in the shepherd module.




Information forwarded to bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.

Message received at 73903 <at> debbugs.gnu.org:


Received: (at 73903) by debbugs.gnu.org; 20 Nov 2024 10:46:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 20 05:46:39 2024
Received: from localhost ([127.0.0.1]:45491 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tDiEJ-0005Mg-7W
	for submit <at> debbugs.gnu.org; Wed, 20 Nov 2024 05:46:39 -0500
Received: from eggs.gnu.org ([209.51.188.92]:35752)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1tDiEH-0005MQ-7k
 for 73903 <at> debbugs.gnu.org; Wed, 20 Nov 2024 05:46:37 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1tDiEC-0004RP-0p; Wed, 20 Nov 2024 05:46:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=n3/06wYxiNuaKReLeSMyJrV+/CW8/XT146KHcYaVOh0=; b=pGJP7CgUE7ymqoA9IfsW
 8xr0hwuX5kNnuKKOnyrYHmEYBpoiO5ivY+ADXRqwUoV15F9AOQE9Yr09Xi+NUYACyLLtvsS/4L7l1
 B9QJ6Hdk2DNRawmJFLHxKqqQ3x76BHJMUE17wvtwVo/MNXl+gS71VjjHIBLxazxji7Y2SiLZ8fXkH
 e2vVCXc7c3S9o10exS2gaJ8RuAXN75EiutawJP3qy2NsTXxg3f6AoajfY5zDMAw7PKDIw4rr/XTX/
 Enis2pqFvgG463Ph1a0/dzN6RJFpjWWzIQdHIeSx4J8kBa9gczXzTVMBshjt1CuxHLu4WwrHJ3Y5q
 sELdhk1sop9Wug==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Dariqq <dariqq@HIDDEN>
Subject: Re: bug#73903: [shepherd]: Guix Home's shepherd masks
 shutdown/reboot on foreign distribution
In-Reply-To: <e1746555-6ef6-4a7c-970e-007bdd5c91ab@HIDDEN>
 (dariqq@HIDDEN's message of "Sun, 10 Nov 2024 15:57:54 +0000")
References: <7869edcc-d4a4-48a1-9a76-e0e67752d806@HIDDEN>
 <87a5e7wbmf.fsf@HIDDEN>
 <e1746555-6ef6-4a7c-970e-007bdd5c91ab@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: =?utf-8?Q?D=C3=A9cadi?= 30 Brumaire an 233 de la
 =?utf-8?Q?R=C3=A9volution=2C?= jour du Rouleau
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Wed, 20 Nov 2024 11:46:30 +0100
Message-ID: <87jzcyyygp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73903
Cc: 73903 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Dariqq <dariqq@HIDDEN> skribis:

> On 10.11.24 12:51, Ludovic Court=C3=A8s wrote:
>> Hi,
>> Dariqq <dariqq@HIDDEN> skribis:
>>=20
>>> When using guix home to manage shepherd services on a foreign
>>> distribution the shepherd package is also added to the home-profile.
>>>
>>> This then makes the home profile provide 'halt', 'shutdown' and
>>> 'reboot' (and their manpages) masking the system ones.
>> Oh, indeed.  I=E2=80=99m not sure how to address that though.  Ideas?
>>=20
> Not sure if this is something that should be addressed by shepherd or
> the default shepherd package used for guix home.

[...]

> Another (simpler solution) would be to just solve the problem in guix
> by using a shepherd variant that deletes sbin and share/man/man8.

Yes, this sounds like a reasonable solution to me.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.

Message received at 73903 <at> debbugs.gnu.org:


Received: (at 73903) by debbugs.gnu.org; 10 Nov 2024 15:58:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 10 10:58:16 2024
Received: from localhost ([127.0.0.1]:56357 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tAAKL-00006j-P6
	for submit <at> debbugs.gnu.org; Sun, 10 Nov 2024 10:58:16 -0500
Received: from mout01.posteo.de ([185.67.36.65]:33681)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dariqq@HIDDEN>) id 1tAAKI-00006T-WD
 for 73903 <at> debbugs.gnu.org; Sun, 10 Nov 2024 10:58:12 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 89DF3240027
 for <73903 <at> debbugs.gnu.org>; Sun, 10 Nov 2024 16:58:04 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1731254284; bh=A+EFj7k2hS4UwFWBCafDv4qjYdvsPCs8aTzLZ5XuKDc=;
 h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:Content-Type:
 Content-Transfer-Encoding:From;
 b=kP2HgmtlnF4GFyyr7ExE1L7YWcj/5pNISOjwVRv2xOaLDLonqa6qtHsWVBGZBAx70
 Ef220qfcHzutibT3h2jKtXy+Rlasjthbw6MyPNLK2OO5tvOTp0a3uOfXtUCxHYHKx2
 afuWkL9CO8aX5+p6ZC/bCkitvyliUcCipGIlO7pnmd6+nH/QjpKdKpCAShTvT/AM8n
 iiQg2NUkQGXnUq1UodBU4CBv47vXGA0DoW2AVYaPdh4I38eHyAm3IdKB4BquDAJcwN
 qLVrMY10cjvB6626X6imsDWHZAEm+9aw0wFPuLwPk4KFtrKchJw8HsndIm51XO9MOW
 GwjDG7dauzWkQ==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4XmclZ4q6Sz6twH;
 Sun, 10 Nov 2024 16:58:02 +0100 (CET)
Message-ID: <e1746555-6ef6-4a7c-970e-007bdd5c91ab@HIDDEN>
Date: Sun, 10 Nov 2024 15:57:54 +0000
MIME-Version: 1.0
Subject: Re: bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot
 on foreign distribution
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
References: <7869edcc-d4a4-48a1-9a76-e0e67752d806@HIDDEN>
 <87a5e7wbmf.fsf@HIDDEN>
Content-Language: en-US
From: Dariqq <dariqq@HIDDEN>
In-Reply-To: <87a5e7wbmf.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73903
Cc: 73903 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Ludo,

On 10.11.24 12:51, Ludovic Courtès wrote:
> Hi,
> 
> Dariqq <dariqq@HIDDEN> skribis:
> 
>> When using guix home to manage shepherd services on a foreign
>> distribution the shepherd package is also added to the home-profile.
>>
>> This then makes the home profile provide 'halt', 'shutdown' and
>> 'reboot' (and their manpages) masking the system ones.
> 
> Oh, indeed.  I’m not sure how to address that though.  Ideas?
> 
Not sure if this is something that should be addressed by shepherd or 
the default shepherd package used for guix home.

Initially I had the idea to add a configure flag to shepherd to disable 
"building" and installing these 5 files (which is why I reported against 
shepherd). I threw something together that works but I am not really 
happy with it because imo such an option should disable *all*
  things that are not required when only using it for user level 
services and not just the entrypoints. That would be a lot more work though.

Another (simpler solution) would be to just solve the problem in guix by 
using a shepherd variant that deletes sbin and share/man/man8.


Wdyt?
> Ludo’.





Information forwarded to bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.

Message received at 73903 <at> debbugs.gnu.org:


Received: (at 73903) by debbugs.gnu.org; 10 Nov 2024 11:51:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 10 06:51:16 2024
Received: from localhost ([127.0.0.1]:56009 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tA6TM-00061M-0g
	for submit <at> debbugs.gnu.org; Sun, 10 Nov 2024 06:51:16 -0500
Received: from eggs.gnu.org ([209.51.188.92]:55292)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1tA6TK-000617-LB
 for 73903 <at> debbugs.gnu.org; Sun, 10 Nov 2024 06:51:15 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1tA6TD-0001JP-JG; Sun, 10 Nov 2024 06:51:08 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=7X16agCo+Mfh2H/1n1i4/Wqgno3GinGKQ5ylsSVmikg=; b=NuWW7nEmr9b0fi51dDJQ
 07rrx7ftMChP4ov6b+Fl1LBfSfKOa96FEZ3M+JqVzgAPJOY2ljsBB7tGeWJqo4FuNwmETr69CBVkA
 slzQMhuzzp2w1qsyuEZSHn6h0bOiPtIh9weDEwEqSup/EuyLfpQnulpBWE4bbSAb3mfcPLrTSnmFf
 6LPD2v57nq+NmmoBkqvu6NJ6D4n2W+/8L5Uellk7y4S+vP4N5t3ayv/KsnvNZeFVBAQ7btIIA7Uxa
 sbV+ijq5bnd1ccev7uvLy7BdF5ByYIXvQTIw2PBlWxVrlG9tC1zgtze1a+aS5T2e00K5M8zSSKQsW
 QTjySGZdAuJ8qQ==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Dariqq <dariqq@HIDDEN>
Subject: Re: bug#73903: [shepherd]: Guix Home's shepherd masks
 shutdown/reboot on foreign distribution
In-Reply-To: <7869edcc-d4a4-48a1-9a76-e0e67752d806@HIDDEN>
 (dariqq@HIDDEN's message of "Sun, 20 Oct 2024 10:12:08 +0000")
References: <7869edcc-d4a4-48a1-9a76-e0e67752d806@HIDDEN>
Date: Sun, 10 Nov 2024 12:51:04 +0100
Message-ID: <87a5e7wbmf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 73903
Cc: 73903 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Dariqq <dariqq@HIDDEN> skribis:

> When using guix home to manage shepherd services on a foreign
> distribution the shepherd package is also added to the home-profile.
>
> This then makes the home profile provide 'halt', 'shutdown' and
> 'reboot' (and their manpages) masking the system ones.

Oh, indeed.  I=E2=80=99m not sure how to address that though.  Ideas?

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.

Message received at 73903 <at> debbugs.gnu.org:


Received: (at 73903) by debbugs.gnu.org; 6 Nov 2024 13:52:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 08:52:28 2024
Received: from localhost ([127.0.0.1]:40130 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t8gSS-00009z-7r
	for submit <at> debbugs.gnu.org; Wed, 06 Nov 2024 08:52:28 -0500
Received: from mout.gmx.net ([212.227.15.15]:55693)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jakob.honal@HIDDEN>) id 1t8gSP-00009g-AX
 for 73903 <at> debbugs.gnu.org; Wed, 06 Nov 2024 08:52:26 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1730901139; x=1731505939; i=jakob.honal@HIDDEN;
 bh=WHHxFzIZ2Wap8zg03cglPXtuj3j6z5uCh1beq9Lrcc8=;
 h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Content-Type:
 Date:cc:content-transfer-encoding:content-type:date:from:
 message-id:mime-version:reply-to:subject:to;
 b=TMdF+sKgT/tSSOMONu+nRno6g5u6evel3r1RPEfsQBRlXJrknsnpqiuLnx0nWPMy
 WNDKK+Zs8ee45DvaXxYjSTTZrUIBb9kdES/od7k2VDOwu5gcxyDF9Jb/U7ALmh4Jd
 svAhyvVWJBhp2QblaEhzUCniruPWJv0hJpN4uDd1p7uCedrTh5iAjMbrbERLceHm/
 vQZWogeH1Pbns0D8ZUaW818/CqqRjw/Byq1DU2jvAwA1KyjULxc1kLLKY/DcmpsIK
 1R6/IwA6tiGQkUjPXZxkZw5uDx+Qf34U9PhNw8K6WDNeQw1syF6nTBTd5l/1zb7wx
 wcw11svgI4JY1LRpCA==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [62.216.206.216] ([62.216.206.216]) by msvc-mesg-gmx005 (via
 HTTP); Wed, 6 Nov 2024 14:52:19 +0100
MIME-Version: 1.0
Message-ID: <trinity-07a96b86-fa85-40d1-8f2c-046e162f762b-1730901139123@msvc-mesg-gmx005>
From: Jakob Honal <jakob.honal@HIDDEN>
To: 73903 <at> debbugs.gnu.org
Content-Type: text/html; charset=UTF-8
Date: Wed, 6 Nov 2024 14:52:19 +0100
X-UI-CLIENT-META-MAIL-DROP: W10=
X-Provags-ID: V03:K1:f+02mUbBm5Vnc44F9bwX9FTriNNvlWFhfyRWcFtN2BfvX7wNrF9+NtAjVX/nzzIPqKuCo
 qlu/B9Osy+ho9rtTp1Zb4lxgA/bu0MPETqdETFRAf6v4iY6Fz+oKf5c0LF9MmaEPlp0x+mcIuogY
 FNquvmyNiVpuvqcXtpza4bw1rq9mt29mX1mtoQffyaXIXWEaUTFQcYmiFywKHWdy38SjsQlAqIi9
 lg3fOBDDfpVqg+a7LhdQCvB/PZ9DTzd8xzCgRoUqO+u9J9U6Zk2Yr6VVanll2jJgczA7o+mt2iHm
 Ks=
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:mPOSiqQO9VY=;z17D4xDuE5tC1akm0gzP8QmGtN4
 fRpOq/k1TaoiSQzaO97d28Qaxa0KrflGr5e4++e/i+AYWa+IRGl+3XXPsY2TS35qEZdk99wd4
 60fA1prQiJQUcbUsrSohI58v27xiOONq13qabwzVFb+4GQd/kPJcLdgVItDP8Da9qFIY0CDOW
 W08Z8ON/8m1u+mxJ8UCZ/Dz+guDNbQkdWcBOsftS9VgwjxmehZdPkNI/e8Y58R0jjBcaZbEUh
 dlx0WPKqr2B6TZHWzIjCLMQeBqSwTkXBw+4oSQ1ManwmET9I44l9r+i2pGOXlWPx4380Ga9i0
 4L0cGxniWaqplf3efejp68SaEFLRfVZ3Jk2fpJBWUWQIMCN3Ci5gj6RmCO0oZn0weRlCKuDNf
 dnREab8solHbE9xi+uQVqs0iB2rlGB2riDlBtAUG6mGqclVUYgkt0df3RVX06iHwiNHkbHpwi
 kcKHkDF0eKJMi5kYaA5jV0gmKHfZuo8nLj3IczhPOtJ1pIg6gQ0kc6IB6MKLoHfcHLyizkT1C
 /htQxN5DnMjcrWOx+5HjyOils3pHJflnz2kJ7UMYLjz/BEcsGScJiyy1teFNn5KoTePQ3ln5w
 np2NB0wQcora1fKnHQMZCgJnJDeSZkDEwnWL9HcLtU69R+NT2MYsLiyU7O05OyrZaw6ZLN7E5
 0cfdCQFeoMpygKpo9//J+EiIeMJXA9Lfy6IzsJT1UQ==
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  |I can second this. 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.15.15 listed in sa-trusted.bondedsender.org]
 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
 query to Validity was blocked.  See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243
 for more information.
 [212.227.15.15 listed in bl.score.senderscore.com]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [212.227.15.15 listed in wl.mailspike.net]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [212.227.15.15 listed in list.dnswl.org]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (jakob.honal[at]gmx.de)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 HTML_MESSAGE           BODY: HTML included in message
 0.1 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
 0.6 HTML_MIME_NO_HTML_TAG  HTML-only message, but there is no HTML
 tag 1.8 MISSING_SUBJECT        Missing Subject: header
 0.2 NO_SUBJECT             Extra score for no subject
X-Debbugs-Envelope-To: 73903
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

<div style="font-family: 'verdana'; font-size: 12px; color: #000;"><span style="background-color: rgb(255, 255, 255);">|I can second this.</span></div>




Information forwarded to bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Oct 2024 10:12:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 20 06:12:45 2024
Received: from localhost ([127.0.0.1]:45949 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t2SvV-0006wK-Ce
	for submit <at> debbugs.gnu.org; Sun, 20 Oct 2024 06:12:45 -0400
Received: from lists.gnu.org ([209.51.188.17]:48042)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dariqq@HIDDEN>) id 1t2SvT-0006wD-Fs
 for submit <at> debbugs.gnu.org; Sun, 20 Oct 2024 06:12:44 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dariqq@HIDDEN>) id 1t2Sv4-0001Bz-1r
 for bug-guix@HIDDEN; Sun, 20 Oct 2024 06:12:18 -0400
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dariqq@HIDDEN>) id 1t2Sv2-0002Up-12
 for bug-guix@HIDDEN; Sun, 20 Oct 2024 06:12:17 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 532E0240101
 for <bug-guix@HIDDEN>; Sun, 20 Oct 2024 12:12:10 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1729419130; bh=34SA3qrw2I1hhnFD9RbQdTD9Pqm4oWr2CO2QG7v3l+k=;
 h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type:
 Content-Transfer-Encoding:From;
 b=baNJVuMXBbqGaB0GGtLjrG5VIunUM+/kWfh+z4933quJaJubpTXYdkNcqSXIayj90
 YyrwAWSdsrKAzJXhTp8eFiVVVBqj9FeI4OWIQL1jedDQvSTgS10EIq8MAWECZztNBW
 wNylWxFnIa6HRJnOVNOg4I2hQdmZl91bfyhoK5rph8ygs84BZ0q0H/KWn3OenkxxRL
 ZANouhfphhjU53xuyBuillK+805XK99b1rC2+edsxGPWqmuxKCN1oWFGsuiRgOc2ko
 rnI1JuxQJmrPiVZGXmEnStynjdCz5AtRWzKotYH5A30o682Ab9oKOPdP9nDT83+YGF
 B7aQ7Jjm4aOfw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4XWZ495ngFz9rxF
 for <bug-guix@HIDDEN>; Sun, 20 Oct 2024 12:12:09 +0200 (CEST)
Message-ID: <7869edcc-d4a4-48a1-9a76-e0e67752d806@HIDDEN>
Date: Sun, 20 Oct 2024 10:12:08 +0000
MIME-Version: 1.0
Content-Language: en-US
To: bug-guix@HIDDEN
From: Dariqq <dariqq@HIDDEN>
Subject: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign
 distribution
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=185.67.36.66; envelope-from=dariqq@HIDDEN;
 helo=mout02.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 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,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> 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 <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

When using guix home to manage shepherd services on a foreign 
distribution the shepherd package is also added to the home-profile.

This then makes the home profile provide 'halt', 'shutdown' and 'reboot' 
(and their manpages) masking the system ones.

Trying to run one of these then results in an error:
reboot: error: /var/run/shepherd/socket: No such file or directory

instead of e.g. rebooting the system.





Acknowledgement sent to Dariqq <dariqq@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#73903; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.