Author Topic: CPack RPM creation fails  (Read 3186 times)

ajschult

  • Jr. Member
  • **
  • Posts: 98
CPack RPM creation fails
« on: June 07, 2015, 10:21:19 PM »
I attempted to build 2.6.10 and build the RPM.  I got

Code: [Select]
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10966
Re: CPack RPM creation fails
« Reply #1 on: June 08, 2015, 08:06:42 AM »
Looking into it.

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10966
Re: CPack RPM creation fails
« Reply #2 on: June 08, 2015, 06:43:02 PM »
fedora 20: rpm are built. not sure if they work, but it builds

ajschult

  • Jr. Member
  • **
  • Posts: 98
Re: CPack RPM creation fails
« Reply #3 on: June 09, 2015, 01:07:10 PM »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10966
Re: CPack RPM creation fails
« Reply #4 on: June 09, 2015, 05:01:08 PM »
i'll update my lxc builder to fedora22
I'm fixing some rpm packaging errors while i'm at it

ajschult

  • Jr. Member
  • **
  • Posts: 98
Re: CPack RPM creation fails
« Reply #5 on: July 19, 2015, 03:17:12 PM »
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.

ajschult

  • Jr. Member
  • **
  • Posts: 98
Re: CPack RPM creation fails
« Reply #6 on: July 19, 2015, 03:17:45 PM »

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10966
Re: CPack RPM creation fails
« Reply #7 on: July 19, 2015, 03:34:56 PM »
Merged, thanks a lot