diff options
author | Niko Mauno <niko.mauno@vaisala.com> | 2024-10-01 04:58:18 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-09-30 23:54:17 -0700 |
commit | 9cc9e47a72e5343cf2a6d3d69f70330df64a15c9 (patch) | |
tree | d32fbce2827718f7eb0269f35301f6e3129607c8 /meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch | |
parent | 4ccccf20f78807b3a48acc6c8c6f13ddee2ecbfd (diff) | |
download | meta-openembedded-9cc9e47a72e5343cf2a6d3d69f70330df64a15c9.tar.gz |
mysql-python: Remove obsolete recipe
This recipe depends on meta-python2, master branch of which has not
been updated sine February 2022, see
https://git.openembedded.org/meta-python2/log/?h=master
Also, master branch of the associated source code repository has not
been updated since January 2014, see
https://github.com/farcepest/MySQLdb1/commits/master/
Thus, remove the obsolete recipe, along with associated packagegroup
declarations/references.
Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch')
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch b/meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch deleted file mode 100644 index 173241ea5c..0000000000 --- a/meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 45436592aa64308b2ab46f84c6107c6d7de0a3ec Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
3 | Date: Wed, 6 Mar 2019 00:16:17 -0800 | ||
4 | Subject: [PATCH] _mysql.c: fix compilation with MariaDB 10.3.13 | ||
5 | |||
6 | Use standard API function MYSQL_OPT_RECONNECT | ||
7 | instead of direct modification of internal structures | ||
8 | which does not work for MariaDB. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
13 | --- | ||
14 | _mysql.c | 9 ++++++++- | ||
15 | 1 file changed, 8 insertions(+), 1 deletion(-) | ||
16 | |||
17 | --- a/_mysql.c | ||
18 | +++ b/_mysql.c | ||
19 | @@ -2002,7 +2002,14 @@ _mysql_ConnectionObject_ping( | ||
20 | int r, reconnect = -1; | ||
21 | if (!PyArg_ParseTuple(args, "|I", &reconnect)) return NULL; | ||
22 | check_connection(self); | ||
23 | - if ( reconnect != -1 ) self->connection.reconnect = reconnect; | ||
24 | + if ( reconnect != -1 ) { | ||
25 | +#if MYSQL_VERSION_ID >= 50013 | ||
26 | + my_bool recon = reconnect; | ||
27 | + mysql_options(&self->connection, MYSQL_OPT_RECONNECT, &recon); | ||
28 | +#else | ||
29 | + self->connection.reconnect = reconnect; | ||
30 | +#endif | ||
31 | + } | ||
32 | Py_BEGIN_ALLOW_THREADS | ||
33 | r = mysql_ping(&(self->connection)); | ||
34 | Py_END_ALLOW_THREADS | ||