MantisBT - CMake
View Issue Details
0013488CMakeCPackpublic2012-08-24 04:572015-11-02 09:15
Stanislav Ravas 
Raffi Enficiaud 
normalmajoralways
closedfixed 
LinuxDebian6.0 (squeeze)
CMake 2.8.9 
CMake 3.3 
0013488: Patch for CPack Debian generator (fix to the auto-dependecy support via dpkg-shlibdeps)
When the package contains no binary files, dpkg-shlibdeps is run without executable path(mandatory argument) and fails, package build is aborted.

This is especially a problem when building multiple packages per project (component install).

I attach the patch: When there are no binary files, dpkg-shlibdeps is not run at all.
Create cmake project with multiple components. Ensure that at least one component contains no binary files (contains doc, sources, ...).

When you run cpack -G DEB(or make package), build fails.
No tags attached.
has duplicate 0013232closed Raffi Enficiaud CPackDeb fails on dependency auto-gen if any component does not contain any ELF binaries 
patch cpackdeb-rupN-2.patch (1,724) 2012-08-24 05:07
https://public.kitware.com/Bug/file/4437/cpackdeb-rupN-2.patch
Issue History
2012-08-24 04:57Stanislav RavasNew Issue
2012-08-24 04:57Stanislav RavasFile Added: cpackdeb.patch
2012-08-24 05:01Stanislav RavasFile Added: cpackdeb-rupN.patch
2012-08-24 05:01Stanislav RavasNote Added: 0030753
2012-08-24 05:04Eric NOULARDAssigned To => Eric NOULARD
2012-08-24 05:04Eric NOULARDStatusnew => assigned
2012-08-24 05:07Stanislav RavasNote Added: 0030754
2012-08-24 05:07Stanislav RavasFile Added: cpackdeb-rupN-2.patch
2012-08-24 05:09Eric NOULARDFile Deleted: cpackdeb.patch
2012-08-24 05:09Eric NOULARDFile Deleted: cpackdeb-rupN.patch
2012-08-24 05:14Eric NOULARDNote Added: 0030755
2015-05-18 03:37Raffi EnficiaudNote Added: 0038757
2015-05-18 03:38Raffi EnficiaudRelationship addedhas duplicate 0013232
2015-05-18 03:39Raffi EnficiaudAssigned ToEric NOULARD => Raffi Enficiaud
2015-05-18 11:29Domen VrankarNote Added: 0038765
2015-05-18 11:29Domen VrankarStatusassigned => resolved
2015-05-18 11:29Domen VrankarFixed in Version => CMake 3.3
2015-05-18 11:29Domen VrankarResolutionopen => fixed
2015-11-02 09:15Robert MaynardNote Added: 0039813
2015-11-02 09:15Robert MaynardStatusresolved => closed

Notes
(0030753)
Stanislav Ravas   
2012-08-24 05:01   
Added the same patch generated with -rupN arguments.
(0030754)
Stanislav Ravas   
2012-08-24 05:07   
Ignore initial 2 patches, they were reversed and I don't know how to delete them.

Use patch cpackdeb-rupN-2.patch.
(0030755)
Eric NOULARD   
2012-08-24 05:14   
Only developer can make some action on the bug tracker
(including deleting attachment).

I just did it.
Thank you for your contribution,
I'll review it soon.
(0038757)
Raffi Enficiaud   
2015-05-18 03:37   
The latests changes in CPackDEB allow to specify the shlibdeps feature per component.
(0038765)
Domen Vrankar   
2015-05-18 11:29   
Fixed with commit:

http://www.cmake.org/gitweb?p=cmake.git;a=commit;h=4588a16 [^]
(0039813)
Robert Maynard   
2015-11-02 09:15   
Closing resolved issues that have not been updated in more than 4 months.