Bug 768657 - Boost.cmake specifies wrong paths
Summary: Boost.cmake specifies wrong paths
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: boost141
Version: el5
Hardware: All
OS: Mac OS
medium
medium
Target Milestone: ---
Assignee: Robert Scheck
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-17 17:26 UTC by Denis Arnaud
Modified: 2011-12-17 20:36 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-12-17 20:35:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 673839 0 unspecified CLOSED Review Request: boost141 - The free peer-reviewed portable C++ source libraries 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 768656 0 medium CLOSED Patch FindBoost.cmake in order to find the non-standard Boost-1.41 on EPEL 4/5 2021-02-22 00:41:40 UTC

Internal Links: 673839 768656

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).


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