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

mkdir errors without ${HOME} #75

Open
attie opened this issue Jul 28, 2023 · 0 comments
Open

mkdir errors without ${HOME} #75

attie opened this issue Jul 28, 2023 · 0 comments

Comments

@attie
Copy link

attie commented Jul 28, 2023

Amaranth / Glasgow now perform hermetic builds, with a totally clean environment (see cb5b0e38).

This causes ${HOME} to expand to nothing, which results in errors making and accessing /.config, /.cache, /.local, which were supposed to be under ${HOME} (perhaps set -u is sensible too?)

For example:

user@99a0a3b7e7d6:~$ env -i /opt/oss-cad-suite/bin/nextpnr-ice40 --version
mkdir: cannot create directory '/.config': Permission denied
mkdir: cannot create directory '/.cache': Permission denied
mkdir: cannot create directory '/.local': Permission denied
/opt/oss-cad-suite/bin/nextpnr-ice40: line 23: /.config/yosyshq/fonts.conf: No such file or directory
"nextpnr-ice40" -- Next Generation Place and Route (Version nextpnr-0.6-29-g54b20457)
attie added a commit to attie/glasgow that referenced this issue Aug 5, 2023
This resovles errors when nextpnr-ice40 tries to create directories in
the rootfs.

See: YosysHQ/oss-cad-suite-build#75
attie added a commit to attie/oss-cad-suite-build that referenced this issue Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant