From unknown Wed Jun 25 05:40:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51639: The home-environment example on Guix manual has an error Resent-From: Luis Henrique Gomes Higino Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 06 Nov 2021 15:39:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51639 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 51639@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163621314231237 (code B ref -1); Sat, 06 Nov 2021 15:39:04 +0000 Received: (at submit) by debbugs.gnu.org; 6 Nov 2021 15:39:02 +0000 Received: from localhost ([127.0.0.1]:50184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjNmY-00087U-CH for submit@debbugs.gnu.org; Sat, 06 Nov 2021 11:39:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:36178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjM8W-00056S-Sq for submit@debbugs.gnu.org; Sat, 06 Nov 2021 09:53:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjM8W-000607-L9 for bug-guix@gnu.org; Sat, 06 Nov 2021 09:53:36 -0400 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:46676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjM8V-0006C5-9A for bug-guix@gnu.org; Sat, 06 Nov 2021 09:53:36 -0400 Received: by mail-ot1-x32b.google.com with SMTP id b5-20020a9d60c5000000b0055c6349ff22so6796308otk.13 for ; Sat, 06 Nov 2021 06:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version; bh=l0YaSdQkCEakUILZBQ5bJj0FYSd1FlNOXhvEqrfCFIc=; b=Il5fZRRnQ3LFpvV62s7mZRZ9BQyhRcZz8ttCzOU1esPSyf7ZAj+Y0Jkp07F9SSyE8t bKz2pPh5iBw55HeZ7z90dsrqtczr8yetNKjT/v0zJ3UKje5VvmfZCiOh5JwbaSdSrKVQ o+yTK55EFvb5Ihqb8oAnfuZyee/F5Xx8/0UIfBS22o/Rc7crBLOA0KzaqEfOgPN3xjHe ncRUhRzzEqI+Uo0oVv7I4ma6119+hQAQHdlRrkxr3r8yJzctZLEXwqB9R7v1TOqq8ceZ dFS6/PettQrk0WjYqL4yEsH6XRX5DmPnn9TgblbBdEmDYfdIVr1skCuv/9+FyhqvYVHl EgoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=l0YaSdQkCEakUILZBQ5bJj0FYSd1FlNOXhvEqrfCFIc=; b=i1M/6xjjwiTWiKVhCHVqYApm3AV39HJ/bH9edZxvUwwpjGsb5RiBJEJq9tYifEt69P g5vAcK1Ru1h1up2RJO0X9+Sc1Ypwqg7wu58u7OTu3NzCtaZnCu+O41RE7LTcZzaqtCRj KF+k8nvO08RKUhlqPwRz0KpHhI8RK4TpXSBTbSiVX2amFBaQMxHjZbWBQh1L/xqa6lw+ nTo5DtZe2JdsHVhyKx+7IF2zIb3iEOHTQc8OQAxKXK7QiQwGgbu0DZkLkrQr25idd+GT RPZVSXSuzoMLvqRF41CJuF8IbdYYuFte9FIPWu+tcDKWjLrn1lCKXO2CeElR+lZmQpxH FXUg== X-Gm-Message-State: AOAM532LJuXqeid7B9aaFjggv6eBqUfRc8zv6YKw27XX6j2IMCI5qzqU 0DaEr+tnE0wfUMAzaXw6mLISYvoRz1kI+A== X-Google-Smtp-Source: ABdhPJxtRRyG0DqnrvDQe5flrnflze+XDp1vCX4G7VETI9GAGWO+mksfxyVtHnOFHM2fspyrUeH7Ig== X-Received: by 2002:a9d:5d0f:: with SMTP id b15mr2353858oti.172.1636206812963; Sat, 06 Nov 2021 06:53:32 -0700 (PDT) Received: from LenovoGuix ([177.19.26.66]) by smtp.gmail.com with ESMTPSA id i15sm3614367otu.67.2021.11.06.06.53.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Nov 2021 06:53:32 -0700 (PDT) User-agent: mu4e 1.6.5; emacs 27.2 From: Luis Henrique Gomes Higino Date: Sat, 06 Nov 2021 09:50:34 -0300 Message-ID: <87y26175m0.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::32b; envelope-from=luishenriquegh2701@gmail.com; helo=mail-ot1-x32b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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: -1.1 (-) X-Mailman-Approved-At: Sat, 06 Nov 2021 11:38:53 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) 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, 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)) (home-environment (packages (list htop)) (services (list (service home-bash-service-type (home-bash-configuration (guix-defaults? #t) (bash-profile '("\ export HISTFILE=$XDG_CACHE_HOME/.bash_history")))) (simple-service 'test-config home-files-service-type (list `("config/test.conf" ,(plain-file "tmp-file.txt" "the content of ~/.config/test.conf"))))))) Running "guix home build" with a file containing this returns this error: building /gnu/store/cvmpzmvb0p73dvbf813rcmpplj6fnbk8-bash_profile.drv... Backtrace: 8 (primitive-load "/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 (_ #(#(#) #)) 163:9 5 (_ #(#(#) #)) 155:9 4 (_ #(#(#) #)) 159:9 3 (_ #(#(#) #)) In ice-9/boot-9.scm: 152:2 2 (with-fluid* _ _ _) In ice-9/ports.scm: 440:11 1 (call-with-input-file " export HISTFILE=$XDG_CACHE?" ?) In unknown file: 0 (open-file " export HISTFILE=$XDG_CACHE_HOME/.bash?" ?) ERROR: In procedure open-file: In procedure open-file: No such file or directory: " export HISTFILE=$XDG_CACHE_HOME/.bash_history" builder for `/gnu/store/cvmpzmvb0p73dvbf813rcmpplj6fnbk8-bash_profile.drv' 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)) (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=$XDG_CACHE_HOME/.bash_history"))))) (simple-service 'test-config home-files-service-type (list `("config/test.conf" ,(plain-file "tmp-file.txt" "the content of ~/.config/test.conf"))))))) This manages to build correctly. Greetings, Luis -- Luis H. Higino From unknown Wed Jun 25 05:40:01 2025 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-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --==-=-= 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----- --==-=-=-- From unknown Wed Jun 25 05:40:01 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Luis Henrique Gomes Higino Subject: bug#51639: closed (Re: bug#51639: The home-environment example on Guix manual has an error) Message-ID: References: <87tu8s27no.fsf@gnu.org> <87y26175m0.fsf@gmail.com> X-Gnu-PR-Message: they-closed 51639 X-Gnu-PR-Package: guix Reply-To: 51639@debbugs.gnu.org Date: Fri, 10 Jun 2022 09:25:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1654853102-25965-1" This is a multi-part message in MIME format... ------------=_1654853102-25965-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #51639: The home-environment example on Guix manual has an error which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 51639@debbugs.gnu.org. --=20 51639: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D51639 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1654853102-25965-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 51639-done) by debbugs.gnu.org; 10 Jun 2022 09:24:26 +0000 Received: from localhost ([127.0.0.1]:48736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzasT-0006jg-Lw for submit@debbugs.gnu.org; Fri, 10 Jun 2022 05:24:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzasO-0006jO-F0 for 51639-done@debbugs.gnu.org; Fri, 10 Jun 2022 05:24:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53442) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzasI-00024v-I5; Fri, 10 Jun 2022 05:24:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=09V/UZtzK5X4Ra+7c+rUIBuZ9DjR3q0rf2jMypbaGhU=; b=qpw0B+gWH/LJSF298O3j r/EJlXIiRQaCMTUwR25CZZg60tR4Tl660TnI2ybH8WMcYfCyLowCq2J3zaphv2Ts2GZJwAhym0bYp hrdSJpu7JdlqTXCm+eW/R7wJaZHsi1EOcktZRee4poKS1Esf4Dsyg4bQWiqDuu9Qf/srMXrUPHJJB LhXO6teFMveDHEpNSI0ZcS+W3vPLLY2SKTmEJjuWo0gNXyJ4C0FSMLqPM0TUBxB/4ipF1sZmbPvjc zFbKgBS9PAW3uHSNZWz6lNWqGZtg9HPmdqk4YlnUnHqzJlmQHUc3uUgU350OUxK168/9bHpWnygzv xzWRappm6APABA==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=36404 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzasI-0001FR-1r; Fri, 10 Jun 2022 05:24:14 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Andrew Tropin Subject: Re: bug#51639: The home-environment example on Guix manual has an error References: <87y26175m0.fsf@gmail.com> <87edzx9eey.fsf@trop.in> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 22 Prairial an 230 de la =?utf-8?Q?R=C3=A9volu?= =?utf-8?Q?tion=2C?= jour de la Camomille X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 10 Jun 2022 11:24:11 +0200 In-Reply-To: <87edzx9eey.fsf@trop.in> (Andrew Tropin's message of "Fri, 10 Jun 2022 10:16:21 +0300") Message-ID: <87tu8s27no.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: 51639-done Cc: Oleg Pykhalov , Luis Henrique Gomes Higino , 51639-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Andrew Tropin skribis: > From b1b448078a5382caf906c84064094f25aef7c689 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. Applied, thanks! Ludo=E2=80=99. ------------=_1654853102-25965-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Nov 2021 15:39:02 +0000 Received: from localhost ([127.0.0.1]:50184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjNmY-00087U-CH for submit@debbugs.gnu.org; Sat, 06 Nov 2021 11:39:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:36178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjM8W-00056S-Sq for submit@debbugs.gnu.org; Sat, 06 Nov 2021 09:53:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjM8W-000607-L9 for bug-guix@gnu.org; Sat, 06 Nov 2021 09:53:36 -0400 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:46676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjM8V-0006C5-9A for bug-guix@gnu.org; Sat, 06 Nov 2021 09:53:36 -0400 Received: by mail-ot1-x32b.google.com with SMTP id b5-20020a9d60c5000000b0055c6349ff22so6796308otk.13 for ; Sat, 06 Nov 2021 06:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version; bh=l0YaSdQkCEakUILZBQ5bJj0FYSd1FlNOXhvEqrfCFIc=; b=Il5fZRRnQ3LFpvV62s7mZRZ9BQyhRcZz8ttCzOU1esPSyf7ZAj+Y0Jkp07F9SSyE8t bKz2pPh5iBw55HeZ7z90dsrqtczr8yetNKjT/v0zJ3UKje5VvmfZCiOh5JwbaSdSrKVQ o+yTK55EFvb5Ihqb8oAnfuZyee/F5Xx8/0UIfBS22o/Rc7crBLOA0KzaqEfOgPN3xjHe ncRUhRzzEqI+Uo0oVv7I4ma6119+hQAQHdlRrkxr3r8yJzctZLEXwqB9R7v1TOqq8ceZ dFS6/PettQrk0WjYqL4yEsH6XRX5DmPnn9TgblbBdEmDYfdIVr1skCuv/9+FyhqvYVHl EgoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=l0YaSdQkCEakUILZBQ5bJj0FYSd1FlNOXhvEqrfCFIc=; b=i1M/6xjjwiTWiKVhCHVqYApm3AV39HJ/bH9edZxvUwwpjGsb5RiBJEJq9tYifEt69P g5vAcK1Ru1h1up2RJO0X9+Sc1Ypwqg7wu58u7OTu3NzCtaZnCu+O41RE7LTcZzaqtCRj KF+k8nvO08RKUhlqPwRz0KpHhI8RK4TpXSBTbSiVX2amFBaQMxHjZbWBQh1L/xqa6lw+ nTo5DtZe2JdsHVhyKx+7IF2zIb3iEOHTQc8OQAxKXK7QiQwGgbu0DZkLkrQr25idd+GT RPZVSXSuzoMLvqRF41CJuF8IbdYYuFte9FIPWu+tcDKWjLrn1lCKXO2CeElR+lZmQpxH FXUg== X-Gm-Message-State: AOAM532LJuXqeid7B9aaFjggv6eBqUfRc8zv6YKw27XX6j2IMCI5qzqU 0DaEr+tnE0wfUMAzaXw6mLISYvoRz1kI+A== X-Google-Smtp-Source: ABdhPJxtRRyG0DqnrvDQe5flrnflze+XDp1vCX4G7VETI9GAGWO+mksfxyVtHnOFHM2fspyrUeH7Ig== X-Received: by 2002:a9d:5d0f:: with SMTP id b15mr2353858oti.172.1636206812963; Sat, 06 Nov 2021 06:53:32 -0700 (PDT) Received: from LenovoGuix ([177.19.26.66]) by smtp.gmail.com with ESMTPSA id i15sm3614367otu.67.2021.11.06.06.53.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Nov 2021 06:53:32 -0700 (PDT) User-agent: mu4e 1.6.5; emacs 27.2 From: Luis Henrique Gomes Higino To: bug-guix@gnu.org Subject: The home-environment example on Guix manual has an error Date: Sat, 06 Nov 2021 09:50:34 -0300 Message-ID: <87y26175m0.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::32b; envelope-from=luishenriquegh2701@gmail.com; helo=mail-ot1-x32b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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: -1.1 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 06 Nov 2021 11:38:53 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) 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, 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)) (home-environment (packages (list htop)) (services (list (service home-bash-service-type (home-bash-configuration (guix-defaults? #t) (bash-profile '("\ export HISTFILE=$XDG_CACHE_HOME/.bash_history")))) (simple-service 'test-config home-files-service-type (list `("config/test.conf" ,(plain-file "tmp-file.txt" "the content of ~/.config/test.conf"))))))) Running "guix home build" with a file containing this returns this error: building /gnu/store/cvmpzmvb0p73dvbf813rcmpplj6fnbk8-bash_profile.drv... Backtrace: 8 (primitive-load "/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 (_ #(#(#) #)) 163:9 5 (_ #(#(#) #)) 155:9 4 (_ #(#(#) #)) 159:9 3 (_ #(#(#) #)) In ice-9/boot-9.scm: 152:2 2 (with-fluid* _ _ _) In ice-9/ports.scm: 440:11 1 (call-with-input-file " export HISTFILE=$XDG_CACHE?" ?) In unknown file: 0 (open-file " export HISTFILE=$XDG_CACHE_HOME/.bash?" ?) ERROR: In procedure open-file: In procedure open-file: No such file or directory: " export HISTFILE=$XDG_CACHE_HOME/.bash_history" builder for `/gnu/store/cvmpzmvb0p73dvbf813rcmpplj6fnbk8-bash_profile.drv' 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)) (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=$XDG_CACHE_HOME/.bash_history"))))) (simple-service 'test-config home-files-service-type (list `("config/test.conf" ,(plain-file "tmp-file.txt" "the content of ~/.config/test.conf"))))))) This manages to build correctly. Greetings, Luis -- Luis H. Higino ------------=_1654853102-25965-1--