View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011873CMakeCPackpublic2011-02-16 17:132012-01-22 16:39
Reporteryorjo 
Assigned ToEric NOULARD 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0011873: [CPackRPM] %files section in spec file directories
DescriptionCPackRPM doesn't handle symlink directories correctly

For example, my expected directory structured should be:

find -type f -o -type l | sed {s/\\.//}
/lib64/libmccparser.so
/lib64/libmccparser.so.2.0.0
/include/mccparser
/include/mccparser-2.0.0/Version.h
/include/mccparser-2.0.0/mccparser.h

where /include/mccparser is a symlink to /include/mccparser-2.0.0:

However, the produced RPM doesn't include the symlink directory:
rpm -qpl mccparser-2.0.0.rpm
/usr/include/mccparser-2.0.0/Version.h
/usr/include/mccparser-2.0.0/mccparser.h
/usr/lib64/libmccparser.so
/usr/lib64/libmccparser.so.2.0.0

with the side effect that the mccparler-2.0.0 directory is not deleted with an rpm --erase mccparser
Steps To ReproduceUsing cmake-2.8.2

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0025454)
yorjo (reporter)
2011-02-16 17:14

This must be related to the 0009654 issue
(0025456)
Eric NOULARD (developer)
2011-02-17 03:51

Hi,

CPack is using just the same find command:
"find -type f -o -type l"

Could you attached the spec file produced by CPack in your buggy case?
This is the file printed out during CPack run:
CPackRPM: Will use GENERATED spec file: /DATA/ERIC/CMake/CMake-gitted/build/_CPack_Packages/Linux-i686/RPM/SPECS/cmake.spec

The question is does /include/mccparser appear in the %file list ?

I'm not sure that CPackRPM is the culprit, may be rpmbuild is doing something
nasty in this case.

In the meantime you may recreate the symlinks using postinstall script
embbeded in the rpm see:
CPACK_RPM_POST_INSTALL_SCRIPT_FILE
CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE


Would you be able to provide a small self-contained example project
which exhibits the issue?
(0027464)
Eric NOULARD (developer)
2011-09-20 14:36

I need more information on this since
I wasn't able to reproduce the issue with current CMake master
(2.8.6rc3)
(0028390)
Eric NOULARD (developer)
2012-01-22 16:39

Closing because I did not have any feedback after 3 monthes.

 Issue History
Date Modified Username Field Change
2011-02-16 17:13 yorjo New Issue
2011-02-16 17:14 yorjo Note Added: 0025454
2011-02-17 03:14 Eric NOULARD Assigned To => Eric NOULARD
2011-02-17 03:14 Eric NOULARD Status new => assigned
2011-02-17 03:51 Eric NOULARD Note Added: 0025456
2011-09-20 14:36 Eric NOULARD Note Added: 0027464
2011-09-20 14:36 Eric NOULARD Status assigned => feedback
2012-01-22 16:39 Eric NOULARD Note Added: 0028390
2012-01-22 16:39 Eric NOULARD Status feedback => closed
2012-01-22 16:39 Eric NOULARD Resolution open => won't fix


Copyright © 2000 - 2018 MantisBT Team