Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: ajschult on June 07, 2015, 10:21:19 PM

Title: CPack RPM creation fails
Post by: ajschult on June 07, 2015, 10:21:19 PM
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
Title: Re: CPack RPM creation fails
Post by: mean on June 08, 2015, 08:06:42 AM
Looking into it.
Title: Re: CPack RPM creation fails
Post by: mean on June 08, 2015, 06:43:02 PM
fedora 20: rpm are built. not sure if they work, but it builds
Title: Re: CPack RPM creation fails
Post by: ajschult 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.
Title: Re: CPack RPM creation fails
Post by: mean 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
Title: Re: CPack RPM creation fails
Post by: ajschult 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.
Title: Re: CPack RPM creation fails
Post by: ajschult on July 19, 2015, 03:17:45 PM
... and I submitted https://github.com/mean00/avidemux2/pull/6
Title: Re: CPack RPM creation fails
Post by: mean on July 19, 2015, 03:34:56 PM
Merged, thanks a lot