Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715402 - dev-lang/python test failure trying to remove /usr/lib/python3.7/site-packages/locker.pyc?
Summary: dev-lang/python test failure trying to remove /usr/lib/python3.7/site-package...
Status: RESOLVED DUPLICATE of bug 679628
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-30 08:32 UTC by Agostino Sarubbo
Modified: 2020-04-03 14:31 UTC (History)
0 users

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


Attachments
build.log (build.log,353.44 KB, text/plain)
2020-03-30 08:32 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-03-30 08:32:28 UTC
This is an auto-filled bug because dev-lang/python fails to compile on arm. Feel free to adjust the summary to clarify the exact issue. Attached build log and emerge --info
Comment 1 Agostino Sarubbo gentoo-dev 2020-03-30 08:32:37 UTC
Created attachment 627166 [details]
build.log

build log and emerge --info
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-03-31 08:34:09 UTC
seems minor.
Comment 3 Mike Gilbert gentoo-dev 2020-03-31 14:15:24 UTC
What package owns /usr/lib/python3.7/site-packages/locker.py on your system?
Comment 4 Mike Gilbert gentoo-dev 2020-03-31 14:24:21 UTC
Might be related to this change:

https://github.com/python/cpython/pull/11921
Comment 5 Mike Gilbert gentoo-dev 2020-03-31 14:41:05 UTC
This does seem like a weird one. Let's let someone else confirm it.
Comment 6 Agostino Sarubbo gentoo-dev 2020-03-31 15:07:37 UTC
(In reply to Mike Gilbert from comment #3)
> What package owns /usr/lib/python3.7/site-packages/locker.py on your system?

There isn't this file here.
Comment 7 Mike Gilbert gentoo-dev 2020-03-31 21:57:26 UTC
I can reproduce this with FEATURES="usersandbox". It does not happen with FEATURES="-usersandbox".

I suspect libsandbox is messing a syscall somewhere it shouldn't be. Need further diagnosis.
Comment 8 Mike Gilbert gentoo-dev 2020-03-31 22:02:36 UTC
Actually, this is really just a plain sandbox violation. This function attempts to remove files from every path in sys.path.

https://github.com/python/cpython/blob/v3.7.7/Lib/test/support/__init__.py#L449
Comment 9 Mike Gilbert gentoo-dev 2020-03-31 22:21:51 UTC
Adding PermissionError to this list makes the tests pass under sandbox.

https://github.com/python/cpython/blob/v3.7.7/Lib/test/support/__init__.py#L421
Comment 10 Mike Gilbert gentoo-dev 2020-04-03 14:31:47 UTC

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