Disable the 'mysql*' command deprecation warning
authorOtto Kekalainen <otto@debian.org>
Sun, 30 Jun 2024 15:18:06 +0000 (15:18 +0000)
committerOtto Kekäläinen <otto@debian.org>
Sun, 12 Jan 2025 22:10:40 +0000 (14:10 -0800)
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 dependent
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/

Forwarded: no

Gbp-Pq: Name hide-mysql-command-deprecation-warnings.patch

mysys/my_init.c

index 383d45fbcc6574db4c09a1fbd2b2ab518b572283..eb8f2e05797b38a30f48c4dc72b626c594fb1410 100644 (file)
@@ -198,7 +198,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");
     }
   }