[CMake] 'CPACK_RPM_PACKAGE_AUTOPROV' doesn't work when pack existing binaries with CPack

Domen Vrankar domen.vrankar at gmail.com
Fri Mar 25 05:51:31 EDT 2016


> Does someone know why this "CPACK_RPM_PACKAGE_AUTOPROV" option doesn't take
> effect? how can I make it auto generates these 'PROVIDES' information in the
> RPM?  thanks for your time and it will be very appreciated if you can
> provide some hints.

CPackRPM relies on rpmbuild and other rpm tools to correctly create
the package and rpm is not the most automation friendly beast because
of its macro system.

In cmake tests: Tests/RunCMake/CPack/RPM/DEPENDENCIES-specifics.cmake
there is a comment

# FIXME auto autoprov is not tested at the moment as Ubuntu 15.04 rpmbuild
# does not use them correctly: https://bugs.launchpad.net/rpm/+bug/1475755

I'm guessing that this is environment related (missing packages,
failing/missing rpm macros, ...) as for the same version of rpmbuild
installed on different Linux distros (each through their own package
repository that came with the distro) it either worked or not and
never told that it failed (you could see that only after inspecting
the content of rpm package after it has already been created). I
haven't looked deeper into it but perhaps you've stumbled across this
as well.

You could try to make the package on a different distro and see if it
works there.

Regards,
Domen


More information about the CMake mailing list