From cd0a68dfedcff3b0ef67e60786df0f4c84bcadef Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 15:40:19 +0200 Subject: Adding debian version 1:10.11.7-3. Signed-off-by: Daniel Baumann --- debian/patches/startup-message.patch | 68 ++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 debian/patches/startup-message.patch (limited to 'debian/patches/startup-message.patch') diff --git a/debian/patches/startup-message.patch b/debian/patches/startup-message.patch new file mode 100644 index 00000000..27b86b3d --- /dev/null +++ b/debian/patches/startup-message.patch @@ -0,0 +1,68 @@ +Forwarded: no +Author: Otto Kekäläinen +Date: Sun, 10 Mar 2024 16:56:13 +0000 +Subject: [PATCH] Show banner in server and client startup to drive community engagement + +Suggest to users that they can support MariaDB development by simply giving a +star on GitHub. This patch experiments with how well such a banner works, and +may later change the contents to drive some other kind of engagement. + +Client output: + Welcome to the MariaDB monitor. Commands end with ; or \g. + Your MariaDB connection id is 34 + Server version: 10.11.7-MariaDB-3 Debian n/a + + Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. + Support MariaDB developers by giving a star at https://github.com/MariaDB/server + + Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. + + MariaDB [(none)]> + +Server output: + [Note] Support MariaDB developers by giving a star at https://github.com/MariaDB/server + +Server output if build in git directory: + [Note] Starting MariaDB 10.11.7-MariaDB-3 source revision 219efb0a6ab0ee8ce2ec831c715783586c4db2ef as process 5426 + +--- a/client/mysql.cc ++++ b/client/mysql.cc +@@ -1326,6 +1326,9 @@ int main(int argc,char *argv[]) + mysql_thread_id(&mysql), server_version_string(&mysql)); + put_info((char*) glob_buffer.ptr(),INFO_INFO); + put_info(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"), INFO_INFO); ++ put_info("Support MariaDB developers by giving a star at " ++ "https://github.com/MariaDB/server", ++ INFO_INFO); + } + + #ifdef HAVE_READLINE +--- a/sql/mysqld.cc ++++ b/sql/mysqld.cc +@@ -4983,12 +4983,21 @@ static int init_server_components() + proc_info_hook= set_thd_stage_info; + + /* +- Print source revision hash, as one of the first lines, if not the +- first in error log, for troubleshooting and debugging purposes ++ Print source revision hash, if set, for troubleshooting and debugging ++ purposes. If not, suggest database adming to help project by giving a ++ star on GitHub. +  */ +- if (!opt_help) +- sql_print_information("Starting MariaDB %s source revision %s as process %lu", +- server_version, SOURCE_REVISION, (ulong) getpid()); ++ if (!opt_help) { ++ if (SOURCE_REVISION) { ++ sql_print_information("Starting MariaDB %s source revision %s as process %lu", ++ server_version, SOURCE_REVISION, (ulong) getpid()); ++ } else { ++ sql_print_information("Starting MariaDB %s as process %lu", ++ server_version, (ulong) getpid()); ++ sql_print_information("Support MariaDB developers by giving a star at " ++ "https://github.com/MariaDB/server"); ++ } ++ } + + #ifdef WITH_PERFSCHEMA_STORAGE_ENGINE + /* -- cgit v1.2.3