From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aM+pFIjSHWJ1VwEAgWs5BA (envelope-from ) for ; Tue, 01 Mar 2022 09:00:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4IRWEojSHWKJyAAA9RJhRA (envelope-from ) for ; Tue, 01 Mar 2022 09:00:08 +0100 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 0659E2B666 for ; Tue, 1 Mar 2022 09:00:07 +0100 (CET) Received: from localhost ([::1]:43122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOxQU-00046U-PB for larch@yhetil.org; Tue, 01 Mar 2022 03:00:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOxQI-00046M-28 for guix-devel@gnu.org; Tue, 01 Mar 2022 02:59:54 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]:27472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOxQE-0007XD-Fw for guix-devel@gnu.org; Tue, 01 Mar 2022 02:59:53 -0500 Date: Tue, 01 Mar 2022 07:59:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail3; t=1646121585; bh=7nfb62kJTbVPkDrKHYgd1qKzz/ttDB+ayYqjSUFuy/g=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc:Date:Subject: Reply-To:Feedback-ID:Message-ID; b=rkZZL0zwnl32hqqcokQOCudYY8QlReKD8qy8YMfLtQsXEKKTchKqMC9R+iMUENTFu fkfnXFXq4Bf24wExB5PJXh3sI9EJBGL6GdyA/w5CVt7sNkLQXuWLLmpdKklYQImaQw PpQKdv2yK1bPXU3zn1gAJp39cUVD2o2bWDY+8UcSyr2bHxn9vdizUDdoikEkc74IW2 5kDDB4tsIWf3j9TZMaf3cDT4zEoCQXrFNGPTYFkTPft3Z2R7QdpPJYv7zEbfXwEXWh a1vkls8zZby8ZqXD6UcJpwAw/KkZrgvn77EcruW4UTFeLEsprjHbwJK2AxSlILiCN0 EfW44Db53rHcQ== To: guix-devel From: Attila Lendvai Subject: workflow while hacking on Shepherd Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.17; envelope-from=attila@lendvai.name; helo=mail-4317.proton.ch 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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Attila Lendvai Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646121608; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7nfb62kJTbVPkDrKHYgd1qKzz/ttDB+ayYqjSUFuy/g=; b=qVixK88irDxRsr8joFpUgxq58Gzvmp+ZGtEWO2l8wizO6xfoHmLmFuNM3Irkk/+zNopsSD 917DybQck1BbkHEfX/V2R9VHxKPN4EI3dCBgJFUtzIh+umdscq5Y7PUE4HydE7MNHjFCGU Iw+UA2XB042Sy4D2NBjyhSYpduiTEOX5yJGJVHLaOF9LVIsfkrk3Cf+y9Ge2KYqQOAupbB JC9qpmwXtxQ12a1zCHKTZC3HrYDP209djATNuKNIErZV9P9nROB7Zq3Etcb7q/eu+Ynl3q I3p7r5u7l+GLJ1okzwzFq3TIEwTQ9CF6hsl5VflZmGv+8A+h41IiDpODoVSnfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646121608; a=rsa-sha256; cv=none; b=bEs6h44NbX7kwRfJy7bq5sCNgup0buW3KkK5ablC+oK8+M2GPTKv9T1KwJ7VkoKDNz4BrC 0xqa0GXSNREE3KVv9EROAnpMr6esaMUPU8oP6cKZOIwwir+1OVoUqVgJNG7FJCzrhxHHT7 XWbufGTQXEszgLnojuMRsSziWti6ICAdB/SVQuylnQo6YrdkFdoONAJwHUKjPL5URPEYiw sDjYsu7LYcRwX4mKJhVQJf6OARyWUFyLrhQ7GZEAi7g3Bz+VOyrev7xTV3u2KgOr+I8uzD 3BZgjKn3hzt81e6PZEZDvk61ChR4uSsmke4rojyKuW1fsnaSYPk9dGk0+cW3kQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=rkZZL0zw; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=rkZZL0zw; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0659E2B666 X-Spam-Score: -5.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: sbny5o/B0Zdk hi Guix, following up on the thread "setting open files limit for daemon processes",= and on Maxime's generous help, i have written up a first iteration of docu= mentation at: https://issues.guix.gnu.org/54199 i'll address the listed concerns, but until then i thought i'll propose an = idea here that may make the workflow even slicker. there seems to be 3 ways in which Shepherd is influencing the build results= of Guix: 1) the code that will be run as the init process in a Guix System 2) the code that the Guix codebase is compiled against 3) the Shepherd package, on which some packages depend (i assume for stuff = like the halt executable in its bin/ output?). from the above list, recompiling 3) takes by far the longest time (qemu, in= kscape, etc are down the stream). in the current setup, it's possible to change 1) without recompiling anythi= ng else (see my doc patch), but changing 2) without triggering 3) does not = seem to be possible. it's not obvious to me what is the exact mechanism through which the Shephe= rd codebase is made available when Guix is being compiled. judging from the= behavior, it seems to be through the shepherd package definition in gnu/pa= ckages/admin.scm, but i don't see where/how. blurry proposal: maybe we could introduce another shepherd package definition, that would be= used in 2), but not trigger a rebuild of 3)? i would be happy to experiment with this, but i'd appreciate some guidance = whether this all makes sense, and if so, then where is the point in the bui= ld process and/or codebase that defines which Shepherd is used in 2). -- =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CIt is impossible to begin to learn that which one thinks one alrea= dy knows.=E2=80=9D =09=E2=80=94 Epictetus (c. 55=E2=80=93135 AD)