emscripten-core / emscripten-core/emsdk

within a container "emsdk install" raises "Cannot change ownership to uid 95607, gid 89939: Invalid argument"

Open
#1,564 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.7k
Forks
821
Avg merge
1h 25m
Merged PRs (30d)
3

Description

As per the title says, the tar extraction keeps the ownership of the files, that at least in some versions is ver 65k
Probably I could workaround this with the uid and gid mapping mechanism, but 6k ids for a container is quite standard limit.

I suggest to do the tar extraction without preserving gid and uid

Specifically in line 517 of emsdk.py
returncode = run(['tar', '-xvf' if VERBOSE else '-xf', sdk_path(source_filename), '--strip', '1'], cwd=dest_dir)
add '--no-same-owner' as a parameter if on a linux platform

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.