[CMake] CPack RPM generator with @ characters in filename

Matt.Bolger at csiro.au Matt.Bolger at csiro.au
Mon Sep 1 23:52:29 EDT 2014


After a little more looking around in the bug tracker I see there is already an open issue for this. http://www.cmake.org/Bug/view.php?id=14782

Removing the PROTECTED_AT change to CPackRPM.cmake provides a work around for now.

Thanks
Matt

From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of Matt.Bolger at csiro.au
Sent: Monday, 1 September 2014 3:18 PM
To: cmake at cmake.org
Subject: [ExternalEmail] [CMake] CPack RPM generator with @ characters in filename

Hi,

We're trying to package Qt as part of our app and the RPM generator doesn't like the '@' in some of the QML image file names (not that I blame it :)). I found some mention of this earlier this year http://www.cmake.org/pipermail/cmake/2014-March/057124.html. The simple example below (pointing to the Qt QML dir) shows the issue. I tried listing all the files individually with escape characters but it still ends up with @PROTECTED_AT@ in install_manifest.txt

Is there any way around this and/or should a bug be raised for this?

Thanks
Matt

CMakeLists.txt:

cmake_minimum_required(VERSION 3.0.0)
project(myqmlapp NONE)
set(CPACK_PACKAGE_VERSION_MAJOR 0)
set(CPACK_PACKAGE_VERSION_MINOR 1)
set(CPACK_PACKAGE_VERSION_PATCH 0)
find_path(CMAKE_EXECUTABLES_DIR cmake${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_INSTALL_PREFIX "/opt/myqmlapp")

set(CPACK_GENERATOR RPM)
set(CPACK_RPM_PACKAGE_NAME "myqmlapp")
set(CPACK_PACKAGE_FILE_NAME "myqmlapp")

install(DIRECTORY "/home/builder/Qt/5.3/gcc_64/qml/"
        DESTINATION "qml")

include(CPack)

Result:

    File not found: /home/builder/BuildArea/cpack/_CPack_Packages/Linux/RPM/myqmlapp/usr/qml/QtQuick/Controls/Styles/Base/images/arrow-down at PROTECTED_AT@2x.png
    File not found: /home/builder/BuildArea/cpack/_CPack_Packages/Linux/RPM/myqmlapp/usr/qml/QtQuick/Controls/Styles/Base/images/arrow-right at PROTECTED_AT@2x.png
    File not found: /home/builder/BuildArea/cpack/_CPack_Packages/Linux/RPM/myqmlapp/usr/qml/QtQuick/Controls/Styles/Base/images/arrow-left at PROTECTED_AT@2x.png
    File not found: /home/builder/BuildArea/cpack/_CPack_Packages/Linux/RPM/myqmlapp/usr/qml/QtQuick/Controls/Styles/Base/images/arrow-up at PROTECTED_AT@2x.png
    File not found: /home/builder/BuildArea/cpack/_CPack_Packages/Linux/RPM/myqmlapp/usr/qml/QtQuick/Controls/Styles/Base/images/check at PROTECTED_AT@2x.png

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140902/31f20353/attachment-0001.html>


More information about the CMake mailing list