RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1085389 - internal test suite fails when rebuilding the source RPM
Summary: internal test suite fails when rebuilding the source RPM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: acl
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Kamil Dudka
QA Contact: Eva Mrakova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-08 13:37 UTC by Milos Malik
Modified: 2018-04-10 13:13 UTC (History)
2 users (show)

Fixed In Version: acl-2.2.51-14.el7
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-04-10 13:13:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
complete output of rpmbuild --rebuild acl-... (200.83 KB, text/plain)
2014-04-08 13:40 UTC, Milos Malik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0772 0 None None None 2018-04-10 13:13:59 UTC

Description Milos Malik 2014-04-08 13:37:45 UTC
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

Comment 1 Milos Malik 2014-04-08 13:40:52 UTC
Created attachment 884085 [details]
complete output of rpmbuild --rebuild acl-...

Comment 2 Milos Malik 2014-04-08 18:57:35 UTC
# gpasswd -a daemon bin
Adding user daemon to group bin
#

Now the internal test suite passes.

Comment 3 Kamil Dudka 2014-04-14 12:00:20 UTC
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.

Comment 6 Kamil Dudka 2016-05-19 09:24:04 UTC
(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).

Comment 10 Fedora Update System 2017-06-22 07:25:54 UTC
acl-2.2.52-13.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c71743bffc

Comment 11 Fedora Update System 2017-06-22 07:26:06 UTC
acl-2.2.52-15.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2028746562

Comment 12 Fedora Update System 2017-06-23 03:28:49 UTC
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

Comment 13 Fedora Update System 2017-06-23 06:26:22 UTC
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

Comment 14 Fedora Update System 2017-06-23 14:20:18 UTC
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.

Comment 15 Fedora Update System 2017-06-25 21:22:30 UTC
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.

Comment 16 Kamil Dudka 2017-06-26 06:13:26 UTC
Not yet fixed in RHEL-7.

Comment 23 errata-xmlrpc 2018-04-10 13:13:40 UTC
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


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