Red Hat Bugzilla – Bug 1085389
internal test suite fails when rebuilding the source RPM
Last modified: 2018-04-10 09:13:59 EDT
Description of problem: * few unexpected Permission denied messages appears during the rebuild of the source RPM which is the reason why the rebuild process fails Version-Release number of selected component (if applicable): acl-2.2.51-12.el7.src.rpm How reproducible: always (all architectures, does not matter if SELinux is in enforcing or permissive mode) Steps to Reproduce: 1. download acl-2.2.51-12.el7.src.rpm 2. rpmbuild --rebuild acl-2.2.51-12.el7.src.rpm 3. search for errors in the rpmbuild output Actual results: 101 commands (97 passed, 4 failed) gmake[1]: *** [root/permissions.test] Error 4 gmake[1]: Leaving directory `/root/rpmbuild/BUILD/acl-2.2.51/test' make: *** [root-tests] Error 2 + exit 2 error: Bad exit status from /var/tmp/rpm-tmp.DlWgHZ (%check) Expected results: * internal test suite passes
Created attachment 884085 [details] complete output of rpmbuild --rebuild acl-...
# gpasswd -a daemon bin Adding user daemon to group bin # Now the internal test suite passes.
Thanks for the analysis and sorry for the late reply on this, I was on vacation last week. The bug only happens if rpmbuild is run by the root user. mock runs it under a non-privileged user, so the bug does not affect production builds.
(In reply to Milos Malik from comment #2) > # gpasswd -a daemon bin > Adding user daemon to group bin > # > > Now the internal test suite passes. I am afraid that above is the actual fix. It cannot be done from the acl package because the %check section of acl.spec is not supposed to alter the system out of the build root. You simply need to run the command yourself. The upstream test (test/root/permissions.test) is clearly documented to have such a requirement: This script tests if file permissions are properly checked with and without ACLs. The script must be run as root to allow switching users. The following users are required. They must be a member in the groups listed in parentheses. bin (bin) daemon (bin, daemon) The only fix I can implement would be to skip the test in case the requirement is not met (which is not on default RHEL-7).
acl-2.2.52-13.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c71743bffc
acl-2.2.52-15.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2028746562
acl-2.2.52-13.fc25 has been pushed to the Fedora 25 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-2017-c71743bffc
acl-2.2.52-15.fc26 has been pushed to the Fedora 26 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-2017-2028746562
acl-2.2.52-15.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
acl-2.2.52-13.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
Not yet fixed in RHEL-7.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0772