diff mbox series

[bug#47623] website: README: Fix build and serve commands

Message ID LL3c9sVaMk_UGYOIfdKlIqHVqxEEYrPaCROMIbyj0M99adj7H15JW6rAj66tLc5pauNiiGvqOnG1cT3Oc3WIRSUMvrMbuBiMC5L7oXsBCAQ=@protonmail.com
State New
Headers show
Series [bug#47623] website: README: Fix build and serve commands | expand

Checks

Context Check Description
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue

Commit Message

Luis Felipe April 6, 2021, 5:52 p.m. UTC
Hi,

The instructions to build and run the website locally fail because they refer to a "locale" directory, which does not exist (at least in my Guix System). It should be "locales" instead.

Best,


---
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/

Comments

Leo Famulari April 6, 2021, 6:14 p.m. UTC | #1
On Tue, Apr 06, 2021 at 05:52:48PM +0000, Luis Felipe via Guix-patches via wrote:
> Hi,
> 
> The instructions to build and run the website locally fail because they refer to a "locale" directory, which does not exist (at least in my Guix System). It should be "locales" instead.

On my system, the directory is named 'locale', not 'locales'.

I'm not sure what's going on...
Mathieu Othacehe April 6, 2021, 6:26 p.m. UTC | #2
Hello,

> On my system, the directory is named 'locale', not 'locales'.
>
> I'm not sure what's going on...

No sign of a 'locales' directory here.  The GUIX_LOCPATH variable is
/run/current-system/locale on my system.  It only contains the locales
defined in %default-locale-definitions.

Running something like:

--8<---------------cut here---------------start------------->8---
GUIX_LOCPATH=$HOME/.guix-profile/lib/locale  \
GUIX_WEB_SITE_LOCAL=yes guix environment -C -m manifest.scm                            \
                          -E GUIX_LOCPATH -E LANG --share=$HOME/.guix-profile/lib/locale \
                          -E GUIX_WEB_SITE_LOCAL  --share=/tmp                           \
                          -- haunt build
--8<---------------cut here---------------end--------------->8---

works for me.

Mathieu
diff mbox series

Patch

From ce3807b79aa7eb20c53c8679ba39f6238c041098 Mon Sep 17 00:00:00 2001
From: Luis Felipe <luis.felipe.la@protonmail.com>
Date: Tue, 6 Apr 2021 12:36:30 -0500
Subject: [PATCH] website: README: Fix build and serve commands.

Both commands failed because they referred to a directory that does not
exist: $HOME/.guix-profile/lib/locale instead of
$HOME/.guix-profile/lib/locales (plural).

* website/README (Running the website): Fix path to locales.
---
 website/README | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/website/README b/website/README
index 69e666c..7f386f6 100644
--- a/website/README
+++ b/website/README
@@ -33,7 +33,7 @@  commands:
 ** Build locally
 #+begin_example
   GUIX_WEB_SITE_LOCAL=yes guix environment -C -m manifest.scm                            \
-                          -E GUIX_LOCPATH -E LANG --share=$HOME/.guix-profile/lib/locale \
+                          -E GUIX_LOCPATH -E LANG --share=$HOME/.guix-profile/lib/locales \
                           -E GUIX_WEB_SITE_LOCAL  --share=/tmp                           \
                           -- haunt build
 #+end_example
@@ -41,7 +41,7 @@  commands:
 ** Serve locally
 #+begin_example
   guix environment -CN -m manifest.scm                                \
-       -E GUIX_LOCPATH -E LANG --share=$HOME/.guix-profile/lib/locale \
+       -E GUIX_LOCPATH -E LANG --share=$HOME/.guix-profile/lib/locales \
        --share=/tmp                                                   \
        -- haunt serve -w
 #+end_example

base-commit: 906436c869b01c57fac9418fb32d3ddd0c6b196f
-- 
2.31.0