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

dev-lang/rust: store shell scripts under source dir instead of /tmp #125

Merged
merged 1 commit into from Dec 2, 2019

Conversation

@dongsupark
Copy link
Member

dongsupark commented Nov 29, 2019

When building ebuilds under catalyst stage4, emerge cannot write data outside of its chroot, under /tmp on the host.
That's the reason why the rust installation from toolchain fails like /tmp/cc.sh: Permission denied.

That is no issue when building it under local SDK, because in that case there is no toolchain installation involved.

So we should write the temporary scripts under ${S}, for example, /mnt/host/source/src/build/catalyst/tmp/coreos-toolchains/stage4-amd64-2303.2.1/.

When building ebuilds under catalyst stage4, emerge cannot write data
outside of its chroot, under `/tmp` on the host. That's the reason
why the rust installation from toolchain fails like
`/tmp/cc.sh: Permission denied`.

That is no issue when building it under local SDK, because in that case
there is no toolchain installation involved.

So we should write the temporary scripts under `${S}`, for example,
`/mnt/host/source/src/build/catalyst/tmp/coreos-toolchains/stage4-amd64-2303.2.1/`.
@dongsupark dongsupark added the bug label Nov 29, 2019
@pothos
pothos approved these changes Dec 2, 2019
@pothos

This comment has been minimized.

Copy link
Member

pothos commented Dec 2, 2019

Have ported it to 2aa3b9e in #122

@pothos pothos merged commit c457457 into flatcar-master Dec 2, 2019
@pothos pothos deleted the dongsu/fix-rust-tmp-path branch Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.