Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
When attempting to build nss-3.16.2.3-5.el7 and nss-softokn-3.16.2.3-9.el7 on a 32 bit arm environment, it always fails %check.
I realize that RHEL 7 isn't supported on the arm architecture, but the failure happens specifically because someone put in a check that was supposed to work on arm, but has a slight typo.
Version-Release number of selected component (if applicable):
nss-3.16.2.3-5.el7
nss-softokn-3.16.2.3-9.el7
Only these versions. Earlier versions build correctly.
How reproducible:
100% on 32 bit arm.
Steps to Reproduce:
1. rpmbuild -ba nss-softokn-3.16.2.3-9.el7.src.rpm (on a 32 bit arm system)
2. *wait for all the builds and tests to complete*
3.
Actual results:
... build and test output, tests indicate everything passed ...
Unexpected fi
... rest of fail output ...
Expected results:
Finish with built rpms.
Additional info:
===problem code===
else
# test suite is failing on arm and has for a while let's run the test suite but make it non fatal on arm
%ifnarch %{arm}
if [ ${GREP_EXIT_STATUS:-0} -eq 0 ]; then
# while a situation in which grep return status is 0 and it doesn't output
# anything shouldn't happen, set the default to something that is
# obviously wrong (-1)
echo "error: test suite had ${TEST_FAILURES:--1} test failure(s)"
exit 1
else
if [ ${GREP_EXIT_STATUS:-0} -eq 2 ]; then
echo "error: grep has not found log file"
exit 1
else
echo "error: grep failed with exit code: ${GREP_EXIT_STATUS}"
exit 1
fi
fi
%endif
fi
echo "test suite completed"
===solved code===
else
# test suite is failing on arm and has for a while let's run the test suite but make it non fatal on arm
%ifnarch %{arm}
if [ ${GREP_EXIT_STATUS:-0} -eq 0 ]; then
# while a situation in which grep return status is 0 and it doesn't output
# anything shouldn't happen, set the default to something that is
# obviously wrong (-1)
echo "error: test suite had ${TEST_FAILURES:--1} test failure(s)"
exit 1
else
if [ ${GREP_EXIT_STATUS:-0} -eq 2 ]; then
echo "error: grep has not found log file"
exit 1
else
echo "error: grep failed with exit code: ${GREP_EXIT_STATUS}"
exit 1
fi
fi
%else
echo "We are assuming tests passed on arm."
%endif
fi
echo "test suite completed"
===done===
Comment 14Elio Maldonado Batiz
2016-04-20 21:06:14 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://rhn.redhat.com/errata/RHBA-2016-2335.html
Description of problem: When attempting to build nss-3.16.2.3-5.el7 and nss-softokn-3.16.2.3-9.el7 on a 32 bit arm environment, it always fails %check. I realize that RHEL 7 isn't supported on the arm architecture, but the failure happens specifically because someone put in a check that was supposed to work on arm, but has a slight typo. Version-Release number of selected component (if applicable): nss-3.16.2.3-5.el7 nss-softokn-3.16.2.3-9.el7 Only these versions. Earlier versions build correctly. How reproducible: 100% on 32 bit arm. Steps to Reproduce: 1. rpmbuild -ba nss-softokn-3.16.2.3-9.el7.src.rpm (on a 32 bit arm system) 2. *wait for all the builds and tests to complete* 3. Actual results: ... build and test output, tests indicate everything passed ... Unexpected fi ... rest of fail output ... Expected results: Finish with built rpms. Additional info: ===problem code=== else # test suite is failing on arm and has for a while let's run the test suite but make it non fatal on arm %ifnarch %{arm} if [ ${GREP_EXIT_STATUS:-0} -eq 0 ]; then # while a situation in which grep return status is 0 and it doesn't output # anything shouldn't happen, set the default to something that is # obviously wrong (-1) echo "error: test suite had ${TEST_FAILURES:--1} test failure(s)" exit 1 else if [ ${GREP_EXIT_STATUS:-0} -eq 2 ]; then echo "error: grep has not found log file" exit 1 else echo "error: grep failed with exit code: ${GREP_EXIT_STATUS}" exit 1 fi fi %endif fi echo "test suite completed" ===solved code=== else # test suite is failing on arm and has for a while let's run the test suite but make it non fatal on arm %ifnarch %{arm} if [ ${GREP_EXIT_STATUS:-0} -eq 0 ]; then # while a situation in which grep return status is 0 and it doesn't output # anything shouldn't happen, set the default to something that is # obviously wrong (-1) echo "error: test suite had ${TEST_FAILURES:--1} test failure(s)" exit 1 else if [ ${GREP_EXIT_STATUS:-0} -eq 2 ]; then echo "error: grep has not found log file" exit 1 else echo "error: grep failed with exit code: ${GREP_EXIT_STATUS}" exit 1 fi fi %else echo "We are assuming tests passed on arm." %endif fi echo "test suite completed" ===done===