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 752864 - CPackRPM can not build RPM packages
Summary: CPackRPM can not build RPM packages
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: cmake
Version: 6.0
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Patsy Griffin
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On: 606892
Blocks: 1056252
TreeView+ depends on / blocked
 
Reported: 2011-11-10 16:13 UTC by Daniel Franke
Modified: 2014-10-14 07:11 UTC (History)
7 users (show)

Fixed In Version: cmake-2.8.12.2-2.el6
Doc Type: Bug Fix
Doc Text:
Prior to this update, CMake ignored some options when working with the rpmbuild-4.8 package. As a consequence, building RPM packages on an RPM-based system failed. With this update, CMake works with rpmbuild-4.8 correctly, and the above problem no longer occurs.
Clone Of:
Environment:
Last Closed: 2014-10-14 07:11:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed fix (855 bytes, patch)
2011-11-10 17:12 UTC, Petr Machata
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1506 0 normal SHIPPED_LIVE cmake bug fix and enhancement update 2014-10-14 01:22:34 UTC

Description Daniel Franke 2011-11-10 16:13:07 UTC
Description of problem:
CMake/CPack 2.6.4 does not work well with rpmbuild-4.8 due to an ignored option in the generated spec file, hence building RPM packages on a rpm-based system fails.

Version-Release number of selected component (if applicable):
$> cmake --cersion
cmake version 2.6-patch-4

$> rpmbuild --version
RPM version 4.8.0

Additional info:
See earlier description of the problem and the then suggested fix:
    http://www.cmake.org/pipermail/cmake/2009-June/030035.html
    http://www.cmake.org/pipermail/cmake/2009-March/028301.html
Resolved cmake bug:
    http://public.kitware.com/Bug/view.php?id=8967

Updating the CPackRPM.cmake as indicated in the second ml-link indeed fixed the problem for me.

This might be an incentive to reconsider #606892?

Comment 2 RHEL Program Management 2011-11-10 16:29:15 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 3 Petr Machata 2011-11-10 17:12:17 UTC
Created attachment 532884 [details]
Proposed fix

Thanks for digging out those mails.  I'm attaching what I think might be a fix.

Comment 4 Daniel Franke 2011-11-10 17:24:25 UTC
(In reply to comment #3)
> Created attachment 532884 [details]
> Proposed fix

Yes, this is what I applied to my local files, fixed the problem.
If we could get a bugfix update regardless of comment #2, I'd appreciate it.

Thanks.

Comment 7 RHEL Program Management 2012-02-01 16:44:53 UTC
Quality Engineering Management has reviewed and declined this request.  You may
appeal this decision by reopening this request.

Comment 8 RHEL Program Management 2012-09-07 05:03:12 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 10 Orion Poplawski 2014-03-05 17:14:20 UTC
FYI - cmake28 is available from Fedora EPEL.

Comment 11 Brad Bell 2014-03-06 12:44:46 UTC
Adding
    BuildRequires: cmake28
and changing the
    %build
command from cmake to cmake28 seems to have fixed the problem.

Thanks

Comment 15 errata-xmlrpc 2014-10-14 07:11:12 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.

http://rhn.redhat.com/errata/RHBA-2014-1506.html


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