Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Comments

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

Merged
pothos merged 1 commit intoflatcar-masterfrom
dongsu/fix-rust-tmp-path
Dec 2, 2019
Merged

dev-lang/rust: store shell scripts under source dir instead of /tmp#125
pothos merged 1 commit intoflatcar-masterfrom
dongsu/fix-rust-tmp-path

Conversation

@dongsupark
Copy link
Contributor

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 Something isn't working label Nov 29, 2019
@pothos
Copy link
Contributor

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 December 2, 2019 15:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants