From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QJbPMerfh2GSLAEAgWs5BA (envelope-from ) for ; Sun, 07 Nov 2021 15:17:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2LGELerfh2FXIQAA1q6Kng (envelope-from ) for ; Sun, 07 Nov 2021 14:17:14 +0000 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 75647142C6 for ; Sun, 7 Nov 2021 15:17:14 +0100 (CET) Received: from localhost ([::1]:44910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjiyv-0002pP-MT for larch@yhetil.org; Sun, 07 Nov 2021 09:17:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjNmb-00048G-Tf for bug-guix@gnu.org; Sat, 06 Nov 2021 11:39:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjNma-0006VA-Sp for bug-guix@gnu.org; Sat, 06 Nov 2021 11:39:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mjNma-00088k-KB for bug-guix@gnu.org; Sat, 06 Nov 2021 11:39:04 -0400 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-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 X-Mailman-Approved-At: Sun, 07 Nov 2021 09:17:06 -0500 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636294634; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=l0YaSdQkCEakUILZBQ5bJj0FYSd1FlNOXhvEqrfCFIc=; b=HkpbQPWyutIr2YNO4Opd6KQcSMMAyai/IrzwkObCgg+sHIKVZG29yn7qxu9N/Kzq2xIZHd p27IqHN46BLz197963u3vm3gWeZeXTOUVl3mX23wQtFSry4EIqihv0O7Wt6J6IGc4wCItb sw3BYoQfsyDFT2/opf9t8sAWxOOIxdHB2l5JyKc0OLofopYt5yphwbcl1kTyVIkEeNAExd uH0OOC5rXJrtUTnvKDRDo80xaaJ/FFf5HwyJPhNKNcag7wOuLBrL+c9FBEcQW7+P+ZJBYd EWmzpaIGCpBuZ7xJ1LfF0XjJdaaCJ6u6rfdpP0TvacScZlsMqfvLQ7buR5RHYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636294634; a=rsa-sha256; cv=none; b=jNYO7FHELzQ+L6iAXRF7oVeMrXPBXVgXDvxKoeSqniDilGFYFgRQEOYJwagTOluRmNhcHR HqdBvdZxOjiOB0WTKnkQN+pkRM/Mz6jbah5b52Ba3cA36qJEkNw1GpcX3clbg+6swvms3e Q93hPeM9oZlWejBRD6iEviPW50p4W4nkT7RbiHVI2X8eQgCsRC4qFnSmZa5rSBsOEjx2H+ d9zKdzy0JGuZHMAm5tXGPooSrZJOs0cne36AWQsrE4cKzVoC0Mzrm+jFu038xhB7VmRSDB tVam9fJQ9nwouK6SVngMKDt0s0eEUXYxVclfQ7xXkSlI1Z5Bhqe+taDCK63TPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Il5fZRRn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Il5fZRRn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 75647142C6 X-Spam-Score: -0.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: SuhkF3kfIBEe 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