Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-26487

cpack rpm failed to build packages with cmake < 3.7.0

Details

    Description

      cmake 2.8 produced an error on Centos-7
      cmake 3.14 is OK

      error: File not found: /home/abychko/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX_ON_ES_BACKUP_DEBUGSOURCE/server/_CPack_Packages/Linux/RPM/MariaDB-10.5.13-centos74-x86_64/server/usr/lib64/mysql/plugin/auth_pam_tool_dir”
      error: File not found: /home/abychko/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX_ON_ES_BACKUP_DEBUGSOURCE/server/_CPack_Packages/Linux/RPM/MariaDB-10.5.13-centos74-x86_64/server/usr/lib64/mysql/plugin/auth_pam_tool_dir/auth_pam_tool”
          File not found: /home/abychko/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX_ON_ES_BACKUP_DEBUGSOURCE/server/_CPack_Packages/Linux/RPM/MariaDB-10.5.13-centos74-x86_64/server/usr/lib64/mysql/plugin/auth_pam_tool_dir”
          File not found: /home/abychko/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX_ON_ES_BACKUP_DEBUGSOURCE/server/_CPack_Packages/Linux/RPM/MariaDB-10.5.13-centos74-x86_64/server/usr/lib64/mysql/plugin/auth_pam_tool_dir/auth_pam_tool”
      

      Attachments

        Issue Links

          Activity

            abychko Alexey Bychko (Inactive) created issue -

            quotes are set incorrectly in server spec file:

            %attr(700, "-, -) /usr/lib64/mysql/plugin/auth_pam_tool_dir"
            %attr(4755, "-, -) /usr/lib64/mysql/plugin/auth_pam_tool_dir/auth_pam_tool"
            

            abychko Alexey Bychko (Inactive) added a comment - quotes are set incorrectly in server spec file: %attr(700, "-, -) /usr/lib64/mysql/plugin/auth_pam_tool_dir" %attr(4755, "-, -) /usr/lib64/mysql/plugin/auth_pam_tool_dir/auth_pam_tool"
            abychko Alexey Bychko (Inactive) added a comment - - edited

            User Filelist looks correct and it contains

            %attr(700, -, -) /usr/lib64/mysql/plugin/auth_pam_tool_dir
            

            but later it prints

            CPackRPM:Debug: F_PREFIX=<%attr(700,>, F_PATH=<-, -) /usr/lib64/mysql/plugin/auth_pam_tool_dir>
            

            this is because of following in CPackRPM.cmake system file

                string(REGEX REPLACE "%[A-Za-z0-9\(\),-]* " "" F_PATH ${F})
                string(REGEX MATCH "%[A-Za-z0-9\(\),-]*" F_PREFIX ${F})
            

            these regexes were fixed only starting from cmake-3.7.0

            abychko Alexey Bychko (Inactive) added a comment - - edited User Filelist looks correct and it contains %attr(700, -, -) /usr/lib64/mysql/plugin/auth_pam_tool_dir but later it prints CPackRPM:Debug: F_PREFIX=<%attr(700,>, F_PATH=<-, -) /usr/lib64/mysql/plugin/auth_pam_tool_dir> this is because of following in CPackRPM.cmake system file string(REGEX REPLACE "%[A-Za-z0-9\(\),-]* " "" F_PATH ${F}) string(REGEX MATCH "%[A-Za-z0-9\(\),-]*" F_PREFIX ${F}) these regexes were fixed only starting from cmake-3.7.0
            abychko Alexey Bychko (Inactive) made changes -
            Field Original Value New Value
            Summary cpack rpm failed to build packages under centos-7/cmake-2.8 cpack rpm failed to build packages with cmake < 3.7.0
            abychko Alexey Bychko (Inactive) made changes -
            serg Sergei Golubchik made changes -
            Assignee Alexey Bychko [ abychko ] Sergei Golubchik [ serg ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.4 [ 22408 ]
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            serg Sergei Golubchik made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            serg Sergei Golubchik made changes -
            Affects Version/s 10.4 [ 22408 ]
            Affects Version/s 10.6 [ 24028 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.4.22 [ 26031 ]
            Fix Version/s 10.5.13 [ 26026 ]
            Fix Version/s 10.6.5 [ 26034 ]
            Fix Version/s 10.4 [ 22408 ]
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 124621 ] MariaDB v4 [ 159642 ]

            People

              serg Sergei Golubchik
              abychko Alexey Bychko (Inactive)
              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.