Bug 752864
| Summary: | CPackRPM can not build RPM packages | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Daniel Franke <franke.daniel> | ||||
| Component: | cmake | Assignee: | Patsy Griffin <pfrankli> | ||||
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 6.0 | CC: | bradbell, jherrman, law, mcermak, pmuller, syeghiay, tlavigne | ||||
| Target Milestone: | rc | Keywords: | 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: |
|
||||||
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. Created attachment 532884 [details]
Proposed fix
Thanks for digging out those mails. I'm attaching what I think might be a fix.
(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. Quality Engineering Management has reviewed and declined this request. You may appeal this decision by reopening this request. 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. FYI - cmake28 is available from Fedora EPEL. Adding
BuildRequires: cmake28
and changing the
%build
command from cmake to cmake28 seems to have fixed the problem.
Thanks
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 |
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?