Bug 752864

Summary: CPackRPM can not build RPM packages
Product: Red Hat Enterprise Linux 6 Reporter: Daniel Franke <franke.daniel>
Component: cmakeAssignee: Patsy Griffin <pfrankli>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: bradbell, jherrman, law, mcermak, pmuller, syeghiay, tlavigne
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 07:11:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 606892    
Bug Blocks: 1056252    
Attachments:
Description Flags
Proposed fix none

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