[cmake-developers] [CMake 0012253]: CPack RPM generator cannot handle dependencies with symlinks
Mantis Bug Tracker
mantis at public.kitware.com
Tue Jun 7 10:19:41 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=12253
======================================================================
Reported By: Fabien Spindler
Assigned To:
======================================================================
Project: CMake
Issue ID: 12253
Category: CPack
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-06-07 10:19 EDT
Last Modified: 2011-06-07 10:19 EDT
======================================================================
Summary: CPack RPM generator cannot handle dependencies with
symlinks
Description:
I'm able to produce an rpm package on my fedora 15 x86_64 system with cmake
2.8.4, but when I try to install the package I get the following error:
$ rpm -i libvisp-devel-2.6.1-1.fc15.x86_64.rpm
error: Failed dependencies:
libvisp-2.so.2()(64bit) is needed by libvisp-devel-2.6.1-1.x86_64
libvisp-2 is created as a shared library by cmake:
ADD_LIBRARY(visp-2 ..)
SET_TARGET_PROPERTIES(visp-2 PROPERTIES
VERSION "2.6.1"
SOVERSION "2"
)
INSTALL(TARGETS visp-2
DESTINATION lib
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ OWNER_WRITE
COMPONENT libraries
)
In _CPack_Packages/x86_64/RPM/SPECS/libvisp-devel.spec I have:
Requires: cmake >= 2.6, libX11-devel >= 1.3, lapack-devel >= 3.2, libv4l-devel
>= 0.6.2, libdc1394-devel >= 2.1.2, libxml2-devel >= 2.7.6, libpng-devel >=
2:1.2.44, libjpeg-devel >= 6b-46, Coin2-devel >= 2.5.0, SoQt-devel >= 1.5.0,
opencv-devel >= 2.0
%files
%defattr(-,root,root,-)
"/usr/lib/libvisp-2.so"
"/usr/lib/libvisp-2.so.2"
"/usr/lib/libvisp-2.so.2.6.1"
Here libvisp-2.so and libvisp-2.so.2 are symlinks to libvisp-2.so.2.6.1. The
symlinks are created by cmake.
Note that when I build the library visp-2 as a static library libvisp-2.a, I'm
able to install properly the rpm.
Any suggestion?
Thanks
Fabien
Additional Information:
This bug seems in relation with 0009927: CPack RPM generator does not seem to
install symlinks
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-06-07 10:19 Fabien SpindlerNew Issue
======================================================================
More information about the cmake-developers
mailing list