unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: "Raphaël Mélotte" <raphael.melotte@mind.be>
Cc: 51259@debbugs.gnu.org, Simon Streit <simon@netpanic.org>
Subject: bug#51259: Cannot build Guix from source (error messages about the translations)
Date: Wed, 20 Oct 2021 14:11:38 +0200	[thread overview]
Message-ID: <20211020141138.77a7021f@tachikoma.lepiller.eu> (raw)
In-Reply-To: <545366bf-bd00-ac11-d65c-181fd5ba7dd9@mind.be>

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

Le Wed, 20 Oct 2021 12:40:17 +0200,
Raphaël Mélotte <raphael.melotte@mind.be> a écrit :

> Hello,
> 
> On 10/20/21 4:06 AM, Julien Lepiller wrote:
> 
> > 
> > Since it seems this is due to the lack of the LC_ALL variable in the
> > pure environment, how about the attached patch?  
> 
> With the attached patch on top of master (c650160abb), the build
> fails with messages similar to this one:
> ./doc/guix.de.texi:158: @ref reference to nonexistent node
> `Translating Guix'
> 
> I attached the build logs.
> 
> I used the following to build, to make sure to start from a clean
> tree: ---
> git clean -ffdx && guix environment guix --pure --ad-hoc help2man git
> strace -- sh -c './bootstrap && ./configure --localstatedir=/var &&
> make' | tee build.log
> 
> ---
> 
> Kind regards,
> 
> Raphaël

So, it looks like my change prevented the xref command from running
altogether, which explains the error. Moving the variable definition
seems to help; I was able to build from a clean checkout in a pure
environment with the attached revised patch.

[-- Attachment #2: 0001-doc-Set-LC_ALL-when-translating-xref-commands.patch --]
[-- Type: text/x-patch, Size: 1654 bytes --]

From 9cf411955afe9d3cb95d8060bb37ce97fdcbacb0 Mon Sep 17 00:00:00 2001
Message-Id: <9cf411955afe9d3cb95d8060bb37ce97fdcbacb0.1634731604.git.julien@lepiller.eu>
From: Julien Lepiller <julien@lepiller.eu>
Date: Wed, 20 Oct 2021 04:02:06 +0200
Subject: [PATCH] doc: Set LC_ALL when translating xref commands.

* doc/local.mk (xref_command): Set LC_ALL.
---
 doc/local.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/local.mk b/doc/local.mk
index fff11f8183..d0cab306a4 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -110,18 +110,18 @@ endef
 $(srcdir)/%D%/guix.%.texi: po/doc/guix-manual.%.po $(srcdir)/%D%/contributing.%.texi guix/build/po.go
 	-$(AM_V_PO4A)$(PO4A_TRANSLATE) $(PO4A_PARAMS) -m "%D%/guix.texi" -p "$<" -l "$@.tmp"
 	-sed -i "s|guix\.info|$$(basename "$@" | sed 's|texi$$|info|')|" "$@.tmp"
-	-$(AM_V_POXREF)$(xref_command)
+	-$(AM_V_POXREF)LC_ALL=en_US.UTF-8 $(xref_command)
 	-mv "$@.tmp" "$@"
 
 $(srcdir)/%D%/guix-cookbook.%.texi: po/doc/guix-cookbook.%.po guix/build/po.go
 	-$(AM_V_PO4A)$(PO4A_TRANSLATE) $(PO4A_PARAMS) -m "%D%/guix-cookbook.texi" -p "$<" -l "$@.tmp"
 	-sed -i "s|guix-cookbook\.info|$$(basename "$@" | sed 's|texi$$|info|')|" "$@.tmp"
-	-$(AM_V_POXREF)$(xref_command)
+	-$(AM_V_POXREF)LC_ALL=en_US.UTF-8 $(xref_command)
 	-mv "$@.tmp" "$@"
 
 $(srcdir)/%D%/contributing.%.texi: po/doc/guix-manual.%.po guix/build/po.go
 	-$(AM_V_PO4A)$(PO4A_TRANSLATE) $(PO4A_PARAMS) -m "%D%/contributing.texi" -p "$<" -l "$@.tmp"
-	-$(AM_V_POXREF)$(xref_command)
+	-$(AM_V_POXREF)LC_ALL=en_US.UTF-8 $(xref_command)
 	-mv "$@.tmp" "$@"
 
 %D%/os-config-%.texi: gnu/system/examples/%.tmpl
-- 
2.33.0


  parent reply	other threads:[~2021-10-20 12:14 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-18  4:01 bug#51259: Cannot build Guix from source (error messages about the translations) Leo Famulari
2021-10-18 11:23 ` Julien Lepiller
2021-10-18 14:37   ` Leo Famulari
2021-10-18 11:54 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-10-18 12:57   ` Julien Lepiller
2021-10-19  8:18 ` Simon Streit
2021-10-19  9:59   ` Simon Streit
2021-10-19 10:29     ` Raphaël Mélotte
2021-10-20  2:06       ` Julien Lepiller
2021-10-20 10:40         ` Raphaël Mélotte
2021-10-20 11:12           ` Julien Lepiller
2021-10-20 12:11           ` Julien Lepiller [this message]
2021-10-20 14:20             ` Raphaël Mélotte
2021-10-22  0:37             ` Julien Lepiller
2021-10-19 22:45               ` bug#51294: Error/bug: bootstrapping a new guix source tree jgart via Bug reports for GNU Guix
2021-10-20  2:04                 ` Julien Lepiller
2021-10-20  2:07                   ` Julien Lepiller
2021-10-20  2:34                     ` jgart via Bug reports for GNU Guix
     [not found]                 ` <handler.51294.D51259.163486307231239.notifdone@debbugs.gnu.org>
2021-10-22  0:57                   ` bug#51294: closed (Re: bug#51259: Cannot build Guix from source (error messages about the translations)) jgart via Bug reports for GNU Guix
2021-10-22  9:23                     ` zimoun
2021-10-19 21:35 ` bug#51259: Cannot build Guix from source (error messages about the translations) Ricardo Wurmus
2021-10-20 15:44 ` Denis 'GNUtoo' Carikli
2021-10-20 15:52   ` Julien Lepiller
2021-10-20 23:36     ` Denis 'GNUtoo' Carikli
2021-10-20 15:57   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix

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=20211020141138.77a7021f@tachikoma.lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=51259@debbugs.gnu.org \
    --cc=raphael.melotte@mind.be \
    --cc=simon@netpanic.org \
    /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).