Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • 10.5
    • N/A
    • Packaging
    • None
    • CentOS7

    Description

      I tested on 10.5. Maybe it is reproducible even earlier.

      $env|grep CMAKE
      CMAKE_GENERATOR=Ninja
      CMAKE_BUILD_PARALLEL_LEVEL=8
       
      $ cmake -DRPM=centos7 ../../src/10.5
      $ cpack -G RPM .
      

      In CPackGenerator -> set(CPACK_CMAKE_GENERATOR "Ninja") .
      Note when we unset CMAKE_GENERATOR it uses MakeFiles and has different error, that is already known MDEV-16758 and MDEV-22276 comment
      Attachments or errors provided.

      Attachments

        1. cpackconfig.cmake.txt
          20 kB
          Anel Husakovic
        2. stdout_stderr_cpack.txt
          25 kB
          Anel Husakovic

        Issue Links

          Activity

            cpack -G RPM . was never tested, ninja or not, and we don't use it. It's not supposed to work. Use make package instead (or ninja package).

            serg Sergei Golubchik added a comment - cpack -G RPM . was never tested, ninja or not, and we don't use it. It's not supposed to work. Use make package instead (or ninja package ).
            danblack Daniel Black added a comment -

            From:

            https://cmake.org/cmake/help/v3.20/guide/user-interaction/index.html#selecting-a-target
            https://cmake.org/cmake/help/latest/module/CPack.html#targets-package-and-package-source

            $ cmake --build . --target package

            From https://cmake.org/cmake/help/v3.20/guide/tutorial/index.html#building-an-installer-step-7
            "next step is to build the project in the usual manner and then run the cpack executable".

            cpack isn't a builder, just a packager.

            danblack Daniel Black added a comment - From: https://cmake.org/cmake/help/v3.20/guide/user-interaction/index.html#selecting-a-target https://cmake.org/cmake/help/latest/module/CPack.html#targets-package-and-package-source $ cmake --build . --target package From https://cmake.org/cmake/help/v3.20/guide/tutorial/index.html#building-an-installer-step-7 "next step is to build the project in the usual manner and then run the cpack executable". cpack isn't a builder, just a packager.

            People

              serg Sergei Golubchik
              anel Anel Husakovic
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.