View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009900CMakeCPackpublic2009-11-15 14:172010-10-06 14:40
ReporterEric NOULARD 
Assigned ToEric NOULARD 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.3Fixed in VersionCMake 2.8.3 
Summary0009900: Make CPack generic generator delegate the name of the file to specific generator
DescriptionCurrently 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.
TagsNo tags attached.
Attached Files

 Relationships
related to 0007645closedEric NOULARD Add support of CPack Component to CPack RPM generator 
related to 0010736closedEric NOULARD Enable CPack generators to produce more than one package 
related to 0010130closedEric NOULARD cpack components for non-component generators 
related to 0011656closedDomen Vrankar CPackRPM: Support dependency between RPM component 
related to 0011050closedDomen Vrankar CPack DEB: default to standard Debian package file names 

  Notes
(0020351)
XU Liang (reporter)
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 (developer)
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 (reporter)
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 (developer)
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 (developer)
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.

 Issue History
Date Modified Username Field Change
2009-11-15 14:17 Eric NOULARD New Issue
2010-04-22 11:13 XU Liang Note Added: 0020351
2010-04-22 18:04 Eric NOULARD Relationship added related to 0007645
2010-04-22 18:09 Eric NOULARD Note Added: 0020365
2010-04-24 11:01 XU Liang Note Added: 0020387
2010-05-20 13:36 Eric NOULARD Relationship added related to 0010736
2010-07-21 13:33 Eric NOULARD Note Added: 0021441
2010-08-02 19:04 Eric NOULARD Relationship added related to 0010130
2010-08-21 08:27 Eric NOULARD Status new => assigned
2010-08-21 08:27 Eric NOULARD Assigned To => Eric NOULARD
2010-08-21 08:30 Eric NOULARD Note Added: 0021871
2010-08-21 08:30 Eric NOULARD Status assigned => closed
2010-08-21 08:30 Eric NOULARD Resolution open => fixed
2010-08-21 08:30 Eric NOULARD Fixed in Version => CMake-2-8
2010-08-31 18:03 David Cole Target Version => CMake 2.8.3
2010-10-06 14:40 David Cole Fixed in Version CMake-2-8 => CMake 2.8.3
2011-01-05 02:54 Eric NOULARD Relationship added related to 0011656
2011-06-08 05:32 Eric NOULARD Relationship added related to 0011050


Copyright © 2000 - 2018 MantisBT Team