1 |
W dniu nie, 21.01.2018 o godzinie 00∶13 +0000, użytkownik Sergei |
2 |
Trofimovich napisał: |
3 |
> Fixes build failures in unprivileged containers like bug #645182: |
4 |
> Package: dev-python/pycparser-2.14 |
5 |
> >>> Unpacking source... |
6 |
> tar: CHANGES: Cannot change ownership to uid 1000, gid 1000: Invalid argument |
7 |
> |
8 |
> In such containers uid=0 can't really change file ownership. |
9 |
> |
10 |
> Bug: https://bugs.gentoo.org/645182 |
11 |
|
12 |
You can close it ;-). |
13 |
|
14 |
> Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
15 |
> --- |
16 |
> eclass/vcs-snapshot.eclass | 3 ++- |
17 |
> 1 file changed, 2 insertions(+), 1 deletion(-) |
18 |
> |
19 |
> diff --git a/eclass/vcs-snapshot.eclass b/eclass/vcs-snapshot.eclass |
20 |
> index 3eff6995fae..2b3f73897ce 100644 |
21 |
> --- a/eclass/vcs-snapshot.eclass |
22 |
> +++ b/eclass/vcs-snapshot.eclass |
23 |
> @@ -67,7 +67,8 @@ vcs-snapshot_src_unpack() { |
24 |
> # XXX: check whether the directory structure inside is |
25 |
> # fine? i.e. if the tarball has actually a parent dir. |
26 |
> mkdir "${destdir}" || die |
27 |
> - tar -C "${destdir}" -x --strip-components 1 \ |
28 |
> + # -o (--no-same-owner) to avoid restoring original owner |
29 |
> + tar -C "${destdir}" -xo --strip-components 1 \ |
30 |
|
31 |
Well, I'd personally prefer '-x -o' because every other option is |
32 |
separate right now, and this one is easy to miss then. |
33 |
|
34 |
> -f "${DISTDIR}/${f}" || die |
35 |
> ;; |
36 |
> *) |
37 |
|
38 |
-- |
39 |
Best regards, |
40 |
Michał Górny |