unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / Atom feed
* [bug#47623] [PATCH] website: README: Fix build and serve commands
@ 2021-04-06 17:52 Luis Felipe via Guix-patches via
  2021-04-06 18:14 ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Luis Felipe via Guix-patches via @ 2021-04-06 17:52 UTC (permalink / raw)
  To: 47623

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]

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/

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-website-README-Fix-build-and-serve-commands.patch --]
[-- Type: text/x-patch; name=0001-website-README-Fix-build-and-serve-commands.patch, Size: 1597 bytes --]

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#47623] [PATCH] website: README: Fix build and serve commands
  2021-04-06 17:52 [bug#47623] [PATCH] website: README: Fix build and serve commands Luis Felipe via Guix-patches via
@ 2021-04-06 18:14 ` Leo Famulari
  2021-04-06 18:26   ` Mathieu Othacehe
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2021-04-06 18:14 UTC (permalink / raw)
  To: 47623

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...




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#47623] [PATCH] website: README: Fix build and serve commands
  2021-04-06 18:14 ` Leo Famulari
@ 2021-04-06 18:26   ` Mathieu Othacehe
  0 siblings, 0 replies; 3+ messages in thread
From: Mathieu Othacehe @ 2021-04-06 18:26 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 47623


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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-06 18:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06 17:52 [bug#47623] [PATCH] website: README: Fix build and serve commands Luis Felipe via Guix-patches via
2021-04-06 18:14 ` Leo Famulari
2021-04-06 18:26   ` Mathieu Othacehe

unofficial mirror of guix-patches@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git