From: Matt <matt@excalamus.com>
To: "guix-devel" <guix-devel@gnu.org>
Subject: Document /homeless-shelter?
Date: Sat, 15 Jan 2022 22:19:54 -0500 [thread overview]
Message-ID: <17e60e604fa.d4b620b31007437.5972832998992327822@excalamus.com> (raw)
In-Reply-To:
In the IRC, someone asked about an error message:
PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
This error happened when trying to build a Python package, python-libpysal.
The solution was to set HOME to /tmp:
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-home-directory
(lambda _
;; Tests fail with "Permission denied: '/homeless-shelter'".
(setenv "HOME" "/tmp"))))
Basically, some projects expect a $HOME to be defined and will fail because Guix sets $HOME to /homeless-shelter, which doesn't exist in the build environment.
As I understand it, $HOME is set to /homeless-shelter during build because that's how Nix does/did it and "there’s no home
directory in build environments, and perhaps Eelco Dolstra and others back then found that setting ‘HOME’ to a non-existing directory broke
fewer builds that leaving it unset."
Is my understanding correct?
Is this something that should be documented, and if so, where?
IRC log:
https://logs.guix.gnu.org/guix/2022-01-16.log#003312
Previous Guix discussion:
https://lists.gnu.org/archive/html/guix-devel/2019-11/msg00311.html
next reply other threads:[~2022-01-16 3:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-16 3:19 Matt [this message]
2022-01-16 5:20 ` Document /homeless-shelter? Leo Famulari
2022-01-16 17:38 ` Matt
2022-01-16 18:16 ` Maxime Devos
2022-01-16 18:27 ` Leo Famulari
2022-01-16 18:25 ` Leo Famulari
2022-01-16 18:55 ` Matt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17e60e604fa.d4b620b31007437.5972832998992327822@excalamus.com \
--to=matt@excalamus.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).