From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qFVxLH/2HWI1oAAAgWs5BA (envelope-from ) for ; Tue, 01 Mar 2022 11:33:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mBFzKX/2HWLjvQAAauVa8A (envelope-from ) for ; Tue, 01 Mar 2022 11:33:35 +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 5D40D3D189 for ; Tue, 1 Mar 2022 11:33:35 +0100 (CET) Received: from localhost ([::1]:41834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOzoz-00009j-W0 for larch@yhetil.org; Tue, 01 Mar 2022 05:33:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOzXA-0006PP-7p for guix-patches@gnu.org; Tue, 01 Mar 2022 05:15:13 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOzX4-0005ar-OB for guix-patches@gnu.org; Tue, 01 Mar 2022 05:15:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOzX4-0003Qs-Fg for guix-patches@gnu.org; Tue, 01 Mar 2022 05:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54199] [PATCH] doc: Add 'Working on Shepherd' section. Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Mar 2022 10:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54199 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Attila Lendvai Cc: 54199@debbugs.gnu.org Received: via spool by 54199-submit@debbugs.gnu.org id=B54199.164612966413136 (code B ref 54199); Tue, 01 Mar 2022 10:15:02 +0000 Received: (at 54199) by debbugs.gnu.org; 1 Mar 2022 10:14:24 +0000 Received: from localhost ([127.0.0.1]:35541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOzWS-0003Po-Hg for submit@debbugs.gnu.org; Tue, 01 Mar 2022 05:14:24 -0500 Received: from pelzflorian.de ([5.45.111.108]:38654 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOzWQ-0003Pf-PM for 54199@debbugs.gnu.org; Tue, 01 Mar 2022 05:14:23 -0500 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 2B387360637; Tue, 1 Mar 2022 11:14:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1646129661; bh=gKfFRiTBj7DLH3EhtcQ2zEjQ17bZ+JCKyARYnMStYkw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=3s+8gyDLXCTbFExKQmDODHlLxvzV2r/LEmNfa4uO78N6AoOs2nNsKf1OnJVOZQ89Q 37LfExy/PjFRhzPY/invja+toCl/jw5GH7LwgYd1BbCRZUtEd228FKJdAMCbC42VUo G36sQvAKT8fl+2soE1SXJTVlDRGFR/i2zyDNXDY4= Date: Tue, 1 Mar 2022 11:14:14 +0100 From: "pelzflorian (Florian Pelz)" Message-ID: <20220301101414.pvf2wmnfbys3hw62@pelzflorian.localdomain> References: <20220228185115.28042-1-attila@lendvai.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220228185115.28042-1-attila@lendvai.name> 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646130815; 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: content-transfer-encoding:content-transfer-encoding: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=xF89/SnKtq1GZMKDAMFUKdo6/+FgRCJPskNo2UfwMwI=; b=mZjckqplw9jByW+oMjqWpOq1fhh17tHWL15d2wBiwS8h0Ig3JSJZJfVa67AWxmGqqNcZTa 8gTofnBqkq6uM+/DwvKiXLS3fQ74NbBXQe+ZgIdxKpyHCtOBZ9LfkkT9Di9KSQXFFh+gFj BEKuXb5y0wtyICYHHRESw8zM7h8PfIsk54iUsxJ6nYMXO3kL9QJ3Ixe95PFyxBzQeKWJ1F twgE5LiJYiNZCNPZdnFX59aTPaQDjzDjJZub3xhcCwquiudUH93Xb2qleL4Hu2SaLaEKbI wOoHWRqgMGt/JNjAmWik2lEE+P4mbLB9lRQg6FY4903VNm0y6zPsFCsI4ngLWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646130815; a=rsa-sha256; cv=none; b=q2qy5228nkiuT5BMS2M9mLwskKk2sObCcePmt73LQGglwDssf6o7pfRzjhNIQjh4Goppxm YCz+d6TbwS5pNMKannnZ2xoisJvNPYUfoTKXXxeymA0XfI2Emyay/dNZbshTcWW8WT/qvs Ma+y6F0oY7QGi9cEIbVndJRkFabjlO7/hfLHtTu506HRezhkJOLaVB6P2s2EsRtx5Mh6/q FfpXTkvUjesFeHYMvI6Sif40gqmio67rtWh4au09RjqD76IA8amv+SsIOSpRj4wGAnuKoP 7r4g5Wzyg62hchojh9CtU+9BJzadYonq/Bg8OxneQmT6PWnI6hemVZpvISq3JA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=3s+8gyDL; dmarc=none; 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-Spam-Score: 0.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=3s+8gyDL; dmarc=none; 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: 5D40D3D189 X-Spam-Score: 0.81 X-Migadu-Scanner: scn1.migadu.com X-TUID: KjqihupXu9xW Thank you Attila. On Mon, Feb 28, 2022 at 07:51:16PM +0100, Attila Lendvai wrote: > +@item @emph{The Shepherd API} > +The Scheme code of Shepherd, which is a dependency of certain packages > +and the Guix codebase itself. A typical example of this is the Scheme > +code implementing a Guix System service, e.g. the OpenSSH server service > +(see @code{openssh-shepherd-service}). The last line reads like a @ref clickable link. > +To modify and use a new Shepherd API, you can change the @code{source} > +and @code{version} field of the @code{shepherd} package in > +@file{gnu/packages/admin.scm} along these lines: > + > +@lisp > +(define-public shepherd ; do not change this > + (package > + (name "shepherd") > + (version "dev") > + (source (git-checkout > + (url "file:///my/path/shepherd/") > + (commit "[a commit hash]"))) > + ... > + )) > +@end lisp > + > +To avoid excessive recompilation times, we pick a specific commit in the > +latter, and only update it as needed. But the former will pick up any > +newly recorded commit when we issue a @command{guix system vm > +/path/to/my-test.scm}. Don’t you need to update the sha256 hash so Guix picks up that it needs to rebuild shepherd? Unless you change the version each time to a new value. I wonder if you can just graft, i.e. introduce a (replacement my-shepherd) field in the (define-public shepherd ; do not change this (package (name "shepherd") (replacement my-shepherd) … I have not tested and grafting may be unreliable. Regards, Florian