Bug 768656 - Patch FindBoost.cmake in order to find the non-standard Boost-1.41 on EPEL 4/5
Summary: Patch FindBoost.cmake in order to find the non-standard Boost-1.41 on EPEL 4/5
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: cmake
Version: el5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-17 17:20 UTC by Denis Arnaud
Modified: 2011-12-17 20:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-17 20:31:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 768657 0 medium CLOSED Boost.cmake specifies wrong paths 2021-02-22 00:41:40 UTC

Internal Links: 673839 768657

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.


Note You need to log in before you can comment on or make changes to this bug.