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

server/debian/mariadb-server-10.x.mysql-server.logrotate || GNU grep v. 2.2.4 [UBUNTU-16.04] FAILS

Details

    Description

      server/debian/mariadb-server-10.x.mysql-server.logrotate
      line 14: if [ -f `my_print_defaults --mysqld | grep -oP "pid-file=\K[^$]+"` ]; then

      this always fails in GNU grep v. 22.4 because of:

      _*$ echo $ | grep -Pz $
      grep: unescaped $ or $ not supported with -Pz
      ...
      This is desired behavior of GNU grep version 2.24 (released on March 10 2016) and above, and that's the fix for the bug which was introduced in GNU grep 2.5.
      ...
      *_
      https://unix.stackexchange.com/questions/324263/grep-command-doesnt-support-start-and-end-of-line-anchors-when-its-wit

      https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22655#47

      Though it's a GNU grep issue there's the need for adjusting grep condition to circumstances.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Otto Kekäläinen made transition -
            Open In Progress
            1083d 9h 22m 1
            Otto Kekäläinen made transition -
            In Progress Stalled
            311d 8h 37m 1
            Daniel Black made transition -
            Stalled Closed
            242d 12h 14m 1

            People

              danblack Daniel Black
              href hubert reffer
              Votes:
              0 Vote for this issue
              Watchers:
              8 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.