GNU bug report logs - #44051
[PATCH] website: Update manifest.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: zimoun <zimon.toutoune@HIDDEN>; Keywords: patch; Done: Ludovic Courtès <ludo@HIDDEN>; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 44051-done <at> debbugs.gnu.org:


Received: (at 44051-done) by debbugs.gnu.org; 19 Oct 2020 08:31:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 19 04:31:24 2020
Received: from localhost ([127.0.0.1]:39922 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kUQZg-0004pX-Jl
	for submit <at> debbugs.gnu.org; Mon, 19 Oct 2020 04:31:24 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55918)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1kUQZf-0004jb-2d
 for 44051-done <at> debbugs.gnu.org; Mon, 19 Oct 2020 04:31:23 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:58644)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1kUQZZ-0005Dw-PK; Mon, 19 Oct 2020 04:31:17 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=58994 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1kUQZZ-0004Lp-8L; Mon, 19 Oct 2020 04:31:17 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: [bug#44051] [PATCH] website: Update manifest.
References: <20201018000106.30868-1-zimon.toutoune@HIDDEN>
Date: Mon, 19 Oct 2020 10:31:15 +0200
In-Reply-To: <20201018000106.30868-1-zimon.toutoune@HIDDEN> (zimoun's
 message of "Sun, 18 Oct 2020 02:01:06 +0200")
Message-ID: <87362a39d8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 44051-done
Cc: 44051-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

zimoun <zimon.toutoune@HIDDEN> skribis:

> * website/guix.packages: Rename to...
> * website/manifest.scm: ...this.
> * website/README: Update.

Applied, thanks!  :-)

Ludo=E2=80=99.




Notification sent to zimoun <zimon.toutoune@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Ludovic Courtès <ludo@HIDDEN>:
You have taken responsibility. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Oct 2020 00:01:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 17 20:01:23 2020
Received: from localhost ([127.0.0.1]:35764 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kTw8Z-0004cn-Jy
	for submit <at> debbugs.gnu.org; Sat, 17 Oct 2020 20:01:23 -0400
Received: from lists.gnu.org ([209.51.188.17]:53242)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kTw8Y-0004cf-Gl
 for submit <at> debbugs.gnu.org; Sat, 17 Oct 2020 20:01:22 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:58022)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1kTw8Y-0005IE-6u
 for guix-patches@HIDDEN; Sat, 17 Oct 2020 20:01:22 -0400
Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:39728)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1kTw8V-0001Mc-V2
 for guix-patches@HIDDEN; Sat, 17 Oct 2020 20:01:21 -0400
Received: by mail-wr1-x443.google.com with SMTP id y12so7453008wrp.6
 for <guix-patches@HIDDEN>; Sat, 17 Oct 2020 17:01:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=LNY+gkcC4cqatRVAGt/XQlwR2uQmbqsgmBEnfW+foZo=;
 b=RK+5XsdRe03GNEPtdmxbFGlmB7vSPCpBU7KRHJJ35wAyj8PxrWn9G+oFkNTNOqVlcJ
 8hHh1PYU/kKxp6pUgS8wLEPR6hugcV/hNqFCLqm1MVBsJxCD0OV8ban35gRN/XRFVoXZ
 +vw4ypGqNdyloKmdKfu1EUORXuumSPUKlblpMYoisUVEbjhIyoh1086PFoEkXrRnuKcO
 KBbzBIKLmCdWCyCMDkmkj5edMShpvgYXPpmLK+w8JFXP2N779dXXl3BCiP5RLsRN6ekf
 fEF+lh6b+tqnqHadL4zGr2bmQUHTBueVVTlBinszJxKMDrMRhKrCwWcoVatAgpn5HK1r
 zAUQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=LNY+gkcC4cqatRVAGt/XQlwR2uQmbqsgmBEnfW+foZo=;
 b=iBB0esMipj7Hl9O0KQ9rJXd5FukLfDLFp+Qh+K3QpN3qIVrbAz4aSB+sSuu6tvoGbn
 QyyLxsPY0Yqonkj2b/AYuMVeyCEykrRuHs+UUDzc0LV2qNtw2p8O6qtAAyR4LE2CU8wD
 g/0m4g2NnCqeHdVT64QYzPvW7RjqX3Kto43NBtqE8T5n1oWaz5Qgm0+wQnLEEkYxIxhJ
 YHV84vGbPDSu1qcfy0KtoHbYklDHzsPRJnviSrp9d8jUlFOkUpF9Bfmk+ksWqRGyArrt
 mvqrqPVmUA4r34Ts6R7KRn31OhWBv8PSYVL3ML9tdltkoJPrsiIZCk7ZmGgkKyIxoBC9
 186g==
X-Gm-Message-State: AOAM530wcmB5JPgOw4Mj2VfIZltKn/A47jQ7IOkQjCw0k19PWAc92vaJ
 pqjYq2Ogh7u5o9V2BRgwrwKGDVXEYqs=
X-Google-Smtp-Source: ABdhPJxHZBSxr+PDjBmTPNnYkk7LxEDbV9QZ+GhWUrkqib5tY+M/Mz/WQMcluOJemlf1M8hIcSUT2Q==
X-Received: by 2002:adf:ab50:: with SMTP id r16mr11648263wrc.235.1602979276601; 
 Sat, 17 Oct 2020 17:01:16 -0700 (PDT)
Received: from localhost.localdomain ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id
 j17sm10527332wrw.68.2020.10.17.17.01.15
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 17 Oct 2020 17:01:16 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] website: Update manifest.
Date: Sun, 18 Oct 2020 02:01:06 +0200
Message-Id: <20201018000106.30868-1-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.28.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::443;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wr1-x443.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
Cc: zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

* website/guix.packages: Rename to...
* website/manifest.scm: ...this.
* website/README: Update.
---
 website/README        | 27 ++++++++++++++++++++++-----
 website/guix.packages | 16 ----------------
 website/manifest.scm  | 30 ++++++++++++++++++++++++++++++
 3 files changed, 52 insertions(+), 21 deletions(-)
 delete mode 100644 website/guix.packages
 create mode 100644 website/manifest.scm

diff --git a/website/README b/website/README
index 64b09c1..9ef044f 100644
--- a/website/README
+++ b/website/README
@@ -14,21 +14,38 @@ following command to install all the software needed to build the
 website:
 
 #+BEGIN_EXAMPLE
-$ guix package -i git glibc-locales gnutls guile guile-json guile-syntax-highlight guix haunt
+  guix package -m manifest.scm
 #+END_EXAMPLE
 
+*Note*: the packages =guix= and =haunt= should have the same version of Guile,
+otherwise building the website is slow and raises bunch of warnings.  The
+manifest file takes care.
+
 * Running the website
 
 To try out the website locally while you work on it, run the following
 commands:
 
 #+BEGIN_EXAMPLE
-$ cd path/to/guix-artwork/website
-$ export GUILE_LOAD_PATH=$(guix build guile-syntax-highlight)/share/guile/site/3.0:$GUILE_LOAD_PATH
-$ LC_ALL=en_US.utf8 GUIX_WEB_SITE_LOCAL=yes haunt build
-$ haunt serve
+  cd path/to/guix-artwork/website
 #+END_EXAMPLE
 
+** 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_WEB_SITE_LOCAL  --share=/tmp                           \
+                          -- haunt build
+#+end_example
+
+** Serve locally
+#+begin_example
+  guix environment -CN -m manifest.scm                                \
+       -E GUIX_LOCPATH -E LANG --share=$HOME/.guix-profile/lib/locale \
+       --share=/tmp                                                   \
+       -- haunt serve -w
+#+end_example
+
 Then, visit http://localhost:8080/en/guix.html in a web browser.
 
 You can stop the server pressing ~Ctrl + C~ twice.
diff --git a/website/guix.packages b/website/guix.packages
deleted file mode 100644
index 386307c..0000000
--- a/website/guix.packages
+++ /dev/null
@@ -1,16 +0,0 @@
-;;; Packages required to develop the website.
-;;; (See guix package --manifest option for more details on this file).
-
-(use-modules (guix profiles)
-	     (gnu packages))
-
-
-(define dev-packages
-  (list "glibc-locales"
-	"guile@HIDDEN"
-	"guile-syntax-highlight"
-	"guix"
-	"haunt"))
-
-
-(map specification->package dev-packages)
diff --git a/website/manifest.scm b/website/manifest.scm
new file mode 100644
index 0000000..eda382a
--- /dev/null
+++ b/website/manifest.scm
@@ -0,0 +1,30 @@
+(use-modules (guix packages)
+             ((gnu packages package-management) #:select (guix))
+             ((gnu packages guile-xyz)          #:select (haunt))
+             (srfi srfi-1))
+
+(define the-good-guile
+  (car (assoc-ref (package-native-inputs guix) "guile")))
+
+(define haunt-the-ghost
+  (package
+    (inherit haunt)
+    (name "haunt-for-guix-website")
+    (inputs
+     `(("guile" ,the-good-guile)
+       ,@(alist-delete "guile" (package-inputs haunt))))))
+
+(packages->manifest
+ (append
+  ;; Guile needs to be compatible
+  (list
+   guix
+   the-good-guile
+   haunt-the-ghost)
+
+  ;; Other packages
+  (map specification->package
+       (list
+        "glibc-locales"
+        "git"
+        "guile-syntax-highlight"))))

base-commit: 2e0252dfa809d5a38ce87245764d936b659c16b4
prerequisite-patch-id: 977ecbddcfeb54b30cf8874ecf70ce1d7e41fecb
-- 
2.28.0





Acknowledgement sent to zimoun <zimon.toutoune@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#44051; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 19 Oct 2020 08:30:02 UTC

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