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

factor: a standard working directory is set to be in /nix/store #212254

Closed
gunnihinn opened this issue Jan 23, 2023 · 2 comments
Closed

factor: a standard working directory is set to be in /nix/store #212254

gunnihinn opened this issue Jan 23, 2023 · 2 comments

Comments

@gunnihinn
Copy link

Describe the bug

This is a regression of 46300.

The Factor programming language sets up a repl that expects to live in a writable directory, but lives in /nix/store instead.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install the factor-lang package.
  2. Run the first two steps of the tutorial:
USE: tools.scaffold
"palindrome" scaffold-work

Error message:

Unix system call “mkdir” failed:

Read-only file system (30)

It was called with the following arguments:

"/nix/store/yg965y0vqcjkqaflg1f1vwf4r4574rv5-factor-lang-0.98/..."
511

Expected behavior

Factor should write to /var/lib/factor as per the patches in MR 48727. That directory exists, is owned by my system user and group, and has 775 permissions.

Notify maintainers

@vrthra @spacefrogg

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.81, NixOS, 22.11 (Raccoon), 22.11.726.04a75b2eecc`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.0`
 - channels(gunnarm): `""`
 - channels(root): `"home-manager-22.11.tar.gz, nixos-22.11"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
spacefrogg added a commit to spacefrogg/nixpkgs that referenced this issue Mar 11, 2023
The necessary changes to io.pathnames absolute-path did not end up in
the final factor image. Build a local boot image and bootstrap factor
twice to make it contain all build modifications.

Fixes NixOS#212254
@spacefrogg
Copy link
Contributor

Thank you for reporting! Please have a look at #220739. For the fix.

anpin pushed a commit to anpin/nixpkgs that referenced this issue May 29, 2023
The necessary changes to io.pathnames absolute-path did not end up in
the final factor image. Build a local boot image and bootstrap factor
twice to make it contain all build modifications.

Fixes NixOS#212254
@spacefrogg
Copy link
Contributor

Fixed but not propagated here due to a hickup on github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants