flavorjones / mini_portile

mini_portile and mini_portile2 - Simple autoconf and cmake builder for developers
MIT License
114 stars 51 forks source link

running as root causes tar to try and set owner/group #40

Open squeedee opened 9 years ago

squeedee commented 9 years ago

We run mini_portile in a docker container, which defaults to a root user. When tar (on ubuntu lucid) is asked to untar a src distribution, it defaults to setting owner and group, which it cannot do inside the container. Our workaround is to pass --no-same-owner to tar. --no-same-owner is the default behaviour in tar when the user is not root.

Currently we monkey patch mini_portile - do you have any recommendations?

There are a lot of integration environments for mini_portile, so not sure how reliable this patch would be for all users of mini_portile.

flavorjones commented 9 years ago

Thanks for reporting this. Let me look and propose a solution.