News:

--

Main Menu

CPack RPM creation fails

Started by ajschult, June 07, 2015, 10:21:19 PM

Previous topic - Next topic

ajschult

I attempted to build 2.6.10 and build the RPM.  I got


Run CPack packaging tool...
/usr/bin/cpack --config ./CPackConfig.cmake
CPack: Create package using RPM
CPack: Install projects
CPack: - Run preinstall target for: admCore
CPack: - Install project: admCore
CPack: Create package
CPackRPM:Warning: CPACK_SET_DESTDIR is set (=ON) while requesting a relocatable package (CPACK_RPM_PACKAGE_RELOCATABLE is set): this is not supported, the package won't be relocatable.
CMake Error at /usr/share/cmake/Modules/CPackRPM.cmake:953 (list):
  list sub-command SORT requires list to be present.


CPackRPM: Will use GENERATED spec file: /home/andrew/build/avidemux/avidemux2/buildCore/_CPack_Packages/Linux/RPM/SPECS/avidemux3-core.spec
CPack Error: Error while execution CPackRPM.cmake
CPack Error: Problem compressing the directory
CPack Error: Error when generating package: admCore
Makefile:109: recipe for target 'package' failed

mean


mean

fedora 20: rpm are built. not sure if they work, but it builds

ajschult

I updated from git, but continue to get the same errors.

Perhaps this is a related to my cmake version, which comes from a recently updated fedora install.  I had cmake 3.0.2 with fedora 21 and I now have cmake 3.2.2 with fedora 22.

mean

i'll update my lxc builder to fedora22
I'm fixing some rpm packaging errors while i'm at it

ajschult

disabling CPACK_RPM_PACKAGE_RELOCATABLE fixed this.  The cpack bit that was failing was within a chunk trying to handle relocatable files.  relocatable apparently wouldn't work anyway due to DESTDIR.


mean