From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 OIssJBVVAGJdPgEAgWs5BA (envelope-from ) for ; Mon, 07 Feb 2022 00:09:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sMhvIRVVAGIVlgAA9RJhRA (envelope-from ) for ; Mon, 07 Feb 2022 00:09:09 +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 2BB773A18C for ; Mon, 7 Feb 2022 00:09:09 +0100 (CET) Received: from localhost ([::1]:38896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGqea-0004SR-Bt for larch@yhetil.org; Sun, 06 Feb 2022 18:09:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGqeV-0004S3-7h for guix-patches@gnu.org; Sun, 06 Feb 2022 18:09:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46299) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGqeU-0001mU-V8 for guix-patches@gnu.org; Sun, 06 Feb 2022 18:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGqeT-0002Ur-RL for guix-patches@gnu.org; Sun, 06 Feb 2022 18:09:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53827] [PATCH] Add a TLDR entry for building Guix from Git. References: <20220206213344.3117861-1-contact@phfrohring.com> In-Reply-To: <20220206213344.3117861-1-contact@phfrohring.com> Resent-From: Pierre-Henry =?UTF-8?Q?Fr=C3=B6hring?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Feb 2022 23:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53827 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53827@debbugs.gnu.org Cc: Pierre-Henry =?UTF-8?Q?Fr=C3=B6hring?= Received: via spool by 53827-submit@debbugs.gnu.org id=B53827.16441888949533 (code B ref 53827); Sun, 06 Feb 2022 23:09:01 +0000 Received: (at 53827) by debbugs.gnu.org; 6 Feb 2022 23:08:14 +0000 Received: from localhost ([127.0.0.1]:40195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGqdi-0002Tg-30 for submit@debbugs.gnu.org; Sun, 06 Feb 2022 18:08:14 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:50751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGqdR-0002Sc-V2 for 53827@debbugs.gnu.org; Sun, 06 Feb 2022 18:08:12 -0500 Received: (Authenticated sender: contact@phfrohring.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 4D109200004; Sun, 6 Feb 2022 23:07:51 +0000 (UTC) From: Pierre-Henry =?UTF-8?Q?Fr=C3=B6hring?= Date: Mon, 7 Feb 2022 00:03:23 +0100 Message-Id: <20220206230321.3142016-1-contact@phfrohring.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1644188949; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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; bh=TPOdaVcrK+Go+kVh8ihtOcc4dxPwpopRBw981fF1oUQ=; b=DcHhdDMAr5Y0dVz9cziSCnuWyGNTvczMAL7gaSvZhoe9mHPal9P+DwmSLu6yPN60IBopZ1 XrQpdhVy2TFAknE3TaO/k2p0ZRcinNg1SNgPjM4VZ2yPTb0RujZbTynqzSsglzkqTRpD4l pCJWR9ws/LfujkxH2yFE/ZIzvkWqB5m9mIsS1lYY90bTkF4zWqc08c+kSbE9VFPSSbq+V4 saf8gfk79QR2HJLn5lREHxMWN5Sg/TlxWw1XfSOSxyi3xpehAtb34qWo02+jSq4+wSiz6z 57XV+MBJgbQzaPOrRBjO77+ynf6ooL8b2+W81ojQSoUuXSRP9zUhpB/1szahNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644188949; a=rsa-sha256; cv=none; b=dA0iAQAGscdWNMbYKb9Kio03FSxU6YAtj/xbsa1hKLSXwOww4lsgdxfZUxyrp23ZKZ5wdB hRnuVBcvUUZA933G3OIHrALl85YEYrjg7CazBVeO8on8Z3uRBA/vBh4Ab9HO8ZoI/35NaR hS3Fsk07kX+M9OBGdvTweLOVFisBVtdUQ9EmtY9TpvDX5hnwHw8SzlPtqgZeJRAaDkVS4+ Cy+KwrGJv3E6BD1nwwvg9yA08tYNJx/Xqt+48+kFzl7cpwvTHDXnTsGkv1dtrniRcwuzp9 G+4dYtE35LNTuQdnquLIRifdAB4RkHsjyANSFgx+iiaGLWRiC6w/wNT+lLm81w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -1.73 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 2BB773A18C X-Spam-Score: -1.73 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1xAUTUPUrh9k Add a TLDR version of the `Building from Git' section of the Guix reference manual. --- doc/guix-cookbook.texi | 77 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi index d2ce525998..001c22f648 100644 --- a/doc/guix-cookbook.texi +++ b/doc/guix-cookbook.texi @@ -66,6 +66,7 @@ Weblate} (@pxref{Translating Guix,,, guix, GNU Guix reference manual}). @menu * Scheme tutorials:: Meet your new favorite language! +* Building from Git:: Hack Guix itself * Packaging:: Packaging tutorials * System Configuration:: Customizing the GNU System * Advanced package management:: Power to the users! @@ -301,7 +302,81 @@ You'll find more books, tutorials and other resources at @url{https://schemers.org/}. +@c ********************************************************************* +@node Building from Git +@chapter Building from Git + +Build Guix from Git and start hacking. TLDR version of: +@pxref{Building from Git,,, guix, GNU Guix reference manual} + +@node Context +@section Context + +@itemize +@item +Guix is installed using binary installation. +@item +Git is installed +@end itemize + +@node Source +@section Source + +@example +mkdir ~/src; cd ~/src +git clone https://git.savannah.gnu.org/git/guix.git +@end example + +@node Authentication +@section Authentication + +@example +git fetch origin keyring:keyring +guix git authenticate 9edb3f66fd807b096b48283debdcddccfea34bad \ + "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA" +@end example + +@node Development environment +@section Development environment + +The @code{localstatedir} value is the prefix of @code{/guix/db}. For +example, if: + +@example +$ find / -type d -path "*/guix/db" 2>/dev/null +/var/guix/db +@end example + +then the value of @code{localstatedir} is @code{/var}. + +@example +guix shell --pure -D guix +./bootstrap +./configure --localstatedir=/var +@end example + +@node Compile +@section Compile + +@example +make +make check +exit +@end example + +@node Test +@section Test + +@code{./pre-inst-env} lets you distinguish between this installation of +Guix and any other. + +@example +cd ~/src/guix +guix shell --pure -D guix +./pre-inst-env guix build hello +@end example + + @c ********************************************************************* @node Packaging @chapter Packaging -- 2.34.0