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

cmake failure when fullhostname is not resolved

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.33a
    • 5.5.34
    • None
    • None
    • Linux, Fedora, seen only when building using mock

    Description

      When building using mock, cmake failed with the following error:

      CMake Error at storage/tokudb/ft-index/cmake_modules/TokuSetupCTest.cmake:63 (string):
        string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
        command.
      Call Stack (most recent call first):
        storage/tokudb/ft-index/cmake_modules/TokuSetupCTest.cmake:70 (hostname)
        storage/tokudb/ft-index/CMakeLists.txt:12 (include)

      It seems to be caused by wrong resolution of fullhostname, since the following patch fixes this issue:

      --- mariadb-5.5.33a/storage/tokudb/ft-index/cmake_modules/TokuSetupCTest.cmake.cmakehostname    2013-10-10 16:21:18.904236776 +0200
      +++ mariadb-5.5.33a/storage/tokudb/ft-index/cmake_modules/TokuSetupCTest.cmake  2013-10-10 16:21:29.718243555 +0200
      @@ -60,7 +60,7 @@ macro(hostname out)
           COMMAND hostname
           OUTPUT_VARIABLE fullhostname
           OUTPUT_STRIP_TRAILING_WHITESPACE)
      -  string(REGEX REPLACE "\\.tokutek\\.com$" "" ${out} ${fullhostname})
      +  string(REGEX REPLACE "\\.tokutek\\.com$" "" ${out} "${fullhostname}")
       endmacro(hostname)
       
       ## gather machine info

      Attachments

        Activity

          People

            serg Sergei Golubchik
            hhorak Honza Horak
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.