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

MariaDB uses hardcoded ${LOCALBASE} for libexecinfo

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5.33a
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      FreeBSD any version

      Description

      MariaDB uses hardcoded path for searching libexecinfo library (needed for backtrace() function) in cmake/os/FreeBSD.cmake:

      INCLUDE_DIRECTORIES(/usr/local/include)
      SET(CMAKE_REQUIRED_INCLUDES $

      {CMAKE_REQUIRED_INCLUDES}

      /usr/local/include )
      SET(ENV

      {LIB} "$ENV{LIB}

      :/usr/local/lib")
      FIND_LIBRARY(EXECINFO NAMES execinfo)
      IF(EXECINFO)
      SET(LIBEXECINFO $

      {EXECINFO}

      )
      ENDIF()

      The problem is that despite the fact that "/usr/local" is default for LOCALBASE in FreeBSD, it could be changed and should be supported by port, which I maintain.

      My proposition is to add EXECINFO_ROOT, which will default to "/usr/local", but could be overridden with -DEXECINFO_ROOT during configure stage.

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                wlad Vladislav Vaintroub
                Reporter:
                neveripe Alexandr Kovalenko
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h