Bug 789399

Summary: cmake support for mingw32-boost no longer works
Product: [Fedora] Fedora Reporter: Ted Ross <tross>
Component: mingw32-boostAssignee: Thomas Sailer <fedora>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: erik-fedora, fedora-mingw, fedora, rjones, tross
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-13 19:46:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ted Ross 2012-02-10 17:04:29 UTC
CMake support for locating boost (in mingw32 builds) appears to have been broken in rawhide.

From the mingw32-qpid-cpp package build:

globbed: ../../boost-1.48.0//cmake//BoostConfig.cmake
FOUNDVERSION=1.48.0
CMake Error at /usr/i686-pc-mingw32/sys-root/mingw/share/boost-1.48.0/cmake/BoostConfig.cmake:28 (include):
  include could not find load file:
    /usr/i686-pc-mingw32/sys-root/mingw/lib//Boost.cmake
Call Stack (most recent call first):
  /usr/i686-pc-mingw32/sys-root/mingw/share/cmake/boost/BoostConfig.cmake:15 (include)
  /usr/share/cmake/Modules/FindBoost.cmake:282 (find_package)
  src/CMakeLists.txt:32 (include)
CMake Error at /usr/i686-pc-mingw32/sys-root/mingw/share/boost-1.48.0/cmake/BoostConfig.cmake:87 (message):
  Boost components not found:
  wave;signals;program_options;locale;iostreams;filesystem;unit_test_framework;timer;chrono;system;graph;random;math_c99l;wserialization;regex;thread;date_time
Call Stack (most recent call first):
  /usr/i686-pc-mingw32/sys-root/mingw/share/cmake/boost/BoostConfig.cmake:15 (include)
  /usr/share/cmake/Modules/FindBoost.cmake:282 (find_package)
  src/CMakeLists.txt:32 (include)
-- Configuring incomplete, errors occurred!

Comment 1 Erik van Pienbroek 2012-02-10 19:23:34 UTC
Hi Ted,

While performing the gcc 4.7 mass rebuild for our mingw-w64 based testing repository (https://fedoraproject.org/wiki/Features/Mingw-w64_cross_compiler) we also stumbled across this issue. After some discussion on IRC and some experimenting we found out that the issue can be resolved by removing all .cmake files from the boost package and only depend on the boost detection scripts which are provided by CMake itself. The native boost package also decided to drop the .cmake files (bug 597020) so I think it's safe to also drop these files from the mingw32-boost package.

This change was already applied to the mingw-w64 testing repository and with it the detection of boost by mingw32-qpid-cpp (that's one of your packages right?) works again. I'm currently preparing an update which also applies this change in Fedora 17 and rawhide

Comment 2 Ted Ross 2012-02-10 19:53:30 UTC
Erik,

Thank you for the prompt reply.  I will wait for the updated mingw32-boost package.

Comment 3 Erik van Pienbroek 2012-02-11 00:29:13 UTC
New packages have just been built:
Fedora 17: http://koji.fedoraproject.org/koji/buildinfo?buildID=298886
Rawhide: http://koji.fedoraproject.org/koji/buildinfo?buildID=298884

Does this fix the issue for you?

Comment 4 Ted Ross 2012-02-13 19:27:36 UTC
Yes, thank you.  This bug can be closed.