MantisBT - CMake
View Issue Details
0015442CMakeCMakepublic2015-03-13 03:182015-03-17 12:55
Daniel TISCHER 
Domen Vrankar 
normalminoralways
closedfixed 
Linux x64Oracle Linux6.6
CMake 3.2.1 
CMake 3.3 
0015442: Test 124 fails, space before colon in check_file_match_expected_relocation_path
The following tests FAILED:
        124 - CPackComponentsForAll-RPM-IgnoreGroup (Failed)


124: error:
124: '/home/quickbuild/workspace/root/packages/cmake/BUILD/cmake-3.2.1/build/Tests/CPackComponentsForAll/buildRPM-IgnoreGroup/MyLib-1.0.2-Linux-headers.rpm'
124: rpm package relocation path does not match expected value - regex
124: 'Relocations : /usr/foo/bar /usr/foo/bar/include'; RPM output: 'Name :
124: mylib-headers Relocations: /usr/foo/bar /usr/foo/bar/include


[root@jawas ~]# rpm -qpi /home/quickbuild/workspace/root/packages/cmake/BUILD/cmake-3.2.1/build/Tests/CPackComponentsForAll/buildRPM-IgnoreGroup/MyLib-1.0.2-Linux-headers.rpm
Name : mylib-headers Relocations: /usr/foo/bar /usr/foo/bar/include
Version : 1.0.2 Vendor: CMake.org
Release : 1 Build Date: Thu 12 Mar 2015 09:36:37 PM CET

--> there is no space between "Relocations" and colon ":"
run tests
RunCPackVerifyResult.cmake
lines 167, 174, 180, 186

 set(check_file_match_expected_relocation_path "Relocations :
                                                 ----------^

[root@jawas ~]# rpm --version
RPM version 4.8.0
No tags attached.
Issue History
2015-03-13 03:18Daniel TISCHERNew Issue
2015-03-13 03:39Domen VrankarAssigned To => Domen Vrankar
2015-03-13 03:39Domen VrankarStatusnew => assigned
2015-03-15 16:26Domen VrankarNote Added: 0038219
2015-03-15 16:27Domen VrankarStatusassigned => resolved
2015-03-15 16:27Domen VrankarResolutionopen => fixed
2015-03-17 12:55Domen VrankarStatusresolved => closed
2015-03-17 12:55Domen VrankarFixed in Version => CMake 3.3

Notes
(0038219)
Domen Vrankar   
2015-03-15 16:26   
This is automated test bug - CPack/RPM module works correctly on the specified OS with specified rpm version.
Older versions of rpm seem to have different package info output format.

Reported test bug is fixed with commit:
http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4552bc8 [^]

During testing on Oracle Linux 6.6 rpm architecture test also failed.
Fixed with commit:
http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=140a53a [^]