GNU bug report logs - #47623
[PATCH] website: README: Fix build and serve commands

Previous Next

Package: guix-patches;

Reported by: Luis Felipe <luis.felipe.la <at> protonmail.com>

Date: Tue, 6 Apr 2021 17:54:02 UTC

Severity: normal

Tags: patch

Done: Luis Felipe <luis.felipe.la <at> protonmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47623 in the body.
You can then email your comments to 47623 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#47623; Package guix-patches. (Tue, 06 Apr 2021 17:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Luis Felipe <luis.felipe.la <at> protonmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 06 Apr 2021 17:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Luis Felipe <luis.felipe.la <at> protonmail.com>
To: Luis Felipe via Guix-patches <guix-patches <at> gnu.org>
Subject: [PATCH] website: README: Fix build and serve commands
Date: Tue, 06 Apr 2021 17:52:48 +0000
[Message part 1 (text/plain, inline)]
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/
[0001-website-README-Fix-build-and-serve-commands.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#47623; Package guix-patches. (Tue, 06 Apr 2021 18:15:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Luis Felipe via Guix-patches via <guix-patches <at> gnu.org>
Cc: 47623 <at> debbugs.gnu.org
Subject: Re: [bug#47623] [PATCH] website: README: Fix build and serve commands
Date: Tue, 6 Apr 2021 14:14:18 -0400
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...




Information forwarded to guix-patches <at> gnu.org:
bug#47623; Package guix-patches. (Tue, 06 Apr 2021 18:15:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#47623; Package guix-patches. (Tue, 06 Apr 2021 18:27:02 GMT) Full text and rfc822 format available.

Message #14 received at 47623 <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <othacehe <at> gnu.org>
To: Leo Famulari <leo <at> famulari.name>
Cc: 47623 <at> debbugs.gnu.org
Subject: Re: [bug#47623] [PATCH] website: README: Fix build and serve commands
Date: Tue, 06 Apr 2021 20:26:14 +0200
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




Information forwarded to guix-patches <at> gnu.org:
bug#47623; Package guix-patches. (Thu, 13 May 2021 20:44:01 GMT) Full text and rfc822 format available.

Message #17 received at 47623 <at> debbugs.gnu.org (full text, mbox):

From: Luis Felipe <luis.felipe.la <at> protonmail.com>
To: "47623 <at> debbugs.gnu.org" <47623 <at> debbugs.gnu.org>,
 Mathieu Othacehe <othacehe <at> gnu.org>
Subject: [PATCH] website: README: Fix build and serve commands
Date: Thu, 13 May 2021 20:43:12 +0000
> 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.




Reply sent to Luis Felipe <luis.felipe.la <at> protonmail.com>:
You have taken responsibility. (Fri, 21 May 2021 14:03:02 GMT) Full text and rfc822 format available.

Notification sent to Luis Felipe <luis.felipe.la <at> protonmail.com>:
bug acknowledged by developer. (Fri, 21 May 2021 14:03:02 GMT) Full text and rfc822 format available.

Message #22 received at 47623-done <at> debbugs.gnu.org (full text, mbox):

From: Luis Felipe <luis.felipe.la <at> protonmail.com>
To: "47623-done <at> debbugs.gnu.org" <47623-done <at> debbugs.gnu.org>
Subject: [PATCH] website: README: Fix build and serve commands
Date: Fri, 21 May 2021 14:02:05 +0000
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/






bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 19 Jun 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 305 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.