libstore setup on Darwin overrides TMPDIR in interactive nix-shell and others #253

Closed
opened 2024-04-29 10:57:12 +00:00 by molly · 1 comment
Member

Describe the bug

(Upstream issue: https://github.com/NixOS/nix/issues/7731)

The initialisation code in libstore (initLibStore()) unsets TMPDIR on Darwin, and resets it to /tmp. This code is invoked when running nix-shell interactively (among others), which means that applications which rely on TMPDIR for IPC (for example, emacsclient) break

Steps To Reproduce

Not yet reproduced with lix, however the original code from upstream is still present.

## Describe the bug (Upstream issue: https://github.com/NixOS/nix/issues/7731) The initialisation code in libstore (`initLibStore()`) unsets TMPDIR on Darwin, and resets it to /tmp. This code is invoked when running nix-shell interactively (among others), which means that applications which rely on TMPDIR for IPC (for example, emacsclient) break ## Steps To Reproduce Not yet reproduced with lix, however the original code from upstream is still present.
molly added the
bug
label 2024-04-29 10:57:12 +00:00
qyriad added the
Area/store
label 2024-05-06 00:54:07 +00:00
jade added the
OS/macOS
label 2024-10-18 22:11:15 +00:00
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/2103 ("feat: Add temp-dir setting")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/2103", "number": 2103, "kind": "commit message"}], "cl_meta": {"2103": {"change_title": "feat: Add temp-dir setting"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/2103](https://gerrit.lix.systems/c/lix/+/2103) ("feat: Add temp-dir setting")
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#253
No description provided.