unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / 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
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ 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 related	[flat|nested] 5+ 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
  2021-05-13 20:43 ` Luis Felipe via Guix-patches via
  2021-05-21 14:02 ` bug#47623: " Luis Felipe via Guix-patches via
  2 siblings, 1 reply; 5+ 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] 5+ 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; 5+ 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] 5+ 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-05-13 20:43 ` Luis Felipe via Guix-patches via
  2021-05-21 14:02 ` bug#47623: " Luis Felipe via Guix-patches via
  2 siblings, 0 replies; 5+ messages in thread
From: Luis Felipe via Guix-patches via @ 2021-05-13 20:43 UTC (permalink / raw)
  To: 47623@debbugs.gnu.org, Mathieu Othacehe

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

In my case (using Guix System),

$ echo $GUIX_LOCPATH
/run/current-system/profile/lib/locale:/run/current-system/locale

Both of which exist. And there is also

$ ls ~/.guix-profile/lib/locales
am.pak          es-419.pak       hu.pak       nb.pak          sw.pak
am.pak.info     es-419.pak.info  hu.pak.info  nb.pak.info     sw.pak.info
ar.pak          es.pak           id.pak       nl.pak          ta.pak
ar.pak.info     es.pak.info      id.pak.info  nl.pak.info     ta.pak.info
bg.pak          et.pak           it.pak       pl.pak          te.pak
bg.pak.info     et.pak.info      it.pak.info  pl.pak.info     te.pak.info
bn.pak          fa.pak           ja.pak       pt-BR.pak       th.pak
bn.pak.info     fa.pak.info      ja.pak.info  pt-BR.pak.info  th.pak.info
ca.pak          fil.pak          kn.pak       pt-PT.pak       tr.pak
ca.pak.info     fil.pak.info     kn.pak.info  pt-PT.pak.info  tr.pak.info
cs.pak          fi.pak           ko.pak       ro.pak          uk.pak
cs.pak.info     fi.pak.info      ko.pak.info  ro.pak.info     uk.pak.info
da.pak          fr.pak           lt.pak       ru.pak          vi.pak
da.pak.info     fr.pak.info      lt.pak.info  ru.pak.info     vi.pak.info
de.pak          gu.pak           lv.pak       sk.pak          zh-CN.pak
de.pak.info     gu.pak.info      lv.pak.info  sk.pak.info     zh-CN.pak.info
el.pak          he.pak           ml.pak       sl.pak          zh-TW.pak
el.pak.info     he.pak.info      ml.pak.info  sl.pak.info     zh-TW.pak.info
en-GB.pak       hi.pak           mr.pak       sr.pak
en-GB.pak.info  hi.pak.info      mr.pak.info  sr.pak.info
en-US.pak       hr.pak           ms.pak       sv.pak
en-US.pak.info  hr.pak.info      ms.pak.info  sv.pak.inf

The "~/.guix-profile/lib/locale" directory does not exist (why can that be?! I don't know...).

So for me, the build command always fails like this:

$ LANG=C 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
guix environment: error: statfs: /home/yo/.guix-profile/lib/locale: No such file or directory

Building it with the command you provided, it fails for the same reason.

Building it changing "$HOME/.guix-profile/lib/locale" to "$HOME/.guix-profile/lib/locales", it builds, but I see what seems to be character enconding issues in the output (some characters are replaced by a question mark). For instance:

copy 'static/base/img/Guix-package.png' ? 'static/base/img/Guix-package.png'

Then, running the serve command fails:

$ guix environment -CN -m manifest.scm -E GUIX_LOCPATH -E LANG --share=$HOME/.guix-profile/lib/locales --share=/tmp -- haunt serve -w
guile: warning: failed to install locale
Backtrace:
           2 (primitive-load "/gnu/store/yzaxlqmiraznba4yf2cyqpyla9q?")
In haunt/ui.scm:
    131:2  1 (haunt-main _ "serve" "-w")
In unknown file:
           0 (setlocale 6 "")

ERROR: In procedure setlocale:
In procedure setlocale: Invalid argument

(I use "$HOME/.guix-profile/lib/locales" there too, otherwise it fails saying "$HOME/.guix-profile/lib/locale" does not exist)

I don't get it... The only thing I recall doing related to locales is installing both "glibc-locales" and "gcc-toolchain" system-wide; the former to get all locales supported by glibc, and the latter to get the "locale" command.




^ permalink raw reply	[flat|nested] 5+ 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-05-13 20:43 ` Luis Felipe via Guix-patches via
@ 2021-05-21 14:02 ` Luis Felipe via Guix-patches via
  2 siblings, 0 replies; 5+ messages in thread
From: Luis Felipe via Guix-patches via @ 2021-05-21 14:02 UTC (permalink / raw)
  To: 47623-done@debbugs.gnu.org

I'm closing this, since it is not a problem in the commands, but an issue on my side which I reported to guix-devel to try to get some help (https://lists.gnu.org/archive/html/guix-devel/2021-05/msg00354.html).


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






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

end of thread, other threads:[~2021-05-21 14:03 UTC | newest]

Thread overview: 5+ 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
2021-05-13 20:43 ` Luis Felipe via Guix-patches via
2021-05-21 14:02 ` bug#47623: " Luis Felipe via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).