From: Debian MySQL Maintainers Date: Sat, 13 Jul 2024 03:52:32 +0000 (-0700) Subject: [PATCH] Disable the 'mysql*' command deprecation warning X-Git-Tag: archive/raspbian/1%11.4.2-4+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d94a64ca34303bcd3ffeeeafcc8c9b0ae69db826;p=mariadb.git [PATCH] Disable the 'mysql*' command deprecation warning Many command-line tools expect the commands they run to return without any output in stderr or having error codes. The fact that now in MariaDB 11.4 all 'mysql*' commands emit a deprecation warning causes a lot of scripts to fail, such as the /etc/init.d/mariadb itself and many dependant programs as witnessed via Debian autopkgtests. See examples below. https://ci.debian.net/packages/m/mariadb-connector-odbc/testing/amd64/48373500/ https://ci.debian.net/packages/p/pam-mysql/testing/amd64/48373511/ https://ci.debian.net/packages/r/roundcube/testing/amd64/48373518/ Gbp-Pq: Name hide-mysql-command-deprecation-warnings.patch --- diff --git a/mysys/my_init.c b/mysys/my_init.c index 485ce1637..3bd421e13 100644 --- a/mysys/my_init.c +++ b/mysys/my_init.c @@ -200,7 +200,8 @@ my_bool my_init(void) #endif if ((res == 0 || my_readlink(link_name, my_progname, MYF(0)) == 0) && strncmp(link_name + dirname_length(link_name), "mariadb", 7) == 0) - my_error(EE_NAME_DEPRECATED, MYF(MY_WME), link_name); + /* Intentionally don't emit any errors for now */ + DBUG_PRINT("deprecation warning", "skipped"); } }