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                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to