From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 23 11:38:50 2021 Received: (at submit) by debbugs.gnu.org; 23 Oct 2021 15:38:50 +0000 Received: from localhost ([127.0.0.1]:36934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meJ6g-0007bP-HB for submit@debbugs.gnu.org; Sat, 23 Oct 2021 11:38:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:56050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meJ6d-0007bG-3E for submit@debbugs.gnu.org; Sat, 23 Oct 2021 11:38:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meJ6c-0003QK-HE for guix-patches@gnu.org; Sat, 23 Oct 2021 11:38:46 -0400 Received: from lepiller.eu ([89.234.186.109]:34362) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meJ6Z-0007Oh-Fd for guix-patches@gnu.org; Sat, 23 Oct 2021 11:38:46 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 8baa090a for ; Sat, 23 Oct 2021 15:38:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type; s=dkim; bh=4b1 lK/YbsNqJIobw+k2zV46gJO1t21O2G5JOuOQnZeI=; b=Yr2uZAcp5hRJqJusz8a L/QJFdCP+LKPf9CMx/BZOG3gCRCn0vAW339AQ3596crB7wBOy1hQ0gJGotWOL6h9 P5DoZ2cehMI4e15ksHVENCi2oTrm3yAgjySnsPZyCixlcjtnWJfW5zdADPLRdG5x QGrR4WIqOnBxq/ESgUpIqrDU2kJ7Qi3qPS6fM8Cxzsks8ZRIQHyKbkxqif2AIHyj xNSXccdhRKpun4awFz2XH31tooWXvD8rFgP/kryDGE9Ee7WqmUtCw2X3hl0p/xkp +uNLlhKnSTbj7uDR3ubLHbDpEIlssEvjHS7IsMc67xOqYVoi8K6rbz71xEsa3ACv Keg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 94acfb57 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sat, 23 Oct 2021 15:38:36 +0000 (UTC) Date: Sat, 23 Oct 2021 17:38:30 +0200 From: Julien Lepiller To: guix-patches@gnu.org Subject: [PATCH website] website: Fix build. Message-ID: <20211023173830.6151a138@tachikoma.lepiller.eu> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/qubhJAwVIkLhLICdxDgBnRL" Received-SPF: pass client-ip=89.234.186.109; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --MP_/qubhJAwVIkLhLICdxDgBnRL Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Guix! I just noticed an issue building the website: with a recent change, the code would check explicitely for GUIX_WEB_SITE_LOCAL in the environment, but .guix.scm doesn't set it, so it fails with: ;;; (repl-version (repl-version 0 1 1)) Running 'haunt build' for lingua de_DE... Backtrace: In haunt/ui.scm: 125:6 19 (run-haunt-command _ . _) In haunt/ui/build.scm: 60:4 18 (haunt-build . _) In haunt/site.scm: 130:14 17 (build-site _) In haunt/utils.scm: 64:11 16 (flat-map _ . _) In srfi/srfi-1.scm: 586:29 15 (map1 _) 586:29 14 (map1 _) 586:29 13 (map1 _) 586:29 12 (map1 _) 586:17 11 (map1 (#= =E2=80=A6)) In unknown file: 10 (_ # =E2=80=A6) In ice-9/eval.scm: 155:9 9 (_ _) 155:9 8 (_ _) 173:39 7 (_ #(#(#)= =E2=80=A6)) 293:34 6 (_ #(#(#(#))= =E2=80=A6)) 159:9 5 (_ #(#(#(#))= =E2=80=A6)) 159:9 4 (_ _) 196:43 3 (_ _) In unknown file: 2 (force #) In ice-9/eval.scm: 245:16 1 (_ #(#(#(#))= =E2=80=A6)) In unknown file: 0 (string=3D? "yes" #f) ERROR: In procedure string=3D?: In procedure string=3D: Wrong type argument in position 2 (expecting string): #f building pages in '/tmp/gnu.org/software/guix'... Backtrace: 3 (primitive-load "/gnu/store/8amiibdjbp3chrj8cnbg6v1162g?") In ice-9/boot-9.scm: 260:13 2 (for-each # ?) In ice-9/eval.scm: 619:8 1 (_ #(#(#) "de_DE")) In guix/build/utils.scm: 654:6 0 (invoke _ . _) guix/build/utils.scm:654:6: In procedure invoke: ERROR: 1. &invoke-error: program: "/gnu/store/2p1zk377cvxs1dz0iasj2l5wp2jlpcx2-haunt-0.2.5/bin/haunt" arguments: ("build") exit-status: 1 term-signal: #f stop-signal: #f The attached patch fixes the issue. --MP_/qubhJAwVIkLhLICdxDgBnRL Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-website-Fix-build.patch From 6be425e7e917f93ae5a0cb7bbb047d0c4c1f4c78 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 23 Oct 2021 17:30:59 +0200 Subject: [PATCH] website: Fix build. * website/.guix.scm: Set GUIX_WEB_SITE_LOCAL explicitely. --- website/.guix.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/website/.guix.scm b/website/.guix.scm index f656d47..a7a6d36 100644 --- a/website/.guix.scm +++ b/website/.guix.scm @@ -111,6 +111,7 @@ (setvbuf (current-output-port) 'line) (setvbuf (current-error-port) 'line) + (setenv "GUIX_WEB_SITE_LOCAL" "no") (copy-recursively #$source ".") ;; Set 'GUILE_LOAD_PATH' so that Haunt find the Guix modules and -- 2.33.0 --MP_/qubhJAwVIkLhLICdxDgBnRL--