2009/3/23 Dmitry Gerasimov <dmitry-gerasi...@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 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake