[CMake] CPack rpm (from cmake 2.6.3) and rpm 4.6.0

Eric Noulard eric.noulard at gmail.com
Mon Mar 23 21:02:52 EDT 2009


2009/3/23 Dmitry Gerasimov <dmitry-gerasimov at yandex.ru>:
> Hi.
>
> CPack rpm seem to work not correctly on systems with rpm version >=4.6.0
> (like Fedora 10).
> Due to rpm changes in 4.6.0 release (http://www.rpm.org/wiki/Releases/4.6.0)
> "
> %{_topdir} defaults to $(HOME)/rpmbuild/ now, instead of former
> usr/src/redhat/.
>
> Rpm enforces BuildRoot for all packages and ignores the directive in spec.
> "

Seems like a RedHat specific RPM bugs.
Do you think it's rpm => 4.6.0 issue or Fedora 10 one?

Whatever the issue would you be able
to file a bug report in order to trace it:
http://public.kitware.com/Bug/my_view_page.php

> Due to this rpmbuild ignores
>
> %define _rpmdir ${CPACK_RPM_DIRECTORY}
> %define _topdir ${CPACK_RPM_DIRECTORY}
>
> set in spec file and looking for files in $(HOME)/rpmbuild/

May be the new rpm command accepts command line switch for that?

We may use the enforced topdir if we may get its location from a CMake script
but this will need extra file copy, which CPackRPM tries to avoid.
The CPack RPM generator is essentially a cmake script,
(see Modules/CPackRPM.cmake), thus
if you find a workaround or a fix for this issue by patching this script
please send it to the list and/or attach it to the reported bug.

Thank you for reporting the issue.
-- 
Erk


More information about the CMake mailing list