unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tissevert <tissevert+guix@marvid.fr>
To: Luis Felipe <luis.felipe.la@protonmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: website: A little help running the website locally
Date: Fri, 21 May 2021 18:04:00 +0200	[thread overview]
Message-ID: <YKfZ3MkHP48DafYh@hellebore> (raw)
In-Reply-To: <7J0Os8AqtTsZsgEUulhpYRPleaTDMYhVMegwvV0wAyWEiIC3qgMnFU-XqKWx7L7-lmruN9ZImzE4Kx7GMr9t-lT31jf_v9Mk2bYcrXBTCoY=@protonmail.com>

Hi !

I'm afraid I saw your message too late because I have exactly the same problems
you describe in https://issues.guix.gnu.org/47623 which you've just closed.

I too have no ~/.guix-profile/lib/locale but ~/.guix-profile/lib/locales exists
and allows the build to complete.  So I don't know but could this
~/.guix-profile/lib/locale with no trailing 's' be a left-over from a previous
version of some software that used to build it at that location or something ?
My install of guix is pretty recent (~3 months).

From what I understood from the original issue, I checked $GUIX_LOCPATH and saw
it contained only my current system's, /run/current-system/locale, which, when
shared in place of this hypothetical `locales?` in $HOME/.guix-profile also
allows haunt to build the site correctly (it produces something, reports
success, and browsing what it serves looks like the official website).

Hope that helps : )

Tissevert

Le Fri, May 21, 2021 at 01:53:43PM +0000, Luis Felipe a écrit :
> Hi,
> 
> I've never been able to build and run the internationalized website correctly following the instructions on the README. I even thought there was a typo in the instructions (https://issues.guix.gnu.org/47623), but it seems there is actually a particular problem on my side that I don't know how to resolve. So I could use a little help.
> 
> The problem seems to be that the instructions on the README expect a "$HOME/.guix-profile/lib/locale" directory to exist, but it doesn't exist here. There is a "$HOME/.guix-profile/lib/locales" directory instead (note the plural name).
> 
> I've tried building and running the website using the "locales" directory to work around the issue. It used to build most of the time, but with enconding issues. Running the website almost always failed with some error about invalid arguments to "setlocale"), so I used plane "haunt serve".
> 
> Currently, though, using guix 1f68568 and guix website f7ca68f, building fails for me everytime I run this:
> 
> ★★★★★★★★★★★★★★★★★★★★
> $ GUIX_WEB_SITE_LOCAL=yes guix environment -C -m manifest.scm -E GUIX_LOCPATH -E LANG --share=$HOME/.guix-profile/lib/locales -E GUIX_WEB_SITE_LOCAL --share=/tmp -- haunt build
> guile: warning: failed to install locale
> Backtrace:
>            2 (primitive-load "/gnu/store/yzaxlqmiraznba4yf2cyqpyla9q?")
> In haunt/ui.scm:
>     131:2  1 (haunt-main _ "build")
> In unknown file:
>            0 (setlocale 6 "")
> 
> ERROR: In procedure setlocale:
> In procedure setlocale: Invalid argument
> ★★★★★★★★★★★★★★★★★★★★
> 
> 
> So I haven't been able to work much on the website for a long time. I don't know what's going on...
> 
> 
> ---
> Luis Felipe López Acevedo
> https://luis-felipe.gitlab.io/
> 


  reply	other threads:[~2021-05-21 16:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-21 13:53 website: A little help running the website locally Luis Felipe
2021-05-21 16:04 ` Tissevert [this message]
2021-05-21 16:38   ` Julien Lepiller
2021-05-21 16:48     ` Tissevert
2021-05-21 18:12       ` Luis Felipe
2021-05-21 18:17         ` Julien Lepiller
2021-05-21 18:33           ` Luis Felipe
2021-05-21 18:43             ` Luis Felipe
2021-05-21 18:55               ` Luis Felipe
2021-05-21 18:52             ` Julien Lepiller
2021-05-21 19:02               ` Luis Felipe
2021-05-21 19:24                 ` Julien Lepiller
2021-05-21 19:28                   ` Luis Felipe
2021-05-22 15:46                     ` Julien Lepiller
2021-05-22 18:04                       ` Luis Felipe
2021-05-26 13:46                       ` gauthier
2021-05-27 19:38                         ` Luis Felipe
2021-05-21 17:36   ` Luis Felipe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YKfZ3MkHP48DafYh@hellebore \
    --to=tissevert+guix@marvid.fr \
    --cc=guix-devel@gnu.org \
    --cc=luis.felipe.la@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).