MantisBT - CMake
View Issue Details
0014275CMakeCPackpublic2013-07-07 20:332016-06-06 16:31
Craig Scott 
Eric NOULARD 
normalminoralways
closedfixed 
Linux (64-bit)Fedora18
CMake 2.8.11 
CMake 2.8.12 
0014275: Package manager complains about default changelog details in RPM
When creating a RPM package with cpack, if the user doesn't provide a changelog file, cpack provides a default one with contents something like the following:

* Sun Jul 04 2010 Erk <eric.noulard@gmail.com>
Generated by CPack RPM (no Changelog file were provided)

On some systems (eg Fedora 18), the package manager complains about the form of the first line. The error message is something like this:

*Could not parse header:* 'Erk <eric.noulard@gmail.com>', *expected*: 'Firstname Lastname <email@account.com> - version-release'

The error message is fairly self-explanatory. Can we change the default name format to "firstname lastname" instead of just a single name/pseudonym? It might also be worth testing on multiple linux distributions. I think I've come across this before and had discussions with the package authors (might have been the LSB SDK but I can't find it in their mailing list archives) and IIRC, different linux distributions' package managers might make different assumptions about the form of the changelog message.
No tags attached.
Issue History
2013-07-07 20:33Craig ScottNew Issue
2013-07-07 20:35Craig ScottNote Added: 0033492
2013-07-08 03:29Eric NOULARDAssigned To => Eric NOULARD
2013-07-08 03:29Eric NOULARDStatusnew => assigned
2013-07-08 04:14Eric NOULARDNote Added: 0033494
2013-07-08 04:29Eric NOULARDNote Added: 0033495
2013-07-08 04:40Eric NOULARDNote Added: 0033496
2013-07-08 04:40Eric NOULARDStatusassigned => resolved
2013-07-08 04:40Eric NOULARDResolutionopen => fixed
2013-07-08 04:41Eric NOULARDNote Added: 0033497
2013-07-08 04:41Eric NOULARDStatusresolved => feedback
2013-07-08 04:41Eric NOULARDResolutionfixed => reopened
2013-07-08 04:41Eric NOULARDStatusfeedback => resolved
2013-07-08 04:41Eric NOULARDTarget Version => CMake 2.8.12
2013-12-02 08:51Robert MaynardNote Added: 0034635
2013-12-02 08:51Robert MaynardStatusresolved => closed
2016-06-06 16:31Brad KingResolutionreopened => fixed

Notes
(0033492)
Craig Scott   
2013-07-07 20:35   
The following might be relevant:

http://public.kitware.com/Bug/view.php?id=10741#c21221 [^]
(0033494)
Eric NOULARD   
2013-07-08 04:14   
Checking the conformity of CPack generated RPM is far from perfect,
we could try to use some tool in order to enhance that:
http://sourceforge.net/projects/rpmlint/?source=dlp [^]

That said, concerning the generated changelog line I'll try to fix it soon.
(0033495)
Eric NOULARD   
2013-07-08 04:29   
Concerning distribution specific w.r.t. Changelog format
I guess that you are right each distribution has its own,
e.g. Fedora one:
http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/Packagers_Guide/sect-Packagers_Guide-Creating_a_Basic_Spec_File.html [^]

If ever the CPack generated Changelog cannot satisfy all distros-specific prerequisiste one can always use: CPACK_RPM_CHANGELOG_FILE in order ot provide
an appropriate changelog file.

cpack --help-variable CPACK_RPM_CHANGELOG_FILE
(0033496)
Eric NOULARD   
2013-07-08 04:40   
Merge topic 'CPack-fixGeneratedChangelogFormat' into next

976e51d CPackRPM make the changelog line conform to expected format
(0033497)
Eric NOULARD   
2013-07-08 04:41   
Forgot to update target version
(0034635)
Robert Maynard   
2013-12-02 08:51   
Closing resolved issues that have not been updated in more than 4 months.