[cmake-developers] [CMake 0015209]: RPM generation chokes on directory symlinks with latest rpmbuild

Mantis Bug Tracker mantis at public.kitware.com
Thu Oct 16 09:10:29 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15209 
====================================================================== 
Reported By:                Luc J. Bourhis
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15209
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-10-16 09:10 EDT
Last Modified:              2014-10-16 09:10 EDT
====================================================================== 
Summary:                    RPM generation chokes on directory symlinks with
latest rpmbuild
Description: 
As stated here (https://bugzilla.redhat.com/show_bug.cgi?id=1005529), the
following specs file is no more legal as of rpmbuild 4.11

%files
%dir xxx
yyy/

when xxx or yyy are directory symlinks instead of proper directories.
Unfortunately CPack has not been taught that and it generates %dir xxx for a
directory symlink xxx.

Steps to Reproduce: 
Using the CMakeLists.txt attached to this bug report, issue "make package", on a
Linux machine with rpmbuild 4.11 (I tested with Fedora 20). You should get the
following error message:

error: Not a directory:
/home/luc/Developer/sandbox/build/_CPack_Packages/Linux/RPM/it-will-fail-0.1.1-Linux/usr/usr/share/test/project/subdir
    Not a directory:
/home/luc/Developer/sandbox/build/_CPack_Packages/Linux/RPM/it-will-fail-0.1.1-Linux/usr/usr/share/test/project/subdir

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-10-16 09:10 Luc J. Bourhis New Issue                                    
2014-10-16 09:10 Luc J. Bourhis File Added: CMakeLists.txt                    
======================================================================




More information about the cmake-developers mailing list