Bug 768657

Summary: Boost.cmake specifies wrong paths
Product: [Fedora] Fedora EPEL Reporter: Denis Arnaud <denis.arnaud_fedora>
Component: boost141Assignee: Robert Scheck <redhat-bugzilla>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: el5CC: denis.arnaud_fedora, pmachata, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Mac OS   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-17 20:35:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Denis Arnaud 2011-12-17 17:26:45 UTC
Description of problem:
The CMake-related files delivered along with the boost141-devel sub-package specify wrong paths. More specifically, %{_libdir}/boost141/BoostConfig.cmake contains:
--------
 set(Boost_VERSION "1.41.0")
 set(Boost_INCLUDE_DIRS "/usr/include")
 set(Boost_INCLUDE_DIR "/usr/include"
  CACHE FILEPATH "Boost include directory")
 set(Boost_LIBRARY_DIRS "/usr/lib")
 #
 #  Include the imported targets
 #
 include("/usr/lib/boost/Boost.cmake")
--------

However, with Boost141, the include directory is /usr/include/boost141 and the libraries are located in %{_libdir}/boost141.


Version-Release number of selected component (if applicable):
boost141

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:
%{_libdir}/boost141/BoostConfig.cmake should contain:
--------
 set(Boost_VERSION "1.41.0")
 set(Boost_INCLUDE_DIRS "/usr/include/boost141")
 set(Boost_INCLUDE_DIR "/usr/include/boost141"
  CACHE FILEPATH "Boost include directory")
 set(Boost_LIBRARY_DIRS "${LIBDIR}/boost141")
 #
 #  Include the imported targets
 #
 include("${LIBDIR}/boost141/Boost.cmake")
--------
where LIBDIR=/usr/lib or /usr/lib64, depending on the architecture.

Additional info:
I can help with a patch if so needed.

Comment 1 Denis Arnaud 2011-12-17 20:35:59 UTC
The CMake-related files delivered by the boost141-devel sub-package are useless, as the standard FindBoost.cmake helper file does the job when appropriate CMake variables are passed along the build set up command (see bug #768656).

By the way, those CMake-related files could be safely removed at the RPM building time (within the boost141 specification file).