Bug 872829 - qyoto FTBFS with cmake-2.8.10
Summary: qyoto FTBFS with cmake-2.8.10
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: qyoto
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-03 16:57 UTC by Rex Dieter
Modified: 2012-11-06 21:53 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-06 21:53:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
KDE Software Compilation 309652 0 None None None 2012-11-06 14:35:24 UTC

Description Rex Dieter 2012-11-03 16:57:54 UTC
qyoto FTBFS using cmake-2.8.10 (regression wrt 2.8.9):

-- checking for one of the modules 'mono-cecil'
-- checking for one of the modules 'cecil'
-- Using GAC dir: /usr/lib/mono
CMake Error: Could not find cmake module file:/home/rdieter1/pkgs.fedoraproject.org/BUILDROOT/qyoto-4.9.3/x86_64-redhat-linux-gnu/CMakeFiles/2.8.10/CMakeCSharpCompiler.cmake
-- Found QScintilla2: /usr/lib64/libqscintilla2.so
-- Found QImageBlitz: /usr/include/qimageblitz  
-- Phonon Version: 4.6.0
-- Found Phonon: /usr/lib64/libphonon.so
-- Found Phonon Includes: /usr/include/KDE;/usr/include
-- hello /usr/lib64
-- Build qyoto bindings: Phonon;QScintilla;QtScript;QtTest;QtUiTools;QtWebKit
-- Skip qyoto bindings: 

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * C# compiler - Mono or the .NET framework
   * QScintilla2 - QScintilla2 libraries
   * QImageBlitz - QImageBlitz library
   * Phonon - Phonon multimedia framework

-----------------------------------------------------------------------------
-- Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Configuring incomplete, errors occurred!

Comment 1 Rex Dieter 2012-11-03 16:59:50 UTC
CC:ing orion

Wrt to
CMake Error: Could not find cmake module file:/home/rdieter1/pkgs.fedoraproject.org/BUILDROOT/qyoto-4.9.3/x86_64-redhat-linux-gnu/CMakeFiles/2.8.10/CMakeCSharpCompiler.cmake

$ ls CMakeFiles/
2.8.10  cmake.check_cache  CMakeCSharpCompiler.cmake  CMakeError.log  CMakeOutput.log  CMakeTmp

$ ls CMakeFiles/2.8.10/
CMakeCCompiler.cmake  CMakeCXXCompiler.cmake  CMakeDetermineCompilerABI_C.bin  CMakeDetermineCompilerABI_CXX.bin  CMakeSystem.cmake  CompilerIdC  CompilerIdCXX


not sure what's going on there, but when using cmake-2.8.9, no subdir exists under CMakeFiles...

Comment 2 Kevin Kofler 2012-11-04 02:33:07 UTC
CMakeCSharpCompiler.cmake is configured from CMakeCSharpCompiler.cmake.in by this command:
configure_file(${script_dir}/CMakeCSharpCompiler.cmake.in
  ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeCSharpCompiler.cmake IMMEDIATE @ONLY)
in cmake/CMakeDetermineCSharpCompiler.cmake.

It looks like the hardcoded destination path there needs to be adjusted for CMake 2.8.10, e.g.:
if (${CMAKE_VERSION} VERSION_LESS "2.8.10")
  set (COMPILER_SUPPORT_SUBDIRECTORY "")
else (${CMAKE_VERSION} VERSION_LESS "2.8.10")
  set (COMPILER_SUPPORT_SUBDIRECTORY "/${CMAKE_VERSION}")
endif (${CMAKE_VERSION} VERSION_LESS "2.8.10")
configure_file(${script_dir}/CMakeCSharpCompiler.cmake.in
  ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}${COMPILER_SUPPORT_SUBDIRECTORY}/CMakeCSharpCompiler.cmake IMMEDIATE @ONLY)

Comment 3 Rex Dieter 2012-11-06 21:53:04 UTC
fixed in 4.9.3-2, using upstream recommendation


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