Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4,168
    • Issues 4,168
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #22501
Closed
Open
Issue created Jul 30, 2021 by Artur Samarin@asamarin97Contributor

CPack adds a semicolon at the start of installation scripts when building RPM

When generating RPM with pre-install scripts (when using CPACK_RPM_PRE_INSTALL_SCRIPT_FILE variable) CPack generates spec file with extra semicolon in %pre section.

Source script file

X

Fragment of the generated .spec file

%pre
;X

The same issue is with other script types (post, postun, etc.) . That leads to uninstallable RPMs. Source of the problem is line 14 of Modules/Internal/CPack/CPackRPM.cmake. Two values are passed to set() that joins them with a semicolon.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking