Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 645462

Summary: portage 2.3.19 breaks builds on docker with overlay2 driver
Product: Portage Development Reporter: Calin Don <calin.don>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 635020    

Description Calin Don 2018-01-23 17:59:18 UTC
Dockerfile:

```
FROM docker.io/gentoo/portage:20180122 as portage
FROM docker.io/gentoo/stage3-amd64-hardened-nomultilib:20180122
COPY --from=portage /usr/portage /usr/portage
RUN set -ex \
    && emerge --info \
    && emerge =sys-apps/portage-2.3.19-r1 \
    && emerge --info \
    && emerge =dev-libs/libassuan-2.5.1
```


The build fails with:
```
ERROR:root:Failed to copy file: _parsed_options=Namespace(group=-1, mode=420, owner=-1), source=b'THANKS', dest_dir=b'/var/tmp/portage/dev-libs/libassuan-2.5.1/image/usr/share/doc/libassuan-2.5.1'
Traceback (most recent call last):
  File "/usr/lib/portage/python3.5/doins.py", line 184, in run
    copyfile(source, dest)
  File "/usr/lib64/python3.5/site-packages/portage/util/file_copy/__init__.py", line 30, in _optimized_copyfile
    _file_copy(src_file.fileno(), dst_file.fileno())
PermissionError: [Errno 1] Operation not permitted
```
Comment 1 Zac Medico gentoo-dev 2018-01-23 18:50:06 UTC
In bug 627374, comment #5 it was reported that `--security-opt seccomp:unconfined` suppresses the issue.

*** This bug has been marked as a duplicate of bug 627374 ***