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 1530206 - RPM packages are supposed to be built in %build
Summary: RPM packages are supposed to be built in %build
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libyami
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Josef Ridky
QA Contact: Leos Pol
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-02 09:14 UTC by Dhiru Kholia
Modified: 2018-04-10 19:01 UTC (History)
3 users (show)

Fixed In Version: libyami-1.2.0-2.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 19:01:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:1022 0 None None None 2018-04-10 19:01:34 UTC

Description Dhiru Kholia 2018-01-02 09:14:56 UTC
Description of problem:

The libyami.spec file is missing a call to "make" in the %build section.

Here is a patch to fix this problem,

diff --git a/libyami.spec b/libyami.spec
index ca427c7..ab52331 100644
--- a/libyami.spec
+++ b/libyami.spec
@@ -24,6 +24,7 @@ autoreconf -vif

 %build
 %configure --disable-static
+make %{?_smp_mflags}


 %install


Actual results:

rpmbuild -bc libyami.spec builds nothing.


Additional info:

This flaw prevents the package from being automatically scanned by covscan.

This bug is similar to the following bugs,

https://bugzilla.redhat.com/708157
https://bugzilla.redhat.com/796114
https://bugzilla.redhat.com/1038268

This bug was diagnosed by kdudka too.

Comment 5 Kamil Dudka 2018-01-15 14:00:14 UTC
Thanks to all involved!  I can confirm that Covscan now works with this package.

Comment 6 Leos Pol 2018-02-15 09:48:36 UTC
$ rpm -i libyami-1.2.0-2.el7.src.rpm 
$ rpmbuild -bc rpmbuild/SPECS/libyami.spec 
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4FnvGa
...
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3M6f8l
...
+ exit 0

Comment 9 errata-xmlrpc 2018-04-10 19:01:10 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/RHEA-2018:1022


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