Bug 768657 - Boost.cmake specifies wrong paths
Boost.cmake specifies wrong paths
Status: CLOSED WONTFIX
Product: Fedora EPEL
Classification: Fedora
Component: boost141 (Show other bugs)
el5
All Mac OS
medium Severity medium
: ---
: ---
Assigned To: Robert Scheck
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-17 12:26 EST by Denis Arnaud
Modified: 2011-12-17 15:36 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-12-17 15:35:59 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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:26:45 EST
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 15:35:59 EST
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.