From patchwork Thu Dec 16 06:46:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 35261 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 1784127BBEA; Thu, 16 Dec 2021 06:52:44 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable 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 D4C9227BBE9 for ; Thu, 16 Dec 2021 06:52:43 +0000 (GMT) Received: from localhost ([::1]:47144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxkd8-00027O-UA for patchwork@mira.cbaines.net; Thu, 16 Dec 2021 01:52:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxkZa-0006XG-Kc for guix-patches@gnu.org; Thu, 16 Dec 2021 01:49:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51005) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxkZZ-0005RC-Qn for guix-patches@gnu.org; Thu, 16 Dec 2021 01:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxkZZ-0007mc-JZ for guix-patches@gnu.org; Thu, 16 Dec 2021 01:49:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52505] [PATCH v3 1/2] doc: Explain the use of make clean-go when an ABI mismatch occurs. References: <20211215061623.GB25522@gac.attlocal.net> In-Reply-To: <20211215061623.GB25522@gac.attlocal.net> Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Dec 2021 06:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52505 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52505@debbugs.gnu.org Cc: Julien Lepiller , Ryan Prior , Guix Together , Blake Shaw Received: via spool by 52505-submit@debbugs.gnu.org id=B52505.163963733529903 (code B ref 52505); Thu, 16 Dec 2021 06:49:01 +0000 Received: (at 52505) by debbugs.gnu.org; 16 Dec 2021 06:48:55 +0000 Received: from localhost ([127.0.0.1]:34318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxkZQ-0007m8-UB for submit@debbugs.gnu.org; Thu, 16 Dec 2021 01:48:55 -0500 Received: from mx1.dismail.de ([78.46.223.134]:13590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxkZO-0007lm-5M for 52505@debbugs.gnu.org; Thu, 16 Dec 2021 01:48:51 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id e521721e; Thu, 16 Dec 2021 07:48:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=R3RUyvV24nEjySpp9yMGg8m8MxEV/hX+Bvj6hORKbvc=; b= XjxfGVeGpeVYmYCrvt/1FKRn4d0+RoCIa1WSO2Q4VlFXk+YozecvmLVfktWhAiKp b3E3aUo7QIcIYLjC/N72qEFa1d+9crpUHZqR1XHDQFFRNGdwinlPGm43o7/qWIwL PSsfpNI4icjeTaQTpRdZgASR18bPvwpBCy0wDeu0OZhsCikpOC3hoVGKfDRZPm9t lwqzFfoPWJSV9zGs95tPAsPI78A9cx49cJ2BlsgLW78q1tLk9A64dn21Vd8iat90 DYcVGNyvAKaZuCfRLtFrX7ul/QtZNP9Mtb/4vAwPv0V65jzHR6kWZXvMHvc18IIf Z46wYcsD9AKRO3aSwEGCPg== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id ab1268c4; Thu, 16 Dec 2021 07:48:42 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id a43faac6; Thu, 16 Dec 2021 07:48:42 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id e7749c13 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 16 Dec 2021 07:48:41 +0100 (CET) Date: Thu, 16 Dec 2021 01:46:49 -0500 Message-Id: <20211216064649.15033-1-jgart@dismail.de> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 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" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart X-getmail-retrieved-from-mailbox: Patches From: Guix Together Hi Guixers, Here is version 3 of our Documentation patchset. Ryan had pointed out some other "two spaces after sentence" issues offlist. all best, jgart * doc/contributing.texi (Building from Git): Adds section on using make clean-go. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Ryan Prior Co-authored-by: Blake Shaw --- doc/contributing.texi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/contributing.texi b/doc/contributing.texi index db1c4c6921..164e353884 100644 --- a/doc/contributing.texi +++ b/doc/contributing.texi @@ -157,6 +157,18 @@ You are advised to run @command{make authenticate} after every changes to the repository. @end quotation +After updating the repository, @command{make} might fail with an error +similar to the following example: + +@example +error: failed to load 'gnu/packages/dunst.scm': +ice-9/eval.scm:293:34: In procedure abi-check: #>: record ABI mismatch; recompilation needed +@end example + +This means that one of the record types that Guix defines (in this +example, the @code{origin} record) has changed, and all of guix needs +to be recompiled to take that change into account. To do so, run +@command{make clean-go} followed by @command{make}. @node Running Guix Before It Is Installed @section Running Guix Before It Is Installed From patchwork Thu Dec 16 06:46:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 35260 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 A74C427BBEA; Thu, 16 Dec 2021 06:50:31 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable 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 5A34527BBE9 for ; Thu, 16 Dec 2021 06:50:31 +0000 (GMT) Received: from localhost ([::1]:42302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxkb0-0007Fb-E7 for patchwork@mira.cbaines.net; Thu, 16 Dec 2021 01:50:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxkaY-0007D7-ML for guix-patches@gnu.org; Thu, 16 Dec 2021 01:50:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxkaY-0005cu-CZ for guix-patches@gnu.org; Thu, 16 Dec 2021 01:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxkaY-0007p4-9L for guix-patches@gnu.org; Thu, 16 Dec 2021 01:50:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52505] [PATCH v3 2/2] doc: Mention how to remedy "source file ... newer than compiled error". Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Dec 2021 06:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52505 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52505@debbugs.gnu.org Cc: Julien Lepiller , Ryan Prior , Guix Together , Blake Shaw Received: via spool by 52505-submit@debbugs.gnu.org id=B52505.163963734929964 (code B ref 52505); Thu, 16 Dec 2021 06:50:02 +0000 Received: (at 52505) by debbugs.gnu.org; 16 Dec 2021 06:49:09 +0000 Received: from localhost ([127.0.0.1]:34321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxkZg-0007nC-FE for submit@debbugs.gnu.org; Thu, 16 Dec 2021 01:49:08 -0500 Received: from mx1.dismail.de ([78.46.223.134]:13590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxkZQ-0007lm-1i for 52505@debbugs.gnu.org; Thu, 16 Dec 2021 01:49:07 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 41e7b56c; Thu, 16 Dec 2021 07:48:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=20190914; bh=vmK1cxKv7ElUcTiiowWkG tqCXeDZiri2OBR3gXP3iz8=; b=sQXIVCdLGLusup+tC7kr6NE3/+AX6LMANjB/2 UxKY9e1ouRq4iwT9c5B+FMJCo9cobOAJXqNHJteCF7x/ip1E2xmN6HwkWQ7S/WLd MJKfcrVWFqQ8ZsVAF+kMDc8dE5E1/pfXgs6Cr9m6ct+nAqQ/NvMEjB4tUyo9DJKY eWHHNsMIUqf28ND21GqnCfVo4ptGKSpOUi42LRZL7le7dd6Xw4eKBWlwnJhmQ7r1 TmUICL9PWKATn1gIBnLSfL7T/dqMhRwIhms48L0r2ImnpHHmqZayrlW4G0vJob3j /eQyVEnkRvIA44cwyaVQ6Smshjdgagn+xIBY5As7leJoPUU0Q== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 2af15453; Thu, 16 Dec 2021 07:48:44 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 425a7545; Thu, 16 Dec 2021 07:48:43 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 7176e206 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 16 Dec 2021 07:48:43 +0100 (CET) Date: Thu, 16 Dec 2021 01:46:50 -0500 Message-Id: <20211216064649.15033-2-jgart@dismail.de> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211216064649.15033-1-jgart@dismail.de> References: <20211216064649.15033-1-jgart@dismail.de> MIME-Version: 1.0 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" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart X-getmail-retrieved-from-mailbox: Patches From: Guix Together * doc/contributing.texi (Running Guix Before It Is Installed): Mention how to remedy "source file ... newer than compiled" error by running `make -j`. Co-authored-by: jgart Co-authored-by: Julien Lepiller Co-authored-by: Ryan Prior Co-authored-by: Blake Shaw --- doc/contributing.texi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/contributing.texi b/doc/contributing.texi index 164e353884..f3182b1564 100644 --- a/doc/contributing.texi +++ b/doc/contributing.texi @@ -243,6 +243,24 @@ local source tree; it simply updates the @file{~/.config/guix/current} symlink (@pxref{Invoking guix pull}). Run @command{git pull} instead if you want to upgrade your local source tree. +Sometimes, especially if you have recently updated your repository, +running @command{./pre-inst-env} will print a message similar to the +following example: + +@example +;;; note: source file /home/user/projects/guix/guix/progress.scm +;;; newer than compiled /home/user/projects/guix/guix/progress.go +@end example + +This is only a note and you can safely ignore it. You can get rid of +the message by running @command{make -j4}. Until you do, Guile will run +slightly slower because it will interpret the code instead of using +prepared Guile object (@file{.go}) files. + +You can run @command{make} automatically as you work using +@command{watchexec} from the @code{watchexec} package. For example, +to build again each time you update a package file, you can run +@samp{watchexec -w gnu/packages make -j4}. @node The Perfect Setup @section The Perfect Setup