Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686852 - sys-apps/dtc-1.5.0 - sandbox access violation in /usr/lib64/python2.7/site-packages/_libfdt.so by usr/lib/python-exec/python2.7/python2 pylibfdt/setup.py install --prefix=/usr
Summary: sys-apps/dtc-1.5.0 - sandbox access violation in /usr/lib64/python2.7/site-pa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-27 14:21 UTC by m0wer
Modified: 2020-07-07 06:55 UTC (History)
2 users (show)

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 m0wer 2019-05-27 14:21:10 UTC
Can't emerge =sys-apps/dtc-1.5.0 because of a sandbox access violation when trying to symlink `build/lib.linux-x86_64-2.7/_libfdt.so -> /usr/lib64/python2.7/site-packages`.

Error: `* ACCESS DENIED:  fopen_wr:     /usr/lib64/python2.7/site-packages/_libfdt.so`

```
running install_lib
copying build/lib.linux-x86_64-2.7/_libfdt.so -> /usr/lib64/python2.7/site-packages
 * ACCESS DENIED:  fopen_wr:     /usr/lib64/python2.7/site-packages/_libfdt.so
error: [Errno 13] Permission denied: '/usr/lib64/python2.7/site-packages/_libfdt.so'
make[1]: *** [pylibfdt/Makefile.pylibfdt:24: install_pylibfdt] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-apps/dtc-1.5.0/work/dtc-1.5.0'
make: *** [Makefile:231: maybe_install_pylibfdt] Error 2
```

```
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-4.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: fopen_wr
S: deny
P: /usr/lib64/python2.7/site-packages/_libfdt.so
A: /usr/lib64/python2.7/site-packages/_libfdt.so
R: /usr/lib64/python2.7/site-packages/_libfdt.so
C: /usr/lib/python-exec/python2.7/python2 pylibfdt/setup.py install --prefix=/usr 
 * --------------------------------------------------------------------------------
```
Comment 1 m0wer 2019-06-07 14:18:30 UTC
ping
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-07-06 22:59:33 UTC
If it still happens for you can you attach build.log and emerge --info? I'm a bit surprised pkg-config was able to find your python.
Comment 3 Larry the Git Cow gentoo-dev 2020-07-07 06:55:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a956d8d3efcc4f50aaf40f222fdca39d8547aea

commit 7a956d8d3efcc4f50aaf40f222fdca39d8547aea
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-07-07 06:54:45 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-07-07 06:54:55 +0000

    sys-apps/dtc: be explicit about disabling python
    
    Reported-by: m0wer
    Closes: https://bugs.gentoo.org/686852
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-apps/dtc/dtc-1.5.0-r2.ebuild | 3 ++-
 sys-apps/dtc/dtc-9999.ebuild     | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)