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 1200856 - nss and nss-softokn will not build on arm, typo in %check
Summary: nss and nss-softokn will not build on arm, typo in %check
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nss
Version: 7.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: nss-nspr-maint
QA Contact: Hubert Kario
URL:
Whiteboard:
Depends On:
Blocks: 1277314 1335689
TreeView+ depends on / blocked
 
Reported: 2015-03-11 14:08 UTC by Troy Dawson
Modified: 2016-11-04 03:55 UTC (History)
5 users (show)

Fixed In Version: nss-3.21.0-15.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1335689 (view as bug list)
Environment:
Last Closed: 2016-11-04 03:55:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
nss.spec changes - in patch format (1.41 KB, patch)
2016-04-20 21:06 UTC, Elio Maldonado Batiz
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2335 0 normal SHIPPED_LIVE nss bug fix update 2016-11-03 13:45:11 UTC

Description Troy Dawson 2015-03-11 14:08:35 UTC
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 14 Elio Maldonado Batiz 2016-04-20 21:06:14 UTC
Created attachment 1149206 [details]
nss.spec changes - in patch format

Comment 22 errata-xmlrpc 2016-11-04 03:55:15 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


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