failed with -- fixup_bundle -- app='/Users/naota/Gentoo/var/tmp/portage/dev-util/cmake-2.8.4-r1/image//Users/naota/Gentoo/usrCMake 2.8-4.app/Contents/MacOS/CMake 2.8-4' -- libs='' -- dirs='/Users/naota/Gentoo/usr/lib/qt4;/Users/naota/Gentoo/usr/bin' -- warning: *NOT* handled - directory/file does not exist... CMake Error at /Users/naota/Gentoo/var/tmp/portage/dev-util/cmake-2.8.4-r1/work/cmake-2.8.4/Modules/BundleUtilities.cmake:657 (message): error: fixup_bundle: not a valid bundle Call Stack (most recent call first): Source/QtDialog/cmake_install.cmake:56 (fixup_bundle) Source/cmake_install.cmake:86 (INCLUDE) cmake_install.cmake:45 (INCLUDE) As you can see, fixup_bundle called with strange path "~/Gentoo/usrCMake 2.8-4.app/...". This might be "~/Gentoo/usr/CMake 2.8-4.app/..." cmake-2.8.4/CMakeLists.txt has the following lines to ensure the directory is separated by "/" STRING(SUBSTRING "${CMAKE_INSTALL_PREFIX}" ${LEN} 1 ENDCH) IF(NOT "${ENDCH}" STREQUAL "/") SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/") ENDIF(NOT "${ENDCH}" STREQUAL "/") SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}${CMAKE_BUNDLE_NAME}.app/Contents") But the SET line is commented out because of our cmake-utils eclass. Reproducible: Always
Created attachment 278835 [details, diff] cmake-2.8.4-bandle-path.patch This solve at least the problem above, but still build fail. -- verified='0' -- info='external prerequisites found: f='/Users/naota/Gentoo/var/tmp/portage/dev-util/cmake-2.8.4-r2/image/Users/naota/Gentoo/usr/CMake 2.8-4.app/Contents/bin/ccmake' external_prereqs='/Users/naota/Gentoo/lib/libz.1.dylib;/Users/naota/Gentoo/usr/lib/libcrypto.1.0.0.dylib' ;external prerequisites found: f='/Users/naota/Gentoo/var/tmp/portage/dev-util/cmake-2.8.4-r2/image/Users/naota/Gentoo/usr/CMake 2.8-4.app/Contents/bin/cmake' external_prereqs='/Users/naota/Gentoo/lib/libz.1.dylib;/Users/naota/Gentoo/usr/lib/libcrypto.1.0.0.dylib' ;external prerequisites found: f='/Users/naota/Gentoo/var/tmp/portage/dev-util/cmake-2.8.4-r2/image/Users/naota/Gentoo/usr/CMake 2.8-4.app/Contents/bin/cmakexbuild' external_prereqs='/Users/naota/Gentoo/lib/libz.1.dylib' ;external prerequisites found: f='/Users/naota/Gentoo/var/tmp/portage/dev-util/cmake-2.8.4-r2/image/Users/naota/Gentoo/usr/CMake 2.8-4.app/Contents/bin/cpack' external_prereqs='/Users/naota/Gentoo/lib/libz.1.dylib;/Users/naota/Gentoo/usr/lib/libcrypto.1.0.0.dylib' ;external prerequisites found: f='/Users/naota/Gentoo/var/tmp/portage/dev-util/cmake-2.8.4-r2/image/Users/naota/Gentoo/usr/CMake 2.8-4.app/Contents/bin/ctest' external_prereqs='/Users/naota/Gentoo/lib/libz.1.dylib;/Users/naota/Gentoo/usr/lib/libcrypto.1.0.0.dylib' ;external prerequisites found: f='/Users/naota/Gentoo/var/tmp/portage/dev-util/cmake-2.8.4-r2/image/Users/naota/Gentoo/usr/CMake 2.8-4.app/Contents/MacOS/CMake 2.8-4' external_prereqs='/Users/naota/Gentoo/lib/libz.1.dylib;/Users/naota/Gentoo/usr/lib/libcrypto.1.0.0.dylib' ' -- CMake Error at /Users/naota/Gentoo/var/tmp/portage/dev-util/cmake-2.8.4-r2/work/cmake-2.8.4/Modules/BundleUtilities.cmake:773 (message): error: verify_app failed Call Stack (most recent call first): /Users/naota/Gentoo/var/tmp/portage/dev-util/cmake-2.8.4-r2/work/cmake-2.8.4/Modules/BundleUtilities.cmake:655 (verify_app) Source/QtDialog/cmake_install.cmake:56 (fixup_bundle) Source/cmake_install.cmake:86 (INCLUDE) cmake_install.cmake:45 (INCLUDE) It seems this check if the libraries linked against the binary are "system" or "embedded", so it doesn't like Gentoo library. Possible fix would be - To disable this test or - To link the libraries statically (I don't have test either yet)
cmake 2.8.5-r2 is installed right here. If that one compiles for you too, do you agree on closing this bug? Thanks
(In reply to comment #2) > cmake 2.8.5-r2 is installed right here. If that one compiles for you too, do > you agree on closing this bug? Thanks hmm, 2.8.5-r2 still failed here with the same error.
odd, can't reproduce this
2.8.6-r3 worked with USE="-qt4" but still not work with USE="qt4"
Is this still occurring with a recent CMake version?