all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Document /homeless-shelter?
@ 2022-01-16  3:19 Matt
  2022-01-16  5:20 ` Leo Famulari
  0 siblings, 1 reply; 7+ messages in thread
From: Matt @ 2022-01-16  3:19 UTC (permalink / raw)
  To: guix-devel

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-01-16 18:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-16  3:19 Document /homeless-shelter? Matt
2022-01-16  5:20 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.