Bug 872829

Summary: qyoto FTBFS with cmake-2.8.10
Product: [Fedora] Fedora Reporter: Rex Dieter <rdieter>
Component: qyotoAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: jreznik, kevin, ltinkl, orion, rdieter, rnovacek, than
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-06 21:53:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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