MantisBT - CMake
View Issue Details
0008342CMakeCPackpublic2009-01-03 12:582010-10-25 14:48
Peter Grasch 
Eric NOULARD 
normalfeaturealways
closedfixed 
CMake-2-6 
CMake-2-8 
0008342: The Deb Generator needs support for the fields Conflicts and Replaces
AFAIK it is currently not possible to let CPack define the very important "Conflicts" and "Replaces" fields in debian packages.

Would it be possible to add the two variables "CPACK_DEBIAN_PACKAGE_CONFLICTS" and "CPACK_DEBIAN_PACKAGE_REPLACES"?
No tags attached.
related to 0011355closed Eric NOULARD [PATCH] Added optional debian binary package fields 
? patch_source_260 (2,126) 2009-03-02 11:02
https://public.kitware.com/Bug/file/2085/patch_source_260
? patch_source_263 (2,124) 2009-03-02 11:02
https://public.kitware.com/Bug/file/2086/patch_source_263
Issue History
2009-01-03 12:58Peter GraschNew Issue
2009-01-29 12:07Bill HoffmanStatusnew => assigned
2009-01-29 12:07Bill HoffmanAssigned To => Mathieu Malaterre
2009-03-02 11:02Michael LasmanisFile Added: patch_source_260
2009-03-02 11:02Michael LasmanisFile Added: patch_source_263
2009-03-02 11:03Michael LasmanisNote Added: 0015490
2009-10-16 21:31João Henrique F. FreitasNote Added: 0018091
2010-07-29 09:04Eric NOULARDNote Added: 0021541
2010-10-23 17:20Petri HodjuNote Added: 0022667
2010-10-23 18:08Eric NOULARDRelationship addedrelated to 0011355
2010-10-25 13:47Eric NOULARDAssigned ToMathieu Malaterre => Eric NOULARD
2010-10-25 14:46Eric NOULARDNote Added: 0022676
2010-10-25 14:48Eric NOULARDNote Added: 0022677
2010-10-25 14:48Eric NOULARDStatusassigned => closed
2010-10-25 14:48Eric NOULARDResolutionopen => fixed
2010-10-25 14:48Eric NOULARDFixed in Version => CMake-2-8

Notes
(0015490)
Michael Lasmanis   
2009-03-02 11:03   
Hi,

I actually just prepped a patch to solve this on my own. I've tested this on the 2.6.0 debian source and the 2.6.0 and 2.6.3 cmake source.

This adds the following directives and the corresponding contol file directives:
CPACK_DEBIAN_PACKAGE_PREDEPENDS -> Pre-Depends:
CPACK_DEBIAN_PACKAGE_ENHANCES -> Enhances:
CPACK_DEBIAN_PACKAGE_BREAKS ->Breaks:
CPACK_DEBIAN_PACKAGE_CONFLICTS -> Conflicts:
CPACK_DEBIAN_PACKAGE_PROVIDES -> Provides:
CPACK_DEBIAN_PACKAGE_REPLACES-> Replaces:

I've attached patches for the 2.6.3 source and the 2.6.0 source. I provided the 2.6.0 patch in case anyone wants to rebuild their existing cmake install on debian/ubuntu from source and add this functionality. I couldn't get a common patch file to work for both trees.

I hope this helps things along.

Cheers
Michael
(0018091)
João Henrique F. Freitas   
2009-10-16 21:31   
Hello,

I need it.

Could a CMake developer do the oficial commit?

Thanks
(0021541)
Eric NOULARD   
2010-07-29 09:04   
I'll try to handle that one.
After some other patches for DEB generator are merged from next to master.

Do any of you be able to create up-to-date patches?
(against git master would be great).

If you do please wait for master to have those:

commit ded3a1585b5a7848df6f6e8e3cf2133aa99719a5
    CPackDeb optionally generates auto-dependency list part fix of bug 10292

commit 5495a6d9756099d5eddfc99c938ab6ba9bd95113
    CPackDEB: merge wrong installed size patch. see bugs 10296 (and 10292)
(0022667)
Petri Hodju   
2010-10-23 17:20   
I just filed a feature request [0011355] related to this one. The patch I included is against the current HEAD [185582d5feb2925975cb669b0874a4a9cbe452d9]. If that gets merged, please give credit to Michael too - my patch is based on his patch.
(0022676)
Eric NOULARD   
2010-10-25 14:46   
The related bug patch has been merged fixing this one at the same time.
(0022677)
Eric NOULARD   
2010-10-25 14:48   
commit a74972402910610ab3ab62066d6b9e65b5202078
Author: Eric NOULARD <eric.noulard@gmail.com>
Date: Mon Oct 25 20:40:45 2010 +0200

    CPackDeb Added several optional debian binary package fields
    
    This fixes bugs 0011355 and 0008342.
    The merged patch is a contribution from Michael Lasmanis and Petri Hodju
    with some extra documentation added by the merger.