From patchwork Sun Feb 6 21:33:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Pierre-Henry_Fr=C3=B6hring?= X-Patchwork-Id: 37031 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8ECCD27BBEB; Sun, 6 Feb 2022 21:38:32 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4B36127BBEA for ; Sun, 6 Feb 2022 21:38:32 +0000 (GMT) Received: from localhost ([::1]:34524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGpEt-0007F5-GI for patchwork@mira.cbaines.net; Sun, 06 Feb 2022 16:38:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGpCU-0005Le-Mw for guix-patches@gnu.org; Sun, 06 Feb 2022 16:36:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46073) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGpCU-0005Pq-DW for guix-patches@gnu.org; Sun, 06 Feb 2022 16:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGpCU-00068j-4y for guix-patches@gnu.org; Sun, 06 Feb 2022 16:36:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53827] [PATCH] Add a TLDR entry to the cookbook for building Guix from Git. Resent-From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Feb 2022 21:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53827 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53827@debbugs.gnu.org Cc: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164418330523522 (code B ref -1); Sun, 06 Feb 2022 21:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Feb 2022 21:35:05 +0000 Received: from localhost ([127.0.0.1]:39970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGpBY-00067K-RJ for submit@debbugs.gnu.org; Sun, 06 Feb 2022 16:35:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:33260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGpBW-000674-BE for submit@debbugs.gnu.org; Sun, 06 Feb 2022 16:35:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGpBV-0004rO-R6 for guix-patches@gnu.org; Sun, 06 Feb 2022 16:35:01 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:42801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGpBS-000559-PT for guix-patches@gnu.org; Sun, 06 Feb 2022 16:35:01 -0500 Received: (Authenticated sender: contact@phfrohring.com) by mail.gandi.net (Postfix) with ESMTPSA id 1A9D860004; Sun, 6 Feb 2022 21:34:40 +0000 (UTC) From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Date: Sun, 6 Feb 2022 22:33:46 +0100 Message-Id: <20220206213344.3117861-1-contact@phfrohring.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Received-SPF: pass client-ip=217.70.183.195; envelope-from=contact@phfrohring.com; helo=relay3-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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: 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- doc/guix-cookbook.texi | 68 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) 2.34.0 diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi index d2ce525998..2d004d7a6b 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,73 @@ 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. + +@node Context +@section Context + +@itemize +@item +Guix is installed using binary installation. +@end itemize + +@node Source +@section Source + +@example +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 + +@example +guix environment guix --pure --ad-hoc fd +./bootstrap +guix_db_prefix=$(fd -p '.*/guix/db$' /) +guix_db_prefix=$@{guix_db_prefix%/guix/db@} +./configure --localstatedir="$guix_db_prefix" +exit +make authenticate +@end example + +@node Compile +@section Compile + +@example +guix environment guix --pure +make +make check +exit +@end example + +@node Test +@section Test + +@code{./pre-inst-env} let's you distinguish between this installation of +Guix and any other. + +@example +cd ~/src/guix +guix environment guix --pure +./pre-inst-env guix build hello +@end example + + @c ********************************************************************* @node Packaging @chapter Packaging --