Bug 1744996 - mock 1.4.17 can't build rhel7 selinux-policy
Summary: mock 1.4.17 can't build rhel7 selinux-policy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-23 12:54 UTC by Tuomo Soini
Modified: 2019-09-26 03:08 UTC (History)
7 users (show)

Fixed In Version: mock-1.4.18-1.fc29 mock-1.4.18-1.fc31 mock-1.4.19-1.fc30 mock-1.4.19-1.el8 mock-1.4.19-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-06 12:58:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tuomo Soini 2019-08-23 12:54:42 UTC
Description of problem:

After update to mock 1.4.17 building rhel7 selinux-policy src.rpm can't be done inside mock

Version-Release number of selected component (if applicable):

1.4.17

How reproducible:

Always

Steps to Reproduce:
1. try to rebuild selinux-policy-3.13.1-252.el7.src.rpm

Actual results:

+ /usr/bin/sepolicy manpage -a -p /builddir/build/BUILDROOT/selinux-policy-3.13.1-252.foo7.1.0.noarch/usr/share/man/man8/ -w -r /builddir/build/BUILDROOT/selinux-policy-3.13.1-252.foo7.1.0.noarch
Traceback (most recent call last):
  File "/usr/bin/sepolicy", line 27, in <module>
    import sepolicy
  File "/usr/lib64/python2.7/site-packages/sepolicy/__init__.py", line 959, in <module>
    raise e
ValueError: No SELinux Policy installed


Expected results:

successful package rebuild

Additional info:

With mock-1.4.16 build still works.

Comment 1 Pavel Raiskup 2019-08-23 14:41:27 UTC
I believe https://github.com/rpm-software-management/mock/pull/315 fixes this bug as well.

Comment 2 Tuomo Soini 2019-08-23 16:13:06 UTC
Building mock with the patch fixed the issue.

Comment 3 Tuomo Soini 2019-08-23 16:20:59 UTC
But it causes new issue, when building something in mock causes:

proc-sys-fs-binfmt_misc.automount to fail.

Comment 4 Pavel Raiskup 2019-08-23 17:35:09 UTC
I'm unable to reproduce this on Fedora nor EPEL (tried the latest
mock with the mentioned patch applied).  Can you provide more info?

Comment 5 Tuomo Soini 2019-08-23 18:07:53 UTC
I rebuild selinux-policy with patched mock. Now tried again, same result:

$ sudo systemctl --state=failed
  UNIT                              LOAD   ACTIVE SUB    DESCRIPTION
● proc-sys-fs-binfmt_misc.automount loaded failed failed Arbitrary Executable File Formats File System Automount Point

So this automount failed second time after mock got selinux-policy build.

Comment 6 Tuomo Soini 2019-08-23 18:12:44 UTC
Minimal command to reproduce:

$ systemctl --state=failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

$ mock -r epel-7-x86_64 init

...

$ systemctl --state=failed
  UNIT                              LOAD   ACTIVE SUB    DESCRIPTION
● proc-sys-fs-binfmt_misc.automount loaded failed failed Arbitrary Executable File Formats File System Automount Point

Comment 7 Tuomo Soini 2019-08-23 18:16:58 UTC
Mock I used was 1.4.17 + patch from pull request 315. And system is centos7 based one.

Comment 8 Pavel Raiskup 2019-08-25 08:55:04 UTC
Thanks for the note!  I updated PR#315 so mock doesn't umount /proc/sys/fs/binfmt_misc.

Comment 9 Fedora Update System 2019-08-27 13:05:44 UTC
FEDORA-2019-f04222503c has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-f04222503c

Comment 10 Fedora Update System 2019-08-27 13:05:53 UTC
FEDORA-2019-21420476c0 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-21420476c0

Comment 11 Fedora Update System 2019-08-27 13:05:54 UTC
FEDORA-EPEL-2019-047f59dd65 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-047f59dd65

Comment 12 Fedora Update System 2019-08-27 13:06:01 UTC
FEDORA-EPEL-2019-09b55870bc has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-09b55870bc

Comment 13 Fedora Update System 2019-08-29 21:01:15 UTC
mock-1.4.18-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-f04222503c

Comment 14 Fedora Update System 2019-08-29 22:23:49 UTC
mock-1.4.18-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-047f59dd65

Comment 15 Fedora Update System 2019-08-30 00:04:13 UTC
mock-1.4.18-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-21420476c0

Comment 16 Fedora Update System 2019-08-30 00:25:20 UTC
mock-1.4.18-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-0b43d7a848

Comment 17 Fedora Update System 2019-08-30 01:38:45 UTC
mock-1.4.18-1.el8 has been pushed to the Fedora EPEL 8 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-09b55870bc

Comment 18 Fedora Update System 2019-09-06 12:58:37 UTC
mock-1.4.18-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2019-09-10 15:04:26 UTC
FEDORA-EPEL-2019-dc67f1a15b has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-dc67f1a15b

Comment 20 Fedora Update System 2019-09-10 15:04:34 UTC
FEDORA-EPEL-2019-48d5120c58 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-48d5120c58

Comment 21 Fedora Update System 2019-09-10 15:04:43 UTC
FEDORA-2019-26635f4002 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-26635f4002

Comment 22 Fedora Update System 2019-09-11 02:59:08 UTC
mock-1.4.19-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-26635f4002

Comment 23 Fedora Update System 2019-09-11 04:20:15 UTC
mock-1.4.19-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-48d5120c58

Comment 24 Fedora Update System 2019-09-11 06:07:21 UTC
mock-1.4.19-1.el8 has been pushed to the Fedora EPEL 8 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-dc67f1a15b

Comment 25 Fedora Update System 2019-09-14 00:06:02 UTC
mock-1.4.18-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.

Comment 26 Fedora Update System 2019-09-14 16:30:27 UTC
mock-1.4.18-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.

Comment 27 Fedora Update System 2019-09-19 01:30:14 UTC
mock-1.4.19-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 28 Fedora Update System 2019-09-26 00:08:56 UTC
mock-1.4.19-1.el8 has been pushed to the Fedora EPEL 8 stable repository. If problems still persist, please make note of it in this bug report.

Comment 29 Fedora Update System 2019-09-26 03:08:08 UTC
mock-1.4.19-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.