Bug 768656

Summary: Patch FindBoost.cmake in order to find the non-standard Boost-1.41 on EPEL 4/5
Product: [Fedora] Fedora EPEL Reporter: Denis Arnaud <denis.arnaud_fedora>
Component: cmakeAssignee: Orion Poplawski <orion>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: el5CC: denis.arnaud_fedora, orion, pertusus, pmachata
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-17 20:31:32 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:20:22 UTC
Description of problem:

It would be nice to update the /usr/share/cmake/Modules/FindBoost.cmake file, part of the cmake-2.6.4 package, so that:
* it can handle Boost versions greater than 1.38
* it can find Boost-1.41 (see bug #673839), which is installed in non standard directories (e.g., /usr/include/boost141, %{_libdir}/boost141).


Version-Release number of selected component (if applicable):
cmake-2.6.4-5.el5.4 on EPEL 5

How reproducible:
Always

Steps to Reproduce:
1. Install boost141-devel on EPEL 5.
2. Remove boost (-1.33) and its dependencies.
3. Try to build some package needing Boost with a CMake-based building system. For instance:
3.1. mkdir -p tmp && cd tmp
3.2. fedpkg clone stdair
3.3. cd stdair
3.4. fedpkg srpm
3.5. fedpkg local

  
Actual results:
Boost141 is not found by the CMake build system.

Expected results:
Boost141 should be found by the CMake build system.

Additional info:

Comment 1 Denis Arnaud 2011-12-17 20:31:32 UTC
The standard FindBoost.cmake file can find Boost-1.41 if setting the appropriate CMake variables. For instance:
mkdir -p build && cd build
cmake -DBOOST_LIBRARYDIR=/usr/lib/boost141 \
 -DBOOST_INCLUDEDIR=/usr/include/boost141 \
 -DBoost_ADDITIONAL_VERSIONS="1.41;1.41.0" ..
works.