From patchwork Wed Dec 15 22:34:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 35246 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 6724D27BBEA; Wed, 15 Dec 2021 22:37:16 +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 26D7927BBE9 for ; Wed, 15 Dec 2021 22:37:16 +0000 (GMT) Received: from localhost ([::1]:38836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxctf-000454-Bg for patchwork@mira.cbaines.net; Wed, 15 Dec 2021 17:37:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxctS-0003tw-Vr for guix-patches@gnu.org; Wed, 15 Dec 2021 17:37:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxctS-000789-NJ for guix-patches@gnu.org; Wed, 15 Dec 2021 17:37:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxctS-0001no-Jv for guix-patches@gnu.org; Wed, 15 Dec 2021 17:37:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52505] [PATCH v2 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: Wed, 15 Dec 2021 22:37: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.16396077966883 (code B ref 52505); Wed, 15 Dec 2021 22:37:02 +0000 Received: (at 52505) by debbugs.gnu.org; 15 Dec 2021 22:36:36 +0000 Received: from localhost ([127.0.0.1]:33934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxct2-0001mx-Ex for submit@debbugs.gnu.org; Wed, 15 Dec 2021 17:36:36 -0500 Received: from mx1.dismail.de ([78.46.223.134]:27769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxcsz-0001mR-NC for 52505@debbugs.gnu.org; Wed, 15 Dec 2021 17:36:34 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 1396a5b1; Wed, 15 Dec 2021 23:36:27 +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=Xn93w9QvtT69/Rg3PPSxQ CaMYiwWtBxTXNXp7M/JpDc=; b=JRMQZHNdcG3m0ZqaQkQk9niuny8inNokKEpO+ 2ashcOFY2qgcOjbuezFVpxCyc5ZNIDtwMVwRK9PMXHep8HL2s6UhULYWp8wG2k6I ZydmDAk7JlK8koUEB1BDJuNwaDdkBzbitUV3MzwLwwynJHq8zDkHkAB8ACTmBIPy Fprz+DYXcgdCzZrv4wJc4hhgEFHzhJm+dvaxxkPrZTLYkA/2sDWTix0YjBfv6hHu 64IvTuFkmyD+P5juSfvePM5yg/2ZpdWOTrRmY4NctN0D0h39nVr1B8B56d7dIQQt gNmJwhFsONqDHlgCqSIQwEw4EnbDNZWp+P5y2jicR2Hyo7/xg== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 509e6587; Wed, 15 Dec 2021 23:36:27 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 0278acd1; Wed, 15 Dec 2021 23:36:26 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 768d14fe (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 15 Dec 2021 23:36:24 +0100 (CET) Date: Wed, 15 Dec 2021 17:34:56 -0500 Message-Id: <20211215223455.4990-2-jgart@dismail.de> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211215223455.4990-1-jgart@dismail.de> References: <20211215223455.4990-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..a9bb310dab 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