From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YDt9MnPEbGAOZgAAgWs5BA (envelope-from ) for ; Tue, 06 Apr 2021 22:28:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cI9bLHPEbGCDKQAA1q6Kng (envelope-from ) for ; Tue, 06 Apr 2021 20:28:35 +0000 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 2EE6C2FA17 for ; Tue, 6 Apr 2021 22:28:35 +0200 (CEST) Received: from localhost ([::1]:41464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTsJO-0002pf-Bb for larch@yhetil.org; Tue, 06 Apr 2021 16:28:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTsCH-0000Q6-2p for guix-devel@gnu.org; Tue, 06 Apr 2021 16:21:13 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:49266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTsCB-0007PZ-Qi for guix-devel@gnu.org; Tue, 06 Apr 2021 16:21:12 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 9ec7f589; Tue, 6 Apr 2021 20:21:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type; s=dkim; bh=42HPzU/t/aAivTtMnwaPMdiNxW9dwLOg/7vX3w 3rig8=; b=mmioeXrvJo8DrFswbWW0GelYSVsf/jYCh/XN8YzUfCHXuTYVYHvhu6 eS18w8bXoGcHNz9r4CG9FWPMCVf+LOoLtviDpubodv5Ijrt8HLKDw81wxsBEL11k Zrk+zC34ss0HbmMD8OcgLjv7DV36mNbMrsJMlh2A9YfiTm4WJU/sPnUO8L0QwhIJ d5QHmuoDmqoHwlDv5yIIOcZOwRIlb8fUstC6QmQ/5Xgse/zPG/TKPkQNN6OFRpE7 cz1+qEgrV+8++jxtxyd1xiiOs19Xj+FPAzzJHsK0tJHDowHnDuKX80JSDAgCoRgr i1zOQdK+S+b55xS9CFyYOpxoKE/twd2A== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 4eccaa45 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 6 Apr 2021 20:21:02 +0000 (UTC) Date: Tue, 6 Apr 2021 22:20:48 +0200 From: Julien Lepiller To: Leo Famulari Subject: Re: website: Building fails because of missing locales Message-ID: <20210406222048.6fc75759@tachikoma.lepiller.eu> In-Reply-To: References: X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/mLrYunudpo+M.5V4UYZQ6rD" Received-SPF: pass client-ip=2a00:5884:8208::1; 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-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617740915; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=CinKWWclj7xhbaUSvuI09dZWOKin7i2o1lLEK66GEK0=; b=rC9viH8bE7wiQpedtH/83GDwKTwHUiKNatsN8Lr6b7oetc+pY/7oZ4QoRx1+Ne3WsZkbGO oiZj2TzEnQLZ+d7l9vVgrbJIozYWmsIpa5OAKlrEZHFywgSsQv6rfMyRAP8zPDV4Oz4d5B SFlqas/FbZYvMKj3SgShbgrBpQQFrpWhxjXXfj5a9htwZkWRoZBegs7tVkHg8biiOPSbv3 sdg7GVFwhACXhTHsaEbHPOAFaWXCNydY0uQaHSZ05U9uXLa9/DtUuFE/uMUfIgjFOmisDZ 3DVmzAmfZQvvqV5rOC8794i2wxrKeL0xZMOcI1ofQLDXIljpU2emhLdKlaqa2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617740915; a=rsa-sha256; cv=none; b=lkNLqtozVBjFt37WNSg3Ht9+ur5sc4LpujlD5ywcoKqelsim7WWT8SNa7oH3dghQ67r+fb pXMTxlynHQmFzsyAinx66/Iqse1cr6XpoVpKu+HLnKhLRiLM1JFqvx3hF3U6KwhG1stsx9 n6aSAOKZNbf/7/VwiQsX21i2QD+MyY8HcMMOtmsS4JRzWoS5K3WO4dmsi97KGyd0EsbBm8 /X+EIOw/8qn+DcoWCnQDVPNM5x0cXuV+/288b3bQ7ohJ+V+M0kZAXlV+VidZ22F12gvXKY O7PUlUpm6jy46xTNhOCqZ27i2rVJvRsLokLe3/1NUsoiWDSb0Bj3mViHH/IEHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=mmioeXrv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=mmioeXrv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 2EE6C2FA17 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: pny97OifHiC4 --MP_/mLrYunudpo+M.5V4UYZQ6rD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le Tue, 6 Apr 2021 14:11:03 -0400, Leo Famulari a =C3=A9crit : > On Tue, Apr 06, 2021 at 03:59:20PM +0000, Luis Felipe wrote: > > Hello, > >=20 > > I updated my local copy of guix-artwork repository today and now > > running "haunt build" fails with this message: > >=20 > > =E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98= =85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85= =E2=98=85=E2=98=85=E2=98=85=E2=98=85 > > Backtrace: > > In ice-9/threads.scm: > > 390:8 19 (_ _) > > In ice-9/boot-9.scm: > > 3223:13 18 (_) > > In ice-9/threads.scm: > > 390:8 17 (_ _) > > In ice-9/boot-9.scm: > > 3507:20 16 (_) > > 2806:4 15 (save-module-excursion _) > > 3527:26 14 (_) > > In unknown file: > > 13 (primitive-load-path "apps/base/data" # > 7fd2e=E2=80=A6>) In ice-9/eval.scm: > > 626:19 12 (_ #) > > 173:55 11 (_ #) > > 174:20 10 (_ #) > > 177:32 9 (lp (# > > =E2=80=A6)) 159:9 8 (_ #(# (G= _ =E2=80=A6) > > =E2=80=A6)) 159:9 7 (_ #(# (G= _ =E2=80=A6) > > =E2=80=A6)) 159:9 6 (_ #(# (G= _ =E2=80=A6) > > =E2=80=A6)) 163:9 5 (_ #(# (G= _ =E2=80=A6) > > =E2=80=A6)) In srfi/srfi-1.scm: > > 586:29 4 (map1 ("de_DE" "en_US" "eo" "es_ES" "fr_FR" "ko_KR" # > > #)) 586:29 3 (map1 ("en_US" "eo" "es_ES" "fr_FR" "ko_KR" "ru_RU" > > "=E2=80=A6")) 586:17 2 (map1 ("eo" "es_ES" "fr_FR" "ko_KR" "ru_RU" > > "zh_CN")) In ice-9/eval.scm: > > 619:8 1 (_ #(#(# # =E2=80= =A6) > > =E2=80=A6)) In unknown file: > > 0 (setlocale 6 "eo.utf8") > >=20 > > ERROR: In procedure setlocale: > > In procedure setlocale: Argumento inv=C3=A1lido > > =E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98= =85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85=E2=98=85= =E2=98=85=E2=98=85=E2=98=85=E2=98=85 =20 >=20 > This happens for me too. >=20 Attached is a patch to the manifest.scm that should fix the issue: it ensures that you enter an environment where the locales corresponding to po/LINGUAS are available. Can you check if it fixes your issues? Thanks! --MP_/mLrYunudpo+M.5V4UYZQ6rD Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-website-Add-locales-in-manifest.patch >From 432145b027b36cc0eedf28d89664a6646db9ebc6 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Tue, 6 Apr 2021 22:16:43 +0200 Subject: [PATCH] website: Add locales in manifest. * website/manifest.scm: Add locale definition for all our translations. --- website/manifest.scm | 53 +++++++++++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/website/manifest.scm b/website/manifest.scm index eda382a..6248c87 100644 --- a/website/manifest.scm +++ b/website/manifest.scm @@ -1,6 +1,8 @@ (use-modules (guix packages) ((gnu packages package-management) #:select (guix)) ((gnu packages guile-xyz) #:select (haunt)) + (gnu system locale) + (ice-9 rdelim) (srfi srfi-1)) (define the-good-guile @@ -14,17 +16,42 @@ `(("guile" ,the-good-guile) ,@(alist-delete "guile" (package-inputs haunt)))))) -(packages->manifest - (append - ;; Guile needs to be compatible - (list - guix - the-good-guile - haunt-the-ghost) +(define locales + (locale-directory + (call-with-input-file "po/LINGUAS" + (lambda (port) + (let loop ((line (read-line port)) + (locales '())) + (if (eof-object? line) + locales + (if (equal? (string-ref line 0) #\#) + (loop (read-line port) locales) + (loop (read-line port) + (cons + (locale-definition + (name (string-append line ".utf8")) + (source line)) + locales))))))) + #:libcs + (list glibc))) - ;; Other packages - (map specification->package - (list - "glibc-locales" - "git" - "guile-syntax-highlight")))) +(manifest + (cons + (manifest-entry + (name "locales") + (version "0") + (item locales)) + (manifest-entries + (packages->manifest + (append + ;; Guile needs to be compatible + (list + guix + the-good-guile + haunt-the-ghost) + + ;; Other packages + (map specification->package + (list + "git" + "guile-syntax-highlight"))))))) -- 2.31.0 --MP_/mLrYunudpo+M.5V4UYZQ6rD--