GNU bug report logs - #51353
[PATCH website] website: Fix build.

Previous Next

Package: guix-patches;

Reported by: Julien Lepiller <julien <at> lepiller.eu>

Date: Sat, 23 Oct 2021 15:39:02 UTC

Severity: normal

Tags: patch

Done: Julien Lepiller <julien <at> lepiller.eu>

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 51353 in the body.
You can then email your comments to 51353 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#51353; Package guix-patches. (Sat, 23 Oct 2021 15:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Julien Lepiller <julien <at> lepiller.eu>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 23 Oct 2021 15:39:02 GMT) Full text and rfc822 format available.

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

From: Julien Lepiller <julien <at> lepiller.eu>
To: guix-patches <at> gnu.org
Subject: [PATCH website] website: Fix build.
Date: Sat, 23 Oct 2021 17:38:30 +0200
[Message part 1 (text/plain, inline)]
Hi Guix!

I just noticed an issue building the website: with a recent change, the
code would check explicitely for GUIX_WEB_SITE_LOCAL in the
environment, but .guix.scm doesn't set it, so it fails with:

;;; (repl-version (repl-version 0 1 1))
Running 'haunt build' for lingua de_DE...
Backtrace:
In haunt/ui.scm:
    125:6 19 (run-haunt-command _ . _)
In haunt/ui/build.scm:
     60:4 18 (haunt-build . _)
In haunt/site.scm:
   130:14 17 (build-site _)
In haunt/utils.scm:
    64:11 16 (flat-map _ . _)
In srfi/srfi-1.scm:
   586:29 15 (map1 _)
   586:29 14 (map1 _)
   586:29 13 (map1 _)
   586:29 12 (map1 _)
   586:17 11 (map1 (#<procedure 7fffed0befc0 at ice-9/boot-9.scm:…> …))
In unknown file:
          10 (_ #<procedure 7fffeb2950a0 at ice-9/boot-9.scm:798:28…> …)
In ice-9/eval.scm:
    155:9  9 (_ _)
    155:9  8 (_ _)
   173:39  7 (_ #(#(#<directory (apps packages builder) 7ffff49b…>) …))
   293:34  6 (_ #(#(#(#<directory (apps packages builder) 7ffff…>)) …))
    159:9  5 (_ #(#(#(#<directory (apps packages builder) 7ffff…>)) …))
    159:9  4 (_ _)
   196:43  3 (_ _)
In unknown file:
           2 (force #<promise #<procedure 7fffed0f3480 at ice-9/eval…>)
In ice-9/eval.scm:
   245:16  1 (_ #(#(#(#<directory (apps packages data) 7ffff49b…>)) …))
In unknown file:
           0 (string=? "yes" #f)

ERROR: In procedure string=?:
In procedure string=: Wrong type argument in position 2 (expecting
string): #f building pages in '/tmp/gnu.org/software/guix'...
Backtrace:
           3 (primitive-load "/gnu/store/8amiibdjbp3chrj8cnbg6v1162g?")
In ice-9/boot-9.scm:
   260:13  2 (for-each #<procedure 7ffff5fb1140 at ice-9/eval.scm:3?> ?)
In ice-9/eval.scm:
    619:8  1 (_ #(#(#<directory (guile-user) 7ffff5fefc80>) "de_DE"))
In guix/build/utils.scm:
    654:6  0 (invoke _ . _)

guix/build/utils.scm:654:6: In procedure invoke:
ERROR:
  1. &invoke-error:
      program:
"/gnu/store/2p1zk377cvxs1dz0iasj2l5wp2jlpcx2-haunt-0.2.5/bin/haunt"
arguments: ("build") exit-status: 1
      term-signal: #f
      stop-signal: #f

The attached patch fixes the issue.
[0001-website-Fix-build.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#51353; Package guix-patches. (Sat, 23 Oct 2021 18:04:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Julien Lepiller <julien <at> lepiller.eu>, 51353 <at> debbugs.gnu.org
Subject: Re: [bug#51353] [PATCH website] website: Fix build.
Date: Sat, 23 Oct 2021 19:56:03 +0200
Hi Julien,

On Sat, 23 Oct 2021 at 17:38, Julien Lepiller <julien <at> lepiller.eu> wrote:

> I just noticed an issue building the website: with a recent change, the
> code would check explicitely for GUIX_WEB_SITE_LOCAL in the
> environment, but .guix.scm doesn't set it, so it fails with:

Oops!  My bad.

> From 6be425e7e917f93ae5a0cb7bbb047d0c4c1f4c78 Mon Sep 17 00:00:00 2001
> From: Julien Lepiller <julien <at> lepiller.eu>
> Date: Sat, 23 Oct 2021 17:30:59 +0200
> Subject: [PATCH] website: Fix build.
>
> * website/.guix.scm: Set GUIX_WEB_SITE_LOCAL explicitely.
> ---
>  website/.guix.scm | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/website/.guix.scm b/website/.guix.scm
> index f656d47..a7a6d36 100644
> --- a/website/.guix.scm
> +++ b/website/.guix.scm
> @@ -111,6 +111,7 @@
>            (setvbuf (current-output-port) 'line)
>            (setvbuf (current-error-port) 'line)
>  
> +          (setenv "GUIX_WEB_SITE_LOCAL" "no")
>            (copy-recursively #$source ".")

LGTM!

Cheers,
simon




Reply sent to Julien Lepiller <julien <at> lepiller.eu>:
You have taken responsibility. (Sat, 23 Oct 2021 21:23:02 GMT) Full text and rfc822 format available.

Notification sent to Julien Lepiller <julien <at> lepiller.eu>:
bug acknowledged by developer. (Sat, 23 Oct 2021 21:23:02 GMT) Full text and rfc822 format available.

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

From: Julien Lepiller <julien <at> lepiller.eu>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 51353-done <at> debbugs.gnu.org
Subject: Re: [bug#51353] [PATCH website] website: Fix build.
Date: Sat, 23 Oct 2021 23:22:31 +0200
Pushed along with a translation update, hopefully we can see the
updated website soon :)




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 21 Nov 2021 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 289 days ago.

Previous Next


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