diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2018-01-21 00:01:59 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-03-17 23:18:35 +0000 |
commit | a10a1bf072ae90445fb6d238659a799d3bf55375 (patch) | |
tree | c20cc0e0992c92c983c7efd17fd8a84d726fe9a9 /eclass/vcs-snapshot.eclass | |
parent | net-misc/curl-7.59.0: ppc64 stable, bug 650056 (diff) | |
download | gentoo-a10a1bf072ae90445fb6d238659a799d3bf55375.tar.gz gentoo-a10a1bf072ae90445fb6d238659a799d3bf55375.tar.bz2 gentoo-a10a1bf072ae90445fb6d238659a799d3bf55375.zip |
vcs-snapshot.eclass: set -o (--no-same-owner) when unpacking, bug #645182
Fixes build failures in unprivileged containers like bug #645182:
Package: dev-python/pycparser-2.14
>>> Unpacking source...
tar: CHANGES: Cannot change ownership to uid 1000, gid 1000: Invalid argument
In such containers uid=0 can't really change file ownership.
Closes: https://bugs.gentoo.org/645182
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/vcs-snapshot.eclass')
-rw-r--r-- | eclass/vcs-snapshot.eclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/vcs-snapshot.eclass b/eclass/vcs-snapshot.eclass index 3eff6995fae7..243d4a8a3185 100644 --- a/eclass/vcs-snapshot.eclass +++ b/eclass/vcs-snapshot.eclass @@ -67,7 +67,8 @@ vcs-snapshot_src_unpack() { # XXX: check whether the directory structure inside is # fine? i.e. if the tarball has actually a parent dir. mkdir "${destdir}" || die - tar -C "${destdir}" -x --strip-components 1 \ + # -o (--no-same-owner) to avoid restoring original owner + tar -C "${destdir}" -x -o --strip-components 1 \ -f "${DISTDIR}/${f}" || die ;; *) |