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 +NhAL48lHWLraAAAgWs5BA (envelope-from ) for ; Mon, 28 Feb 2022 20:42:07 +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 GIKsLI8lHWJbZgEA9RJhRA (envelope-from ) for ; Mon, 28 Feb 2022 20:42:07 +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 5554C1CEB8 for ; Mon, 28 Feb 2022 20:42:06 +0100 (CET) Received: from localhost ([::1]:46188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOluH-0003VJ-A8 for larch@yhetil.org; Mon, 28 Feb 2022 14:42:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOlrK-0000Tt-PB for guix-patches@gnu.org; Mon, 28 Feb 2022 14:39:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40932) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOlrK-0007aY-GU for guix-patches@gnu.org; Mon, 28 Feb 2022 14:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOlrK-0003Nu-AQ for guix-patches@gnu.org; Mon, 28 Feb 2022 14:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54199] [PATCH] doc: Add 'Working on Shepherd' section. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 28 Feb 2022 19:39: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 , 54199@debbugs.gnu.org Received: via spool by 54199-submit@debbugs.gnu.org id=B54199.164607712112963 (code B ref 54199); Mon, 28 Feb 2022 19:39:02 +0000 Received: (at 54199) by debbugs.gnu.org; 28 Feb 2022 19:38:41 +0000 Received: from localhost ([127.0.0.1]:34825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOlqz-0003N1-G3 for submit@debbugs.gnu.org; Mon, 28 Feb 2022 14:38:41 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:58424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOlqw-0003Mr-KR for 54199@debbugs.gnu.org; Mon, 28 Feb 2022 14:38:40 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id 0jec2700J4UW6Th01jecnv; Mon, 28 Feb 2022 20:38:37 +0100 Message-ID: From: Maxime Devos Date: Mon, 28 Feb 2022 20:38:36 +0100 In-Reply-To: <20220228185115.28042-1-attila@lendvai.name> References: <20220228185115.28042-1-attila@lendvai.name> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-QZVTcuDbvtzSnAR7RShP" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1646077117; bh=mCprPGcggoowh9N3V5J3G5/cUos1YoLAc9zVjcZX/yE=; h=Subject:From:To:Date:In-Reply-To:References; b=LcoI3ldDuCNkhUU8rxDToL5hJlKgjKd1jxKz6+IQ7cBSRhAMjnA3youFRA39X3F2s PU4QtC98hS4pHJX9PHobL2bkhGhNr8wSWCJqJvO4mxdiJnGMZMOUhNzxXQyIuQbuRt WASr00PRuSbMFcIT3l9Vl4G9ESvUIvwoEGcX/Wp+l6P9l/OGwLTMaQ+yUWpagyGSDm zJ/N58tlY7mmwMYZiQggW+0nLM5iykxW65AZG2M0WxKXbTlloj5wR+Ojf4TqRHYW3E 5/kfN6QYHm3kSdG+08WSOxTorSga2imZSctPx7qn2Drjw2Q4NKm3Zmmc9Tw9UHJj/S pi0QRajgNb9LA== 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=1646077326; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=mCprPGcggoowh9N3V5J3G5/cUos1YoLAc9zVjcZX/yE=; b=qc3lSisriojqj4I1gSsukGV9WD0Bfnrb9rMrxYI5mrMeDDhG5BSv5DoofOZuTq3uUjyJOp EnXEDQW1erIuCwT4c3yy+6vWxtkWabuGJHkl9RHcsUvPqjmx+C572sebPMrtaBUjyVFNbK werkjLO2S4xSNqncT05zrYaLh5pxm+S3br5LSczMlVi+FqrQtsA5qSdIRFO5VVYT51vUU+ dosqzCyNDx41bsv2zAzKn1s39dIw4b6JcxlJBmHcpZX8MhOlX5T41UFiygfB3dEIAtq2ha gNFWxprkh7y91duzp+8TH6Q1VUh674GXDclbCrv2HkVbkLZfmeAvCr4NNhzgBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646077326; a=rsa-sha256; cv=none; b=L8+6uujIaMRiNXH+h5SR7sguLeyaCL5DmsBylFKEJpkipRa2u6KojkMudXRBb7kdGx0WsU mtjTt5nT+bLzz+zLIYFh9AcImzhz/nNni3Ri8RPCJLHX9ePd8im69UrxX3/+WrO+Rfu89H AhLNtys1I0x8Ar9irzNtblJMwtM3jJGhON538FmigCh0PLYc1v36D0FriD3d947m93Ruld WbqrGOOjw7/aHR2wLqvobZZV7evulVMMZpeoMVUXV1UxZsNoSMdUYIbbDPBFvLi4ZKLayz phwxoz7rJGb52EM5l5jwBmjaFDZBBCZdfJd2QA4psmn50JtUyAZ09dFmOWtSZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=LcoI3ldD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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: 3.61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=LcoI3ldD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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: 5554C1CEB8 X-Spam-Score: 3.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: tAU3rZbHtfEc --=-QZVTcuDbvtzSnAR7RShP Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attila Lendvai schreef op ma 28-02-2022 om 19:51 [+0100]: > +custom Shepherd package for an @code{operating-system} object.=C2=A0 To = get a > +customized Shepherd package, you can simply make a copy of it in > +@file{gnu/packages/admin.scm}, and change the @code{source} and > +@code{version} field along these lines: > + > +@lisp > +(define-public shepherd-dev-pid-1 > +=C2=A0 (package > +=C2=A0=C2=A0=C2=A0 (name "shepherd") > +=C2=A0=C2=A0=C2=A0 (version "dev-pid-1") > +=C2=A0=C2=A0=C2=A0 (source (git-checkout > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= (url "file:///my/path/shepherd/"))) > +=C2=A0=C2=A0=C2=A0 ... > +=C2=A0=C2=A0=C2=A0 )) There's no need to make a copy, we can use inheritance here to reduce duplication: (define my-shepherd (package (inherit shepherd) (source (git-checkout (url "file:///my/path/shepherd/")))) Also, we're missing autoconf & friends here? To help with shepherd hacking, I think it would be ok to add them to the standard 'shepherd' package with a nice comment. If not, a 'shepherd-next' package or the like could be defined, a variant of 'shepherd' for building from git? Also, the documentation is being inconsistent with versions here. In one place, you're using "dev-pid-1", and in another, "dev". These versions also seem a bit odd for not being version _numbers_, which doesn't mesh well with '17.4.3 Version Numbers'. Greetings, Maxime. --=-QZVTcuDbvtzSnAR7RShP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYh0kvBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hfNAQCaaBZjyT4VeIfz8cA/w5RXsTLO izsCCVwdbgea75GkVAEAkj6bO9m8Hn2y1ZF6Sp/1hggsj/3SJFxu1mCrV2D+cQ8= =KLzT -----END PGP SIGNATURE----- --=-QZVTcuDbvtzSnAR7RShP--