From 775f7ae0c790562dcf0d5f9b8a36d1aef0caca39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sat, 11 Feb 2023 23:59:08 +0100 Subject: mariadb monitor silent startup patch --- etc/portage/make.conf | 1 + .../dev-db/mariadb/quiet-client-startup.patch | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 etc/portage/patches/dev-db/mariadb/quiet-client-startup.patch (limited to 'etc/portage') diff --git a/etc/portage/make.conf b/etc/portage/make.conf index 1b06130..853a61f 100644 --- a/etc/portage/make.conf +++ b/etc/portage/make.conf @@ -55,6 +55,7 @@ USE="$USE bluetooth" USE="$USE cutter" # za rz-ghidra USE="$USE rtlsdr" # za gqrx USE="$USE pdo" # za php +USE="$USE -branding" # za libreoffice CALLIGRA_FEATURES="stage words sheets" PALEMOON_ENABLE_UNSUPPORTED_COMPILERS=1 # uradno gcc 11 ni podprt diff --git a/etc/portage/patches/dev-db/mariadb/quiet-client-startup.patch b/etc/portage/patches/dev-db/mariadb/quiet-client-startup.patch new file mode 100644 index 0000000..bb446c3 --- /dev/null +++ b/etc/portage/patches/dev-db/mariadb/quiet-client-startup.patch @@ -0,0 +1,22 @@ +diff --git a/mysql/client/mysql.cc b/mysql/client/mysql.cc +index 697f4d5..7f1778f 100644 +--- a/mysql/client/mysql.cc ++++ b/mysql/client/mysql.cc +@@ -1219,7 +1219,7 @@ int main(int argc,char *argv[]) + window_resize(0); + #endif + +- if (!status.batch) ++ if (!status.batch && 0) + { + put_info("Welcome to the MariaDB monitor. Commands end with ; or \\g.", + INFO_INFO); +@@ -2862,7 +2862,7 @@ static void build_completion_hash(bool rehash, bool write_info) + put_info(mysql_error(&mysql),INFO_INFO); + else + { +- if (mysql_num_rows(tables) > 0 && !opt_silent && write_info) ++ if (mysql_num_rows(tables) > 0 && !opt_silent && write_info && 0) + { + tee_fprintf(stdout, "\ + Reading table information for completion of table and column names\n\ -- cgit v1.2.3