Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mysql-extras:master commit in: /
Date: Mon, 28 Jan 2013 17:27:53
Message-Id: 1359394062.d7795a46c2c51a9e95f90b1eafbdec25ef482d8f.robbat2@gentoo
1 commit: d7795a46c2c51a9e95f90b1eafbdec25ef482d8f
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 28 17:27:42 2013 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 28 17:27:42 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql-extras.git;a=commit;h=d7795a46
7
8 Port 20002_all_mysql-va-list.patch for 5.6.
9
10 ---
11 00000_index.txt | 7 ++++-
12 20002_all_mysql-va-list-5.6.patch | 49 +++++++++++++++++++++++++++++++++++++
13 2 files changed, 55 insertions(+), 1 deletions(-)
14
15 diff --git a/00000_index.txt b/00000_index.txt
16 index ab3621f..5829392 100644
17 --- a/00000_index.txt
18 +++ b/00000_index.txt
19 @@ -1458,6 +1458,11 @@
20 @@ Fix sql
21
22 @patch 20002_all_mysql-va-list.patch
23 -@ver 5.05.00.00 to 5.99.99.99
24 +@ver 5.05.00.00 to 5.05.99.99
25 +@pn mysql
26 +@@ Bug 442000, upstream 62729 compilation failure on arm and possibly other arches where va_list is a struct or array.
27 +
28 +@patch 20002_all_mysql-va-list-5.6.patch
29 +@ver 5.06.00.00 to 5.99.99.99
30 @pn mysql
31 @@ Bug 442000, upstream 62729 compilation failure on arm and possibly other arches where va_list is a struct or array.
32
33 diff --git a/20002_all_mysql-va-list-5.6.patch b/20002_all_mysql-va-list-5.6.patch
34 new file mode 100644
35 index 0000000..1c06ed3
36 --- /dev/null
37 +++ b/20002_all_mysql-va-list-5.6.patch
38 @@ -0,0 +1,49 @@
39 +diff -Nuar --exclude '*.orig' --exclude '*.rej' mysql.orig/sql-common/client_plugin.c mysql/sql-common/client_plugin.c
40 +--- mysql.orig/sql-common/client_plugin.c 2012-11-22 14:39:01.000000000 +0000
41 ++++ mysql/sql-common/client_plugin.c 2013-01-28 17:26:20.534550104 +0000
42 +@@ -233,11 +233,13 @@
43 + {
44 + MYSQL mysql;
45 + struct st_mysql_client_plugin **builtin;
46 ++ va_list unused;
47 +
48 + if (initialized)
49 + return 0;
50 +
51 + memset(&mysql, 0, sizeof(mysql)); /* dummy mysql for set_mysql_extended_error */
52 ++ memset(&unused, 0, sizeof(unused)); /* suppress uninitialized-value warnings */
53 +
54 + mysql_mutex_init(0, &LOCK_load_client_plugin, MY_MUTEX_INIT_SLOW);
55 + init_alloc_root(&mem_root, 128, 128);
56 +@@ -249,7 +251,7 @@
57 + mysql_mutex_lock(&LOCK_load_client_plugin);
58 +
59 + for (builtin= mysql_client_builtins; *builtin; builtin++)
60 +- add_plugin(&mysql, *builtin, 0, 0, 0);
61 ++ add_plugin(&mysql, *builtin, 0, 0, unused);
62 +
63 + mysql_mutex_unlock(&LOCK_load_client_plugin);
64 +
65 +@@ -293,9 +295,13 @@
66 + mysql_client_register_plugin(MYSQL *mysql,
67 + struct st_mysql_client_plugin *plugin)
68 + {
69 ++ va_list unused;
70 ++
71 + if (is_not_initialized(mysql, plugin->name))
72 + return NULL;
73 +
74 ++ memset(&unused, 0, sizeof(unused)); /* suppress uninitialized-value warnings */
75 ++
76 + mysql_mutex_lock(&LOCK_load_client_plugin);
77 +
78 + /* make sure the plugin wasn't loaded meanwhile */
79 +@@ -307,7 +313,7 @@
80 + plugin= NULL;
81 + }
82 + else
83 +- plugin= add_plugin(mysql, plugin, 0, 0, 0);
84 ++ plugin= add_plugin(mysql, plugin, 0, 0, unused);
85 +
86 + mysql_mutex_unlock(&LOCK_load_client_plugin);
87 + return plugin;