Uploaded image for project: 'Percona XtraDB Cluster'
  1. Percona XtraDB Cluster
  2. PXC-1399

LP #1201893: Make MacOSX and FreeBSD ports

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      **Reported in Launchpad by Vladislav Klyachin last update 23-09-2013 12:46:02

      Some files in wsrep patch contain platform-dependend code.
      For example in sql/wsrep_utils.c:

      // try to find the address of the first one
      #if (TARGET_OS_LINUX == 1)
      const char cmd[] = "ip addr show | grep -E '^
      s*inet' | grep -m1 global |"
      " awk '

      { print $2 }' | sed 's/
      /.*//'";
      #elif defined(_sun_)
      const char cmd[] = "/sbin/ifconfig -a | "
      "/usr/gnu/bin/grep -m1 -1 -E 'net[0-9]:' | tail -n 1 | awk '{ print $2 }

      '";
      #else
      char *cmd;
      #error "OS not supported"
      #endif

      also scripts files ./scripts/*.sh

      It is required to make the code portable or to add support for MacOSX and FreeBSD.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                krunal.bauskar Krunal Bauskar (Inactive)
                Reporter:
                lpjirasync lpjirasync (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: