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.

Bug 1595224

Summary: git fails to build without docs
Product: Red Hat Enterprise Linux 7 Reporter: Kamil Dudka <kdudka>
Component: gitAssignee: Pavel Cahyna <pcahyna>
Status: CLOSED ERRATA QA Contact: Leos Pol <lpol>
Severity: unspecified Docs Contact: Adam Kvitek <akvitek>
Priority: unspecified    
Version: 7.6CC: kdudka, ovasik, pcahyna
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: git-1.8.3.1-16.el7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 11:38:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kamil Dudka 2018-06-26 12:11:30 UTC
Version-Release number of selected component (if applicable):
git-1.8.3.1-15.el7


Steps to Reproduce:
1. brew download-build --arch=src git-1.8.3.1-15.el7
2. rpmbuild --rebuild git-1.8.3.1-15.el7.src.rpm --without docs


Actual results:
Installing git-1.8.3.1-15.el7.src.rpm
[...]
error: - only on numbers
error: /home/kdudka/rpmbuild/SPECS/git.spec:100: bad %if condition


Expected results:
Successful build.

Comment 1 Pavel Cahyna 2018-06-26 12:12:46 UTC
yes, that's why coverity scans fail.

Comment 2 Pavel Cahyna 2018-06-26 12:22:34 UTC
the underlying cause is described here (wrong use of a _with or _without macro): https://www.redhat.com/archives/rpm-list/2002-March/msg00153.html

Comment 9 Leos Pol 2018-07-25 11:14:28 UTC
works with git-1.8.3.1-18.el7

Comment 16 errata-xmlrpc 2018-10-30 11:38:28 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:3275