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

2016-11-15 Thread Domen Vrankar
2016-11-15 15:16 GMT+01:00 Christoph Grüninger :

> Hi Domen,
> thanks for your answer.
>
> > > 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?
> >
> >
> > I'll test it today in the afternoon but for now since sources are
> > missing from the package I'm guessing that debuginfo rpm packaging
> > rpmbuild macro on openSUSE has some differences compared to the one in
> > other distros. CPack/RPM overrides it to compensate for the fact that
> > sources can be generated during build (rpmbuild debuginfo macro only
> > supports packaging of sources located in source dir during packaging so
> > that works only for insource builds...).
>
> I don't know enough about openSuse rpmbuild macro. But I know it works
> for CMake 3.6.2 and broke for 3.7.0. Is test #379 new or was it changed?
>

This is a new test for new functionality - CPackRPM can now generate
debuginfo rpm and source rpm packages (and in git repository there is also
single debuginfo package for all components which missed the 3.7 release
schedule so even more tests that will fail on openSUSE :)).

Yesterday I managed to confirm that the issue is with overriding debuginfo
template macro but failed to find the reason why (openSUSE seems to
generate debuginfo packages without using that macro - it is defined in
main rpm macros file but as far as I can tell it's not used).
I'll try to find a solution for that but since other tests pass the only
drawback is that people won't be able to use this new feature so this
shouldn't be a showstopper for you packaging a new CMake release.

Regards,
Domen
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

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

2016-11-15 Thread Christoph Grüninger
Hi Domen,
thanks for your answer.

> > 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?
> 
> 
> I'll test it today in the afternoon but for now since sources are
> missing from the package I'm guessing that debuginfo rpm packaging
> rpmbuild macro on openSUSE has some differences compared to the one in
> other distros. CPack/RPM overrides it to compensate for the fact that
> sources can be generated during build (rpmbuild debuginfo macro only
> supports packaging of sources located in source dir during packaging so
> that works only for insource builds...).

I don't know enough about openSuse rpmbuild macro. But I know it works
for CMake 3.6.2 and broke for 3.7.0. Is test #379 new or was it changed?

Bye
Christoph
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


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

2016-11-14 Thread Domen Vrankar
2016-11-12 14:38 GMT+01:00 Christoph Grüninger :

> 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?
>

If I remember correctly libuv is only used for cmake server mode so if you
don't want libuv dependency you just loose that optional functionality but
this would probably be better to ask in a separate mail as I'm not certain
how many people will look into CPack/RPM specific mail.


> 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?
>

I'll test it today in the afternoon but for now since sources are missing
from the package I'm guessing that debuginfo rpm packaging rpmbuild macro
on openSUSE has some differences compared to the one in other distros.
CPack/RPM overrides it to compensate for the fact that sources can be
generated during build (rpmbuild debuginfo macro only supports packaging of
sources located in source dir during packaging so that works only for
insource builds...).

Regards,
Domen
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

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

2016-11-12 Thread Christoph Grüninger
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 
> ...   Passed0.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]