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

Podman Rootless Build fails #8639

Closed
adrubesh opened this issue Nov 15, 2022 · 0 comments · Fixed by #9589
Closed

Podman Rootless Build fails #8639

adrubesh opened this issue Nov 15, 2022 · 0 comments · Fixed by #9589

Comments

@adrubesh
Copy link

adrubesh commented Nov 15, 2022

When using Podman to build, podman build -t monero . with Rootless containers it will fail due to user ID namespace constraints.

This can be solved by modifying:

$(1)_extract_cmds ?= mkdir -p $$($(1)_extract_dir) && echo "$$($(1)_sha256_hash) $$($(1)_source)" > $$($(1)_extract_dir)/.$$($(1)_file_name).hash && $(build_SHA256SUM) -c $$($(1)_extract_dir)/.$$($(1)_file_name).hash && tar --strip-components=1 -xf $$($(1)_source)

and appending --no-same-owner to the tar command.

 $(1)_extract_cmds ?= mkdir -p $$($(1)_extract_dir) && echo "$$($(1)_sha256_hash)  $$($(1)_source)" > $$($(1)_extract_dir)/.$$($(1)_file_name).hash &&  $(build_SHA256SUM) -c $$($(1)_extract_dir)/.$$($(1)_file_name).hash && tar --strip-components=1 --no-same-owner -xf $$($(1)_source) 

I'm unsure of what doing this may or may not break in standard build processes though, so I decided not to open a PR to patch for this specific case..

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

Successfully merging a pull request may close this issue.

1 participant