From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EIiqHLZQgGSfNAAASxT56A (envelope-from ) for ; Wed, 07 Jun 2023 11:41:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CKGzG7ZQgGSiQAEAG6o9tA (envelope-from ) for ; Wed, 07 Jun 2023 11:41:10 +0200 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 E24942A10E for ; Wed, 7 Jun 2023 11:41:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6pf5-00083j-Ra; Wed, 07 Jun 2023 05:41:03 -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 ) id 1q6pf4-000822-Dk for guix-patches@gnu.org; Wed, 07 Jun 2023 05:41:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6pf4-0006Ev-5G for guix-patches@gnu.org; Wed, 07 Jun 2023 05:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6pf3-0007D0-LW for guix-patches@gnu.org; Wed, 07 Jun 2023 05:41:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63943] The Shepherd on GNU/Hurd Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 07 Jun 2023 09:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63943 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63943@debbugs.gnu.org Cc: Josselin Poiret , Janneke Nieuwenhuizen Received: via spool by 63943-submit@debbugs.gnu.org id=B63943.168613083427667 (code B ref 63943); Wed, 07 Jun 2023 09:41:01 +0000 Received: (at 63943) by debbugs.gnu.org; 7 Jun 2023 09:40:34 +0000 Received: from localhost ([127.0.0.1]:53604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6peb-0007C9-U8 for submit@debbugs.gnu.org; Wed, 07 Jun 2023 05:40:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6peZ-0007Bv-6I for 63943@debbugs.gnu.org; Wed, 07 Jun 2023 05:40:32 -0400 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 ) id 1q6peT-00061h-KT; Wed, 07 Jun 2023 05:40:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=bt044jl5hZPhVq696vfFPGT9FU/rU7ra/ldHC5dKS6c=; b=hQoNx3d8tbiFRZ9ul6e0 oan/XJXoCcWPadsPHJMPelEUZE7ne1xSi45T6WOTolDWnsf+zQ58ivb2CqYxLCBFtR6dL8LcYKyh8 b8xnW1Siecu6JcXyxxyONP+MbLhrpJqMIZGCMf76ytWDJlSAwfboShKVR+x2GTz9H6WV9pK8damcD naai0wy3/I0ESTYHlaHkeiyqXSyZhfoUxrqjTktCMoy1Gy6j99W4OpC8BluyN9rcVKMaZHf6zTZq0 ya8YlNKuZ+l2zRyD/yM8SgoY7ohOY1PrsqMYA78NfP3aRl9FqSiGecjR/3e7dZCSZcSIXv0OTWiFl FSs3g5vOymvEdQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6peA-0003Up-Kt; Wed, 07 Jun 2023 05:40:17 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Wed, 07 Jun 2023 11:40:04 +0200 In-Reply-To: ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 7 Jun 2023 10:39:36 +0200") Message-ID: <87fs73626j.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) 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: 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686130870; 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=bt044jl5hZPhVq696vfFPGT9FU/rU7ra/ldHC5dKS6c=; b=WMLkrD/mJ10YL65BLT7My+wTcFYNhCUBK7nLKT1crtMHF/NclAUD6BmIXsXm7qY9diQjdn dcyo83mUVugXm+oPNY6CDmH3jb1nIYrHx55HRpIOjcTGhKmENYGFjzLOR+bjgiHY2yWLmG VwfCKqBvK1fBSZJe07lRZEZyzCeM+mEXgDPOak4ZYxXmJVhehSLpp37YC5BfC6r5WqGZO/ BfjbFkXwQM/3sj8vN29duq6gB9BcKgrlJNBUTI7yAKNAd4hM1IhoFSyhwRlkcY8+IGlimN v+Az2LTGNX6avLwRNjbR4OjR79QSyqRi74kYhs/i3OVo8SLEnZVHtc4/7az1GQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=hQoNx3d8; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686130870; a=rsa-sha256; cv=none; b=PsZ/sq7hwdXAC9jCR6LyoMtT/+nZNpLpnQfSWk6EYG8N34XKNryeUShiljYQEVOzBCZqZD pJ1/HOcXNmVN+NYM3oZcIjSKHoXgTAPywezb90lfq/YxDYUOzeGbOl8+WpYCQdi6rAu4iM Ek4feFtFVy7jexntI3AX4O/Q1u4nu0NVRhAm29iGEewC9KOeWB31DBXXwqkivXLFifg67T ggoUbBrlcoptevZamqVmRbqqnIwM07mUB9NXDC90mWlfdtGg9UUFEX2vsbwlx4oqA5VUkg b0XI6VRjBRn9ffx0Ezvp3IECHZSxP/iwNabA3owxoBQToZwa3HqltrWDal5qkg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=hQoNx3d8; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E24942A10E X-Spam-Score: -3.09 X-TUID: J0ExrwwaN2eM --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s skribis: > To me it=E2=80=99s important so we can upgrade the Shepherd in use on GNU= /Hurd > (it=E2=80=99s still stuck at 0.8 because so far Fibers lacked support for > non-Linux systems), which in turn means we can use the newer Shepherd > APIs in its config file. Unfortunately, while shepherd cross-builds > and runs on GNU/Hurd, I=E2=80=99m not confident it =E2=80=9Cworks=E2=80= =9D. I=E2=80=99ll write more > in a separate message. The patch I ended up not including in this series is use of current Shepherd on GNU/Hurd (attached). Problems that I see are: =E2=80=A2 =E2=80=98networking=E2=80=99 gets stuck in =E2=80=98starting=E2= =80=99 state. My guess is that it uses =E2=80=98system*=E2=80=99 (the replacement provided by shepherd) a= nd that one does not return because we never get SIGCHLD. =E2=80=A2 (@ (ice-9 threads) all-threads) says there are two threads. Th= at was already the case with 0.8, but it=E2=80=99s no good. Also, I haven=E2=80=99t tried to run the Shepherd=E2=80=99s test suite nati= vely on GNU/Hurd; I=E2=80=99m sure it=E2=80=99d uncover problems. Overall, I=E2=80=99m pessimistic about signal handling without =E2=80=98sig= nalfd=E2=80=99. We could try to get shepherd to kinda work without =E2=80=98signalfd=E2=80=99 = (we could even test that code path on GNU/Linux), but that=E2=80=99s going to be brit= tle as we can already see. What d=E2=80=99ya think, comrades? Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/gnu/system.scm b/gnu/system.scm index 354f58f55b..5c4c045e28 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -804,9 +804,7 @@ (define (hurd-default-essential-services os) %boot-service %hurd-startup-service %activation-service - (service shepherd-root-service-type - (shepherd-configuration - (shepherd shepherd-0.8))) ;no Fibers + (service shepherd-root-service-type) =20 (service user-processes-service-type) (account-service (append (operating-system-accounts os) diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm index 558d1ee9e3..0aa473fd42 100644 --- a/gnu/system/hurd.scm +++ b/gnu/system/hurd.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright =C2=A9 2020-2022 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2020-2023 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2020 Jan (janneke) Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. @@ -68,7 +68,7 @@ (define %base-packages/hurd ;; Note: the Shepherd comes before the Hurd, not just because its duty i= s to ;; shepherd the herd, but also because we want its 'halt' and 'reboot' ;; commands to take precedence. - (list shepherd-0.8 hurd bash coreutils file findutils grep sed + (list shepherd-0.10 hurd bash coreutils file findutils grep sed diffutils patch gawk tar gzip bzip2 xz lzip guile-3.0-latest guile-colorized guile-readline net-base inetutils less shadow sudo which --=-=-=--