From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GL4rK8fxomI9bAEAbAwnHQ (envelope-from ) for ; Fri, 10 Jun 2022 09:24:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UHbwKsfxomI+GwAAauVa8A (envelope-from ) for ; Fri, 10 Jun 2022 09:24:55 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3C6C72E9D2 for ; Fri, 10 Jun 2022 09:24:55 +0200 (CEST) Received: from localhost ([::1]:40196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzZ0m-0007FF-Vz for larch@yhetil.org; Fri, 10 Jun 2022 03:24:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzYtC-0002bJ-W0 for bug-guix@gnu.org; Fri, 10 Jun 2022 03:17:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzYtC-0000JX-Np for bug-guix@gnu.org; Fri, 10 Jun 2022 03:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nzYtC-0007en-BI for bug-guix@gnu.org; Fri, 10 Jun 2022 03:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51639: The home-environment example on Guix manual has an error Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 10 Jun 2022 07:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51639 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Luis Henrique Gomes Higino , 51639@debbugs.gnu.org Cc: Oleg Pykhalov , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 51639-submit@debbugs.gnu.org id=B51639.165484539729402 (code B ref 51639); Fri, 10 Jun 2022 07:17:02 +0000 Received: (at 51639) by debbugs.gnu.org; 10 Jun 2022 07:16:37 +0000 Received: from localhost ([127.0.0.1]:48547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzYsn-0007e8-4p for submit@debbugs.gnu.org; Fri, 10 Jun 2022 03:16:37 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:49283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzYsi-0007ds-4D for 51639@debbugs.gnu.org; Fri, 10 Jun 2022 03:16:36 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 12EE8C0005; Fri, 10 Jun 2022 07:16:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1654845386; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iV5z2vmkB9WqhP1OPpE1uDMGdbKx+AmaIXMcKVICyZw=; b=ZWCn1s6/tNZUl4zpoAvqTX3ZakSql1Nn09dZ1yNUOqW5EQemxMuPEyoswfcTegSx5jCvP8 +aBEVIYYdQ686ITQ4M11YpEp9PXOzpc6WphKRKHCEBoeQuk5nFFr7yKtPZASSJWAjmYe05 d+XT2FpPKc1DJve8bpxPTd4x93VqAXZ+vURlTKde6GoEf/BBdICI+q2w2zrheyxUcDHn6c qZuD++uiXW1JN0ms3XHRVqccMHZl6GdDgXzLKzyGViTk7C8abn/hFkscCbn0qxVn3ghaSH 9mDCxTLVYSlEqU2SlSTLH1T08AfBVT078g1REmOSE2yKXrx6e8WSdrFVhuBLSA== From: Andrew Tropin In-Reply-To: <87y26175m0.fsf@gmail.com> References: <87y26175m0.fsf@gmail.com> Date: Fri, 10 Jun 2022 10:16:21 +0300 Message-ID: <87edzx9eey.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654845895; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=iV5z2vmkB9WqhP1OPpE1uDMGdbKx+AmaIXMcKVICyZw=; b=sQaStlV6KgRFGubHMHl84zRGwpSdMTP+JAF0KWX8GY148TiKQmAxlzRHAPK1orGzfYBEZv lp7PnBuC66CvYvYuvrC+esc8+sD66/8IgjWyFeZidBldXkMcuqNemq9mIoSR2bxzA/HPjL OoR6uV9CQ4fpZxQwwOYQhBBskem49SwhOvTm/DXuQBAM4MWfnSx/d+V7uyL785Nu+FnHJy G2A8NwgcQv3WQxPjrkI3rjdj/ULhBeO9MedG+UQYXMIDb7bHiGcwbX92WCuCO0XzIRY6oO mxanCTNrjo5/pnIYcdgQ5gLembrraAcpl7dEj0hFqbERUvDORSAFmTP0qZ6KcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654845895; a=rsa-sha256; cv=none; b=EbN0klYPynhevycJjCz8bXUiCxJ0Sdm7iJ2xhBAYhxk+q/eIls8QaFiIiFsAFfarW1vd9e fIif1UOsWz8RICAIoC8MeKcKowkJUSdCCYxS432azCfCcylg0FMyGyBNIlpyT8A9Sn7E3h /zd2zDSJ46JpSYh81lmCw+9G7idaoo3vSHYvuNOpVgnPGhewCFzHa0fkTDdQds7Vw9JNHr 8tvVmxFBIRnwZ7y+gkpjcffoOTE46EhE9ABsejzuea8LlcvzSN4oHckUcVl4f5wJ4KN8Wo NgzBxCxqAm7b8VzVNILBwS0gaUhv/DP0q1HiG9niL0MKCibiZ7SK9o3YOvfGKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b="ZWCn1s6/"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b="ZWCn1s6/"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3C6C72E9D2 X-Spam-Score: 2.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5hQo+AVWPZTA --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2021-11-06 09:50, Luis Henrique Gomes Higino wrote: > Hi, > > the example present in the 11.1 section of the guix manual ((guix) > Declaring the Home Environment) uses a list of strings in the > bash-profile field of home-bash-configuration, which is incorrect,=20 > as it > expects a list of file-like objects. > > The example is as follows: > > (use-modules (gnu home) > (gnu home services) > (gnu home services shells) > (gnu services) > (gnu packages admin) > (guix gexp)) >=20=20=20 >=20=20=20 > (home-environment > (packages (list htop)) > (services > (list > (service home-bash-service-type > (home-bash-configuration > (guix-defaults? #t) > (bash-profile '("\ > export HISTFILE=3D$XDG_CACHE_HOME/.bash_history")))) >=20=20=20 > (simple-service 'test-config > home-files-service-type > (list `("config/test.conf" > ,(plain-file "tmp-file.txt" > "the content of=20 > ~/.config/test.conf"))))))) > > Running "guix home build" with a file containing this returns this=20 > error: > > building=20 > /gnu/store/cvmpzmvb0p73dvbf813rcmpplj6fnbk8-bash_profile.drv... > Backtrace: > 8 (primitive-load=20 > "/gnu/store/w6nikzvdk66d1b8x579ra0vz0wl?") > In ice-9/ports.scm: > 463:17 7 (call-with-output-file _ _ #:binary _ #:encoding _) > In ice-9/eval.scm: > 159:9 6 (_ #(#(#)=20 > #)) > 163:9 5 (_ #(#(#)=20 > #)) > 155:9 4 (_ #(#(#)=20 > #)) > 159:9 3 (_ #(#(#)=20 > #)) > In ice-9/boot-9.scm: > 152:2 2 (with-fluid* _ _ _) > In ice-9/ports.scm: > 440:11 1 (call-with-input-file " export=20 > HISTFILE=3D$XDG_CACHE?" ?) > In unknown file: > 0 (open-file " export=20 > HISTFILE=3D$XDG_CACHE_HOME/.bash?" ?) >=20=20=20 > ERROR: In procedure open-file: > In procedure open-file: No such file or directory: " export=20 > HISTFILE=3D$XDG_CACHE_HOME/.bash_history" > builder for=20 > `/gnu/store/cvmpzmvb0p73dvbf813rcmpplj6fnbk8-bash_profile.drv'=20 > failed with exit code 1 > > I believe it should be changed to something like this: > > (use-modules (gnu home) > (gnu home services) > (gnu home services shells) > (gnu services) > (gnu packages admin) > (guix gexp)) >=20=20=20 >=20=20=20 > (home-environment > (packages (list htop)) > (services > (list > (service home-bash-service-type > (home-bash-configuration > (guix-defaults? #t) > (bash-profile (list (plain-file "bash-profile" "\ > export HISTFILE=3D$XDG_CACHE_HOME/.bash_history"))))) >=20=20=20 > (simple-service 'test-config > home-files-service-type > (list `("config/test.conf" > ,(plain-file "tmp-file.txt" > "the content of=20 > ~/.config/test.conf"))))))) > > This manages to build correctly. > > Greetings, > Luis Hi, you are right! Sorry for long reply. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-doc-Update-example-of-a-minimalistic-home-environmen.patch Content-Transfer-Encoding: quoted-printable From=20b1b448078a5382caf906c84064094f25aef7c689 Mon Sep 17 00:00:00 2001 From: Andrew Tropin Date: Fri, 10 Jun 2022 10:08:24 +0300 Subject: [PATCH] doc: Update example of a minimalistic home environment. * doc/he-config-bare-bones.scm: Adujst example according to changes in bash-service-type and home-files-service-type. =2D-- doc/he-config-bare-bones.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/he-config-bare-bones.scm b/doc/he-config-bare-bones.scm index d2e4736e29..f948d85277 100644 =2D-- a/doc/he-config-bare-bones.scm +++ b/doc/he-config-bare-bones.scm @@ -13,12 +13,13 @@ (service home-bash-service-type (home-bash-configuration (guix-defaults? #t) =2D (bash-profile '("\ =2Dexport HISTFILE=3D$XDG_CACHE_HOME/.bash_history")))) + (bash-profile (list (plain-file "bash-profile" "\ +export HISTFILE=3D$XDG_CACHE_HOME/.bash_history"))))) =20 (simple-service 'test-config =2D home-files-service-type =2D (list `("config/test.conf" + home-xdg-configuration-files-service-type + (list `("test.conf" ,(plain-file "tmp-file.txt" =2D "the content of ~/.config/test.c= onf"))))))) + "the content of + ~/.config/test.conf"))))))) =20 =2D-=20 2.36.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Best regards, Andrew Tropin --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmKi78UACgkQIgjSCVjB 3rAQGg/5AYjJTgMnUR8m+uTyBSeuhMa44ThP6yh++Nz+MMZB2ACqZqO6iOVG9xZn uba+3knfXX1KS03xf8Leohv6TUe0y00abFpYNnVJ3ubnvJK70dV/iLFSVrzOgDbG E4jYF6hD8KTWgoEMqZHkQN2URNPdWZt3hK9H4l9xTzM4uo/ev4X7L9Cat60mHc/e y1+9TZqNBblPC8CBdnGvdZEEVeZOQvZjV8n6lgEmK1kW1SsEH5/gUL1bRjAIP4uq l0iOSbErfKknhzwBwer/TjNtkMLadchvBHz/Jup5kIWuY/fJX3Z0O2KOgo5bgoNk wITMnFZ6QMXGpDuLy53Cany+8tu4FG1ogKvn+OJyB1WvbMUDJKqjFgeD8dfPBzE3 roiHdacUDAB3Z0LuzFmadu52i9rCZZKtI1nv2+5aOZBuKLAH+za4wgOQ7zs5pEFa nnBWDWKfe+B7dA1aZOSyrrH89Zh7a4g9NnJmFkorNW8Nmn1DHLbHBzcw7eUYnIxn qxONmHQh5+lJIcAiBZWjWglnKUoycv3MsONPzgZ8M/3h/mh0kzBrR3v7fV+araVy kFXbPoywwJAyXFje5/8BTqOnFp09jMpGFDxSMtvRmlkS4kj3Ti51L2DYe/7sL1A3 qEHOjVIjj4H5s5RWk10ho9T/8+kQZCGjA4TciELsTRNc9hskhAk= =UVde -----END PGP SIGNATURE----- --==-=-=--