[CMake] CMake 3.7: Test #379: RunCMake.CPack_RPM fails

Christoph Grüninger foss at grueninger.de
Sat Nov 12 08:38:06 EST 2016


Dear CMake folks,
I am trying to package CMake for openSuse. I was a bit surprised that
the new dependency libuv was nowhere mentioned. Can it be disabled by a
configure switch for older systems?

CMake 3.7 compiles so far, but test #379 (RunCMake.CPack_RPM) fails, see
the error below from OBS. I had a brief look at our patches and I am apt
to think they are unrelated.
Can someone have a look and give some hint?

Sorry that I didn't test already the RCs.

Bye
Christoph



> [ 1041s] 412/413 Test #413: CMake.GetPrerequisites ...........................   Passed    0.61 sec
> [ 1067s] 413/413 Test #379: RunCMake.CPack_RPM ...............................***Failed   48.75 sec
> [ 1067s] -- MINIMAL - PASSED
> [ 1067s] -- RPM/MINIMAL - PASSED
> [ 1067s] -- SOURCE_PACKAGE - PASSED
> [ 1067s] -- SOURCE_PACKAGE-Build - PASSED
> [ 1067s] -- RPM/SOURCE_PACKAGE - PASSED
> [ 1067s] -- PARTIALLY_RELOCATABLE_WARNING - PASSED
> [ 1067s] -- RPM/PARTIALLY_RELOCATABLE_WARNING - PASSED
> [ 1067s] -- DEPENDENCIES - PASSED
> [ 1067s] -- DEPENDENCIES-Build - PASSED
> [ 1067s] -- RPM/DEPENDENCIES - PASSED
> [ 1067s] -- EMPTY_DIR - PASSED
> [ 1067s] -- EMPTY_DIR-Build - PASSED
> [ 1067s] -- RPM/EMPTY_DIR - PASSED
> [ 1067s] -- COMPONENTS_EMPTY_DIR - PASSED
> [ 1067s] -- COMPONENTS_EMPTY_DIR-Build - PASSED
> [ 1067s] -- RPM/COMPONENTS_EMPTY_DIR - PASSED
> [ 1067s] -- CUSTOM_NAMES - PASSED
> [ 1067s] -- CUSTOM_NAMES-Build - PASSED
> [ 1067s] -- RPM/CUSTOM_NAMES - PASSED
> [ 1067s] -- PER_COMPONENT_FIELDS - PASSED
> [ 1067s] -- RPM/PER_COMPONENT_FIELDS - PASSED
> [ 1067s] -- RPM_DIST - PASSED
> [ 1067s] -- RPM/RPM_DIST - PASSED
> [ 1067s] -- INSTALL_SCRIPTS - PASSED
> [ 1067s] -- RPM/INSTALL_SCRIPTS - PASSED
> [ 1067s] -- DEBUGINFO - PASSED
> [ 1067s] -- DEBUGINFO-Build - PASSED
> [ 1067s] CMake Error at RunCMake.cmake:130 (message):
> [ 1067s]   RPM/DEBUGINFO - FAILED:
> [ 1067s] 
> [ 1067s]   Result is [1], not [0].
> [ 1067s] 
> [ 1067s]   stderr does not match that expected.
> [ 1067s] 
> [ 1067s]   Command was:
> [ 1067s] 
> [ 1067s]    command> "/home/abuild/rpmbuild/BUILD/cmake-3.7.0/bin/cmake" "-DRunCMake_TEST=DEBUGINFO" "-DRunCMake_TEST_FILE_PREFIX=DEBUGINFO" "-DRunCMake_SUBTEST_SUFFIX=" "-DGENERATOR_TYPE=RPM" "-Dsrc_dir=/home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/CPack" "-Dbin_dir=/home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/RPM/CPack/DEBUGINFO-build" "-Dconfig_file=/home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/CPack/conf/RPM_config.cmake" "-P" "/home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/CPack/VerifyResult.cmake"
> [ 1067s] 
> [ 1067s]   Actual stdout:
> [ 1067s] 
> [ 1067s]    actual-out> 
> [ 1067s] 
> [ 1067s]   Expected stderr to match:
> [ 1067s] 
> [ 1067s]    expect-err> ^CPackRPM: Will use GENERATED spec file: .*/Tests/RunCMake/RPM/CPack/DEBUGINFO-build/_CPack_Packages/.*/RPM/SPECS/debuginfo-applications.spec
> [ 1067s]    expect-err> CPackRPM: Will use GENERATED spec file: .*/Tests/RunCMake/RPM/CPack/DEBUGINFO-build/_CPack_Packages/.*/RPM/SPECS/debuginfo-headers.spec
> [ 1067s]    expect-err> CPackRPM: Will use GENERATED spec file: .*/Tests/RunCMake/RPM/CPack/DEBUGINFO-build/_CPack_Packages/.*/RPM/SPECS/debuginfo-libs.spec$
> [ 1067s] 
> [ 1067s]   Actual stderr:
> [ 1067s] 
> [ 1067s]    actual-err> CMake Error at /home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/CPack/VerifyResult.cmake:30 (message):
> [ 1067s]    actual-err>   Unexpected file content for file No.  '4'!
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>    Content: '/usr/lib/debug
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   /usr/lib/debug/.build-id
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   /usr/lib/debug/.build-id/66/e61cff8c1b481720b2f65873db6c559fe1138a
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   /usr/lib/debug/.build-id/66/e61cff8c1b481720b2f65873db6c559fe1138a.debug
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   /usr/lib/debug/usr/foo/test_prog.debug'
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>    Expected: '.*/src[	
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   
>  ]*/src/src_1[	
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   
>  ]*/src/src_1/main.cpp.*'
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack output: 'CPack: Create package using RPM
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: Install projects
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: - Run preinstall target for: DEBUGINFO
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: - Install project: DEBUGINFO
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: - Install component: applications
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: - Install component: headers
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: - Install component: libs
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: Create package
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: - package:
> [ 1067s]    actual-err>   /home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/RPM/CPack/DEBUGINFO-build/debuginfo-0.1.1-Linux-headers.rpm
> [ 1067s]    actual-err>   generated.
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: - package:
> [ 1067s]    actual-err>   /home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/RPM/CPack/DEBUGINFO-build/debuginfo-applications-0.1.1-1.x86_64.rpm
> [ 1067s]    actual-err>   generated.
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: - package:
> [ 1067s]    actual-err>   /home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/RPM/CPack/DEBUGINFO-build/debuginfo-applications-debuginfo-0.1.1-1.x86_64.rpm
> [ 1067s]    actual-err>   generated.
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: - package:
> [ 1067s]    actual-err>   /home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/RPM/CPack/DEBUGINFO-build/debuginfo-0.1.1-Linux-libs.rpm
> [ 1067s]    actual-err>   generated.
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack: - package:
> [ 1067s]    actual-err>   /home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/RPM/CPack/DEBUGINFO-build/debuginfo-libs-debuginfo-0.1.1-1.x86_64.rpm
> [ 1067s]    actual-err>   generated.
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   '
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack error: 'CPackRPM: Will use GENERATED spec file:
> [ 1067s]    actual-err>   /home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/RPM/CPack/DEBUGINFO-build/_CPack_Packages/Linux/RPM/SPECS/debuginfo-applications.spec
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPackRPM: Will use GENERATED spec file:
> [ 1067s]    actual-err>   /home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/RPM/CPack/DEBUGINFO-build/_CPack_Packages/Linux/RPM/SPECS/debuginfo-headers.spec
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPackRPM: Will use GENERATED spec file:
> [ 1067s]    actual-err>   /home/abuild/rpmbuild/BUILD/cmake-3.7.0/Tests/RunCMake/RPM/CPack/DEBUGINFO-build/_CPack_Packages/Linux/RPM/SPECS/debuginfo-libs.spec
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   ';
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   CPack result: '';
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   config file: 'set(RPM_EXECUTABLE "/bin/rpm")
> [ 1067s]    actual-err> 
> [ 1067s]    actual-err>   set(RPMBUILD_EXECUTABLE "/usr/bin/rpmbuild")'
> [ 1067s] 
> [ 1067s] Call Stack (most recent call first):
> [ 1067s]   RunCMake.cmake:144 (run_cmake)
> [ 1067s]   CPack/CPackTestHelpers.cmake:69 (run_cmake_command)
> [ 1067s]   CPack/CPackTestHelpers.cmake:85 (run_cpack_test_common_)
> [ 1067s]   CPack/RunCMakeTest.cmake:20 (run_cpack_test)
> [ 1067s] 
> [ 1067s] 
> [ 1067s] 
> [ 1067s] 
> [ 1067s] 99% tests passed, 1 tests failed out of 413
> [ 1067s] 
> [ 1067s] Label Time Summary:
> [ 1067s] Label1    =   0.08 sec (1 test)
> [ 1067s] Label2    =   0.08 sec (1 test)
> [ 1067s] 
> [ 1067s] Total Test time (real) = 556.51 sec
> [ 1067s] 
> [ 1067s] The following tests FAILED:
> [ 1067s] 	379 - RunCMake.CPack_RPM (Failed)
> [ 1067s] Errors while running CTest
> [ 1067s] error: Bad exit status from /var/tmp/rpm-tmp.YXAv4k (%check)



More information about the CMake mailing list