From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id r7JpE93sbWAkegEAgWs5BA (envelope-from ) for ; Wed, 07 Apr 2021 19:33:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id AIsJDN3sbWAbYwAAB5/wlQ (envelope-from ) for ; Wed, 07 Apr 2021 17:33:17 +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 64C3E19E9C for ; Wed, 7 Apr 2021 19:33:16 +0200 (CEST) Received: from localhost ([::1]:41530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUC3H-0002xh-Fy for larch@yhetil.org; Wed, 07 Apr 2021 13:33:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUBtA-0006hl-SO for guix-devel@gnu.org; Wed, 07 Apr 2021 13:22:49 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:54384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUBt6-0000Km-Iu for guix-devel@gnu.org; Wed, 07 Apr 2021 13:22:47 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id cd0cef81; Wed, 7 Apr 2021 17:22:38 +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=MTS6y4GEP5hCBduJWHMBjfoFhsCF+WD0QnchjB chmDE=; b=KqxJH25PVTXLVv6N0aJVSxbK9EvaHIFzv1VDQ5Yzyv7IvqYGo+JsS9 PZ+DacYUZ3LoDnBkBhTDwzbTMyPN7dXH1ku3uXJMlqG0XWxGTPNzV1jpWes4vSLs r6zCrPvKRLP4ZPzdUSwz7wGfOk8fX6jigHTKRbgKTdHrss4+3EaBFrjPjzWzO6IW mc5r5FxrIteiN8xeRCbr978GTgfbzEx1HufJy0dnnF9i5ej4gtqJ7tPLgAy9FnTk jd13Y82kbL9KlTrwyEdZsAzTc7x0BWuBgKUqSGE7QJmpDGq4nMAHjjZ6IHJYWteV FFbwsU1UqTsohMp3k2fSkGMEXcKlTsNg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id c6d54e85 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 7 Apr 2021 17:22:38 +0000 (UTC) Date: Wed, 7 Apr 2021 19:22:32 +0200 From: Julien Lepiller To: Luis Felipe Subject: Re: website: Building fails because of missing locales Message-ID: <20210407192232.6cecaa03@tachikoma.lepiller.eu> In-Reply-To: <741C09DA-7BA1-46AC-BCAA-B9839D146C68@lepiller.eu> References: <20210406222048.6fc75759@tachikoma.lepiller.eu> <2MN5GbmpG28KPMsauB1i-EuLY9-ULobBZwrqtn7sWUTAgxXFdkWIN5n-NIZLx0d3QpuaYJkPRUCE1eE40a6DGq-AhGrAbN21ZHASR0bBhmQ=@protonmail.com> <741C09DA-7BA1-46AC-BCAA-B9839D146C68@lepiller.eu> 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_/KKehfwJg2GPQG7Tj0HUG4O=" 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=1617816797; 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=H49OmOQCKMNbtV+pyJdkVaKjQ49ztXQ61OPIClU4U6w=; b=AX90JD/BBLTLUT3pNhirEFemVyJgN7rinCk2zQwhLZSWls1qOhGpwwIPebm0HUsMTKXBsF IbUeUBUknak2pT2o0rHFtJtTG3TcIDctCbTZJ2R8DYnQohwWqK+pTeLgiqDOtRGtSE0iln /DdgbHE8riO33e4FwNkYzuYRqHK2zOZ4WupVDS1zeweryO7UAomqIdHxEGvWXpkT+jm/Nd jVXMmCIE1bI/DTS/KgYsFt9r8uvMNwh+S2MJfe5LbtQrtOxWWNH14RI48Lx4LaqAlwsyai 4Ka9gPhkMJuyAAoSpQwNkrlaaQapHpO7bZXt1rA06hPfBytjTlw78ry5ba9C8A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617816797; a=rsa-sha256; cv=none; b=WXWs/CAUcIdmum4+k5IarT2Fgj3sClAMomJcgFmzv1RGtulIgzfVcSPxJnNMgky7cOEr54 N9oR0355aTUQvf2ktbcqSREkLbnu4FRIVO8h6XwcL31Lpj9tByaMG6GrAhJHIUK9gUdarW Y7GNQkszdMdkHJBrtgCaGLaS8UvxSavvvZctEhRMofDYQx2hfRIfVmS4FRzrigjn8npT0t wlHsWzxHDC6dKgSTqSBFDmigrOHgXjJleHf5bZe/Zxe+wDkokOJE9mlp5gWr3lV9nONsAB Oee8nrN+3zb2wWXuDqnFVzl+ltQ92+L+2m5PovPfZXN18swUTwoBVO8A99APnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=KqxJH25P; dmarc=pass (policy=none) header.from=lepiller.eu; 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: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=KqxJH25P; dmarc=pass (policy=none) header.from=lepiller.eu; 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: 64C3E19E9C X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: ah6rMLgnaw0I --MP_/KKehfwJg2GPQG7Tj0HUG4O= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Here's v2. I checked that it sets GUIX_LOCPATH properly on my system (I had to add the path specification for it to work). --MP_/KKehfwJg2GPQG7Tj0HUG4O= Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-website-Add-locales-in-manifest.patch >From 70aa3b969e1830bce9e44b8dda0a97fcb27cce89 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 | 62 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 49 insertions(+), 13 deletions(-) diff --git a/website/manifest.scm b/website/manifest.scm index eda382a..6beb78e 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,51 @@ `(("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 (computed-file "locales" + (with-imported-modules '((guix build utils)) + #~(let ((out (string-append #$output "/lib/locale"))) + (use-modules (guix build utils)) + (mkdir-p out) + (copy-recursively #$locales out))))) + (search-paths + (list (search-path-specification + (variable "GUIX_LOCPATH") + (files '("lib/locale")))))) + (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_/KKehfwJg2GPQG7Tj0HUG4O=--