Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645462 - portage 2.3.19 breaks builds on docker with overlay2 driver
Summary: portage 2.3.19 breaks builds on docker with overlay2 driver
Status: RESOLVED DUPLICATE of bug 627374
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 635020
  Show dependency tree
 
Reported: 2018-01-23 17:59 UTC by Calin Don
Modified: 2018-01-23 18:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***