Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix-shell: don't use XDG_RUNTIME_DIR if TMPDIR is unset #2728

Closed
wants to merge 1 commit into from

Conversation

catern
Copy link
Contributor

@catern catern commented Mar 15, 2019

XDG_RUNTIME_DIR isn't meant for possibly-large build processes; it's
mostly meant for small sockets, named pipes, and other IPC
mechanisms. As a result it's limited in size on many systems, and so
using it as a temporary directory (by setting TMPDIR to it) will cause
some test and build processes to fail when they try to use more space
than is available in XDG_RUNTIME_DIR.

For example, XDG_RUNTIME_DIR is limited to 100MB on an older Debian
system, and some build and test processes try to use several GB of
space for temporary artifacts; these failures are spurious, and can be
avoided if we just default directly to /tmp instead of trying to
default to XDG_RUNTIME_DIR first.

XDG_RUNTIME_DIR isn't meant for possibly-large build processes; it's
mostly meant for small sockets, named pipes, and other IPC
mechanisms. As a result it's limited in size on many systems, and so
using it as a temporary directory (by setting TMPDIR to it) will cause
some test and build processes to fail when they try to use more space
than is available in XDG_RUNTIME_DIR.

For example, XDG_RUNTIME_DIR is limited to 100MB on an older Debian
system, and some build and test processes try to use several GB of
space for temporary artifacts; these failures are spurious, and can be
avoided if we just default directly to /tmp instead of trying to
default to XDG_RUNTIME_DIR first.
@prusnak
Copy link
Member

prusnak commented Oct 26, 2019

There is a discussion in #2957

@fzakaria
Copy link
Contributor

If this PR is re-resolved can this get merged?

@stale
Copy link

stale bot commented Jun 2, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Jun 2, 2021
@stale
Copy link

stale bot commented Jun 19, 2022

I closed this issue due to inactivity. → More info

@stale stale bot closed this Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants