Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672698 - dev-db/mariadb-10.2.19 - /usr/bin/mysqld_safe: my_print_defaults: [ERROR] unknown option '--mysqld'
Summary: dev-db/mariadb-10.2.19 - /usr/bin/mysqld_safe: my_print_defaults: [ERROR] unk...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-07 16:04 UTC by Horst Prote
Modified: 2019-07-10 15:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Horst Prote 2018-12-07 16:04:43 UTC
I have dev-db/mariadb-10.2.19, dev-db/mariadb-connector-c-3.0.6-r1 and dev-db/mysql-connector-c-6.1.11-r1 installed and running /usr/bin/mysqld_safe of mariadb prints the error:
  my_print_defaults: [ERROR] unknown option '--mysqld'

This is caused by /usr/bin/mysqld_safe using /usr/bin/my_print_defaults of dev-db/mysql-connector-c (which does not know the option '--mysqld') instead of /usr/libexec/mariadb/my_print_defaults of dev-db/mariadb. As a workaround I changed the find_in_bin() function of /usr/bin/mysqld_safe to:

find_in_bin() {
  if test -x "$MY_BASEDIR_VERSION/libexec/mariadb/$1"
  then
    echo "$MY_BASEDIR_VERSION/libexec/mariadb/$1"
  elif test -x "$MY_BASEDIR_VERSION/bin/$1"
  then
    echo "$MY_BASEDIR_VERSION/bin/$1"
  elif test -x "/usr/bin/$1"
  then
    echo "/usr/bin/$1"
  else
    echo "$1"
  fi
}
Comment 1 François Valenduc 2019-02-18 17:19:59 UTC
This also occurs with version 10.1.37 which was stabilized recently. Changing the function find_in_bin as indicated above doesn't help.
Comment 2 François Valenduc 2019-02-18 17:22:54 UTC
I should add that the problem still occurs after having uninstalled mariadb-connector-c
Comment 3 Larry the Git Cow gentoo-dev 2019-03-05 20:39:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/mysql-extras.git/commit/?id=59179b9fa6353c6d770839914cb2ded055d733e4

commit 59179b9fa6353c6d770839914cb2ded055d733e4
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2019-03-05 20:38:15 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2019-03-05 20:38:15 +0000

    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@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(+)
Comment 4 Larry the Git Cow gentoo-dev 2019-03-05 21:05:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8f945a697b85889e16706719ecc537cd68b9ab4

commit e8f945a697b85889e16706719ecc537cd68b9ab4
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2019-03-05 21:05:19 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2019-03-05 21:05:19 +0000

    dev-db/mariadb: Revbumps to fix galera and mysqld_safe bugs
    
    Due to client-libs changes
    
    Closes: https://bugs.gentoo.org/672698
    Closes: https://bugs.gentoo.org/677674
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Brian Evans <grknight@gentoo.org>

 dev-db/mariadb/Manifest                                              | 2 +-
 dev-db/mariadb/{mariadb-10.1.38.ebuild => mariadb-10.1.38-r1.ebuild} | 2 +-
 dev-db/mariadb/{mariadb-10.2.22.ebuild => mariadb-10.2.22-r1.ebuild} | 2 +-
 dev-db/mariadb/{mariadb-10.3.12.ebuild => mariadb-10.3.12-r1.ebuild} | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)
Comment 5 Dennis Schridde 2019-05-23 08:20:14 UTC
Did this reappear with 10.3.13?

systemd[1]: Starting MariaDB 10.3.13 database server...
sh[624]: my_print_defaults: [ERROR] unknown option '--mysqld'
mysqld[634]: 2019-05-22 12:01:41 0 [Note] /usr/sbin/mysqld (mysqld 10.3.13-MariaDB-log) starting as process 634 ...
systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: mariadb.service: Failed with result 'exit-code'.
systemd[1]: Failed to start MariaDB 10.3.13 database server.

Using dev-db/mysql-connector-c-6.1.11-r1, dev-db/mariadb-connector-c is not installed.
Comment 6 Kfir Ozer 2019-07-10 15:11:02 UTC
same problems occurs on a fresh gentoo install with default/linux/amd64/17.1/desktop/gnome/systemd profile and mariadb 10.4.6
Comment 7 Kfir Ozer 2019-07-10 15:11:26 UTC
same problems occurs on a fresh gentoo install with default/linux/amd64/17.1/desktop/gnome/systemd profile and mariadb 10.4.6