Bug 1594397
Summary: | Unable to use mlock() when building | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Omair Majid <omajid> |
Component: | mock | Assignee: | Miroslav Suchý <msuchy> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 28 | CC: | jdisnard, jkeating, mebrown, msimacek, msuchy, praiskup, rjanekov, scx.mail, williams |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-06-25 07:21:44 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Omair Majid
2018-06-22 20:29:23 UTC
Thanks to help from clime over on #fedora-buildsys, I can also reproduce this issue locally using `fedpkg mockbuild`. I had been using `fedpkg local` which was working without any issues. I have: $ mock --version 1.4.11 $ rpm -q mock mock-1.4.11-1.fc28.noarch $ fedpkg mockbuild .... 34 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbd542bb000 34 mlock(0x7fbd542bb000, 4096) = -1 EPERM (Operation not permitted) 34 write(2, "Failed to initialize CoreCLR, HR"..., 49) = 49 .... Adding the following line to a mock-config file makes this work locally: config_opts['nspawn_args'] = ['--capability=CAP_IPC_LOCK'] So, while that works for my local use case, it still doesn't work out of the box. And it doesn't work on copr where I build my packages. *** This bug has been marked as a duplicate of bug 1580435 *** |