MantisBT - CMake
View Issue Details
0009900CMakeCPackpublic2009-11-15 14:172010-10-06 14:40
Eric NOULARD 
Eric NOULARD 
normalfeaturealways
closedfixed 
CMake-2-8 
CMake 2.8.3CMake 2.8.3 
0009900: Make CPack generic generator delegate the name of the file to specific generator
Currently CPack generic impose to the specific generator
the name of the generated file.

This is double problem because:
   1) The specific generator may be the one to know the exact name he wants
   2) The specific generator may generate several files in the
      case of CPack component support
      cf http://public.kitware.com/Bug/view.php?id=7645 [^]

I propose change the CPack generic Generator API in order to make it possible
to for CPack generic generator to get back the name(s) chosen by the generic
generator AFTER the specific compressFile call.

I'll propose a patch some day.
No tags attached.
related to 0007645closed Eric NOULARD Add support of CPack Component to CPack RPM generator 
related to 0010736closed Eric NOULARD Enable CPack generators to produce more than one package 
related to 0010130closed Eric NOULARD cpack components for non-component generators 
related to 0011656closed Domen Vrankar CPackRPM: Support dependency between RPM component 
related to 0011050closed Domen Vrankar CPack DEB: default to standard Debian package file names 
Issue History
2009-11-15 14:17Eric NOULARDNew Issue
2010-04-22 11:13XU LiangNote Added: 0020351
2010-04-22 18:04Eric NOULARDRelationship addedrelated to 0007645
2010-04-22 18:09Eric NOULARDNote Added: 0020365
2010-04-24 11:01XU LiangNote Added: 0020387
2010-05-20 13:36Eric NOULARDRelationship addedrelated to 0010736
2010-07-21 13:33Eric NOULARDNote Added: 0021441
2010-08-02 19:04Eric NOULARDRelationship addedrelated to 0010130
2010-08-21 08:27Eric NOULARDStatusnew => assigned
2010-08-21 08:27Eric NOULARDAssigned To => Eric NOULARD
2010-08-21 08:30Eric NOULARDNote Added: 0021871
2010-08-21 08:30Eric NOULARDStatusassigned => closed
2010-08-21 08:30Eric NOULARDResolutionopen => fixed
2010-08-21 08:30Eric NOULARDFixed in Version => CMake-2-8
2010-08-31 18:03David ColeTarget Version => CMake 2.8.3
2010-10-06 14:40David ColeFixed in VersionCMake-2-8 => CMake 2.8.3
2011-01-05 02:54Eric NOULARDRelationship addedrelated to 0011656
2011-06-08 05:32Eric NOULARDRelationship addedrelated to 0011050

Notes
(0020351)
XU Liang   
2010-04-22 11:13   
Maybe we can generate a tar that include all component RPMs.
What can I help this issue?
(0020365)
Eric NOULARD   
2010-04-22 18:09   
I'm not sure to understand your proposal but
bundling all components in a single tar that
would get put in a single RPM wouldn't seem like
a component to me?

Again may be I'm wrong, what do you propose to do?
(0020387)
XU Liang   
2010-04-24 11:01   
Sorry for my bad English.

My propose is we can generate some RPMs that bundle a single component, then we pack all RPMs to a single tar. it's a work-around solution.
(0021441)
Eric NOULARD   
2010-07-21 13:33   
The problem of naming the package filename produced by CPack
is poppin-up again and again on the ML:

The name of the package file is currently driven by the value of
CPACK_PACKAGE_FILE_NAME (this the name of the file without the extension).

If the user does not set this variable CPack.cmake is setting it to be
${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}

The user may override this name inside its CMakeLists.txt.

Whatever the solution, specific generator (RPM, DEB, TGZ etc...)
may not currently change the name. This is the root of the issue
because sometimes the name convention may be different depending
on the package type (e.g. .deb and .rpm have different naming convention).
(0021871)
Eric NOULARD   
2010-08-21 08:30   
CPack-APIredesign branch has been merged to master

commit cc2ba7f9c283a28804967820fa8f212f630d6aa8
Merge: 57c5bf5 bd510fe
Author: Brad King <brad.king@kitware.com>
Date: Tue Aug 17 15:12:42 2010 -0400

    Merge topic 'CPack-APIredesign'
    
    bd510fe CPack: Avoid member shadowing after API refactor (part2)
    31a313d CPack: Avoid member shadowing after API refactor
    cd7b8a0 CPack: Refactor API in order to handle multi-file packages

This makes it possible to let the specific generator decide the number
and the name of the generated packages.