[cmake-developers] [CMake 0013423]: CPACK_RPM_PACKAGE_SUGGESTS has no effect

Mantis Bug Tracker mantis at public.kitware.com
Thu Jul 19 07:27:23 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13423 
====================================================================== 
Reported By:                mmarx
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13423
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-07-19 13:27 CEST
Last Modified:              2012-07-19 13:27 CEST
====================================================================== 
Summary:                    CPACK_RPM_PACKAGE_SUGGESTS has no effect
Description: 
When the parameter CPACK_RPM_PACKAGE_SUGGESTS defined in a cpack configuration
file and lists packages, this value is not used to create the RPM spec file so
that as a result the RPM is not suggesting the listed packages.

Here is a patch that fixes this issue:
---------------
--- 2.8.8orig/CPackRPM.cmake	2012-07-19 11:08:25.077945198 +0200
+++ 2.8.8modified/CPackRPM.cmake	2012-07-19 10:58:56.335934131 +0200
@@ -814,6 +814,7 @@
 Vendor:         \@CPACK_RPM_PACKAGE_VENDOR\@
 \@TMP_RPM_URL\@
 \@TMP_RPM_REQUIRES\@
+\@TMP_RPM_SUGGESTS\@
 \@TMP_RPM_PROVIDES\@
 \@TMP_RPM_OBSOLETES\@
 \@TMP_RPM_CONFLICTS\@
---------------

Steps to Reproduce: 
1. Define CPACK_RPM_PACKAGE_SUGGESTS inside your cpack config file
2. Package an RPM with this config
3. The resulting RPM has no "Suggests" packages listed, check with "rpm -qp
--suggests <file>.rpm"
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-07-19 13:27 mmarx          New Issue                                    
======================================================================




More information about the cmake-developers mailing list