commit:     59179b9fa6353c6d770839914cb2ded055d733e4
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Tue Mar  5 20:38:15 2019 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Tue Mar  5 20:38:15 2019 +0000
URL:        https://gitweb.gentoo.org/proj/mysql-extras.git/commit/?id=59179b9f

Adjust patch for my_print_defaults location in mysqld_safe

Bug: https://bugs.gentoo.org/show_bug.cgi?id=672698
Signed-off-by: Brian Evans <grknight <AT> gentoo.org>

 ..._all_mariadb-10.1.16-without-clientlibs-tools.patch | 18 ++++++++++++++++++
 ..._all_mariadb-10.2.16-without-clientlibs-tools.patch | 18 ++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/20018_all_mariadb-10.1.16-without-clientlibs-tools.patch 
b/20018_all_mariadb-10.1.16-without-clientlibs-tools.patch
index 2664529..af8305d 100644
--- a/20018_all_mariadb-10.1.16-without-clientlibs-tools.patch
+++ b/20018_all_mariadb-10.1.16-without-clientlibs-tools.patch
@@ -150,3 +150,21 @@ diff -aurN a/scripts/wsrep_sst_common.sh 
b/scripts/wsrep_sst_common.sh
  else
      MY_PRINT_DEFAULTS=$(which my_print_defaults)
  fi
+diff -aurN a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
+--- a/scripts/mysqld_safe.sh   2019-02-09 18:24:09.000000000 -0500
++++ b/scripts/mysqld_safe.sh   2019-03-05 15:30:25.455288087 -0500
+@@ -133,7 +133,13 @@
+ }
+ 
+ find_in_bin() {
+-  if test -x "$MY_BASEDIR_VERSION/bin/$1"
++  if test -x "$MY_BASEDIR_VERSION/libexec/mariadb/$1"
++  then
++    echo "$MY_BASEDIR_VERSION/libexec/mariadb/$1"
++  elif test -x "@bindir@/../libexec/mariadb/$1"
++  then
++    echo "@bindir@/../libexec/mariadb/$1"
++  elif test -x "$MY_BASEDIR_VERSION/$1"
+   then
+     echo "$MY_BASEDIR_VERSION/bin/$1"
+   elif test -x "@bindir@/$1"

diff --git a/20018_all_mariadb-10.2.16-without-clientlibs-tools.patch 
b/20018_all_mariadb-10.2.16-without-clientlibs-tools.patch
index 1c61475..d284a93 100644
--- a/20018_all_mariadb-10.2.16-without-clientlibs-tools.patch
+++ b/20018_all_mariadb-10.2.16-without-clientlibs-tools.patch
@@ -227,3 +227,21 @@ diff -aurN a/scripts/wsrep_sst_common.sh 
b/scripts/wsrep_sst_common.sh
  else
      MY_PRINT_DEFAULTS=$(which my_print_defaults)
  fi
+diff -aurN a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
+--- a/scripts/mysqld_safe.sh   2019-02-09 18:24:09.000000000 -0500
++++ b/scripts/mysqld_safe.sh   2019-03-05 15:30:25.455288087 -0500
+@@ -133,7 +133,13 @@
+ }
+ 
+ find_in_bin() {
+-  if test -x "$MY_BASEDIR_VERSION/bin/$1"
++  if test -x "$MY_BASEDIR_VERSION/libexec/mariadb/$1"
++  then
++    echo "$MY_BASEDIR_VERSION/libexec/mariadb/$1"
++  elif test -x "@bindir@/../libexec/mariadb/$1"
++  then
++    echo "@bindir@/../libexec/mariadb/$1"
++  elif test -x "$MY_BASEDIR_VERSION/$1"
+   then
+     echo "$MY_BASEDIR_VERSION/bin/$1"
+   elif test -x "@bindir@/$1"

Reply via email to