Bug 768656 - Patch FindBoost.cmake in order to find the non-standard Boost-1.41 on EPEL 4/5
Patch FindBoost.cmake in order to find the non-standard Boost-1.41 on EPEL 4/5
Product: Fedora EPEL
Classification: Fedora
Component: cmake (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Orion Poplawski
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2011-12-17 12:20 EST by Denis Arnaud
Modified: 2011-12-17 15:36 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-12-17 15:31:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Denis Arnaud 2011-12-17 12:20:22 EST
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:

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 15:31:32 EST
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" ..

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