diff mbox series

[meta-oe,PATCHv3,1/4] mysql-python: Remove obsolete recipe

Message ID 20241001042429.3651-1-niko.mauno@vaisala.com
State New
Headers show
Series [meta-oe,PATCHv3,1/4] mysql-python: Remove obsolete recipe | expand

Commit Message

Niko Mauno Oct. 1, 2024, 4:24 a.m. UTC
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>
---
 .../packagegroups/packagegroup-meta-oe.bb     |  6 ----
 ...ompilation-with-MariaDB-with-10.3.13.patch | 34 -------------------
 .../recipes-dbs/mysql/mysql-python_1.2.5.bb   | 26 --------------
 3 files changed, 66 deletions(-)
 delete mode 100644 meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch
 delete mode 100644 meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb

Comments

Khem Raj Oct. 1, 2024, 4:39 a.m. UTC | #1
I can't apply this v3 series

Applying: mysql-python: Remove obsolete recipe
Patch failed at 0001 mysql-python: Remove obsolete recipe
error: patch failed:
meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch:1
error: meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch:
patch does not apply

Can you please rebase it on top of the master-next branch to make it a
bit easier ?

On Mon, Sep 30, 2024 at 9:25 PM Niko Mauno <niko.mauno@vaisala.com> wrote:
>
> 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>
> ---
>  .../packagegroups/packagegroup-meta-oe.bb     |  6 ----
>  ...ompilation-with-MariaDB-with-10.3.13.patch | 34 -------------------
>  .../recipes-dbs/mysql/mysql-python_1.2.5.bb   | 26 --------------
>  3 files changed, 66 deletions(-)
>  delete mode 100644 meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch
>  delete mode 100644 meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb
>
> diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> index 6f31283fb..9523e78dd 100644
> --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> @@ -13,7 +13,6 @@ PACKAGES = "\
>      packagegroup-meta-oe-crypto \
>      packagegroup-meta-oe-bsp \
>      packagegroup-meta-oe-dbs \
> -    packagegroup-meta-oe-dbs-python2 \
>      packagegroup-meta-oe-devtools \
>      packagegroup-meta-oe-extended \
>      packagegroup-meta-oe-extended-python2 \
> @@ -40,7 +39,6 @@ RDEPENDS:packagegroup-meta-oe = "\
>      packagegroup-meta-oe-core \
>      packagegroup-meta-oe-crypto \
>      packagegroup-meta-oe-dbs \
> -    ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "packagegroup-meta-oe-dbs-python2", "", d)} \
>      packagegroup-meta-oe-devtools \
>      packagegroup-meta-oe-extended \
>      ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "packagegroup-meta-oe-extended-python2", "", d)} \
> @@ -225,10 +223,6 @@ RDEPENDS:packagegroup-meta-oe-dbs ="\
>  "
>  RDEPENDS:packagegroup-meta-oe-dbs:remove:libc-musl:powerpc = "rocksdb"
>
> -RDEPENDS:packagegroup-meta-oe-dbs-python2 ="\
> -    ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', 'mysql-python', '', d), "", d)} \
> -"
> -
>  RDEPENDS:packagegroup-meta-oe-devtools ="\
>      abseil-cpp \
>      apitrace \
> 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 173241ea5..000000000
> --- 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 @@
> -From 45436592aa64308b2ab46f84c6107c6d7de0a3ec Mon Sep 17 00:00:00 2001
> -From: Mingli Yu <mingli.yu@windriver.com>
> -Date: Wed, 6 Mar 2019 00:16:17 -0800
> -Subject: [PATCH] _mysql.c: fix compilation with MariaDB 10.3.13
> -
> -Use standard API function MYSQL_OPT_RECONNECT
> -instead of direct modification of internal structures
> -which does not work for MariaDB.
> -
> -Upstream-Status: Pending
> -
> -Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
> ----
> - _mysql.c | 9 ++++++++-
> - 1 file changed, 8 insertions(+), 1 deletion(-)
> -
> ---- a/_mysql.c
> -+++ b/_mysql.c
> -@@ -2002,7 +2002,14 @@ _mysql_ConnectionObject_ping(
> -       int r, reconnect = -1;
> -       if (!PyArg_ParseTuple(args, "|I", &reconnect)) return NULL;
> -       check_connection(self);
> --      if ( reconnect != -1 ) self->connection.reconnect = reconnect;
> -+      if ( reconnect != -1 ) {
> -+#if MYSQL_VERSION_ID >= 50013
> -+              my_bool recon = reconnect;
> -+              mysql_options(&self->connection, MYSQL_OPT_RECONNECT, &recon);
> -+#else
> -+              self->connection.reconnect = reconnect;
> -+#endif
> -+        }
> -       Py_BEGIN_ALLOW_THREADS
> -       r = mysql_ping(&(self->connection));
> -       Py_END_ALLOW_THREADS
> diff --git a/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb b/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb
> deleted file mode 100644
> index 15f6b6fb9..000000000
> --- a/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -SUMMARY = "Python interface to MySQL"
> -HOMEPAGE = "https://github.com/farcepest/MySQLdb1"
> -SECTION = "devel/python"
> -LICENSE = "GPL-2.0-only"
> -LIC_FILES_CHKSUM = "file://GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> -
> -DEPENDS = "mysql5"
> -
> -SRCNAME = "MySQL-python"
> -
> -SRC_URI = "https://pypi.python.org/packages/source/M/${SRCNAME}/${SRCNAME}-${PV}.zip \
> -           file://0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch \
> -"
> -SRC_URI[md5sum] = "654f75b302db6ed8dc5a898c625e030c"
> -SRC_URI[sha256sum] = "811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74"
> -
> -S = "${WORKDIR}/${SRCNAME}-${PV}"
> -
> -SKIP_RECIPE[mysql-python] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"
> -
> -inherit ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "setuptools", "", d)}
> -
> -python() {
> -    if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
> -        raise bb.parse.SkipRecipe('Requires meta-python2 to be present.')
> -}
> --
> 2.39.2
>
Niko Mauno Oct. 1, 2024, 4:59 a.m. UTC | #2
Rebased + submitted v4

On 10/1/24 07:39, Khem Raj wrote:
> I can't apply this v3 series
> 
> Applying: mysql-python: Remove obsolete recipe
> Patch failed at 0001 mysql-python: Remove obsolete recipe
> error: patch failed:
> meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch:1
> error: meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch:
> patch does not apply
> 
> Can you please rebase it on top of the master-next branch to make it a
> bit easier ?
> 
> On Mon, Sep 30, 2024 at 9:25 PM Niko Mauno <niko.mauno@vaisala.com> wrote:
>>
>> 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>
>> ---
>>   .../packagegroups/packagegroup-meta-oe.bb     |  6 ----
>>   ...ompilation-with-MariaDB-with-10.3.13.patch | 34 -------------------
>>   .../recipes-dbs/mysql/mysql-python_1.2.5.bb   | 26 --------------
>>   3 files changed, 66 deletions(-)
>>   delete mode 100644 meta-oe/recipes-dbs/mysql/mysql-python/0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch
>>   delete mode 100644 meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb
>>
>> diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
>> index 6f31283fb..9523e78dd 100644
>> --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
>> +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
>> @@ -13,7 +13,6 @@ PACKAGES = "\
>>       packagegroup-meta-oe-crypto \
>>       packagegroup-meta-oe-bsp \
>>       packagegroup-meta-oe-dbs \
>> -    packagegroup-meta-oe-dbs-python2 \
>>       packagegroup-meta-oe-devtools \
>>       packagegroup-meta-oe-extended \
>>       packagegroup-meta-oe-extended-python2 \
>> @@ -40,7 +39,6 @@ RDEPENDS:packagegroup-meta-oe = "\
>>       packagegroup-meta-oe-core \
>>       packagegroup-meta-oe-crypto \
>>       packagegroup-meta-oe-dbs \
>> -    ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "packagegroup-meta-oe-dbs-python2", "", d)} \
>>       packagegroup-meta-oe-devtools \
>>       packagegroup-meta-oe-extended \
>>       ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "packagegroup-meta-oe-extended-python2", "", d)} \
>> @@ -225,10 +223,6 @@ RDEPENDS:packagegroup-meta-oe-dbs ="\
>>   "
>>   RDEPENDS:packagegroup-meta-oe-dbs:remove:libc-musl:powerpc = "rocksdb"
>>
>> -RDEPENDS:packagegroup-meta-oe-dbs-python2 ="\
>> -    ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', 'mysql-python', '', d), "", d)} \
>> -"
>> -
>>   RDEPENDS:packagegroup-meta-oe-devtools ="\
>>       abseil-cpp \
>>       apitrace \
>> 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 173241ea5..000000000
>> --- 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 @@
>> -From 45436592aa64308b2ab46f84c6107c6d7de0a3ec Mon Sep 17 00:00:00 2001
>> -From: Mingli Yu <mingli.yu@windriver.com>
>> -Date: Wed, 6 Mar 2019 00:16:17 -0800
>> -Subject: [PATCH] _mysql.c: fix compilation with MariaDB 10.3.13
>> -
>> -Use standard API function MYSQL_OPT_RECONNECT
>> -instead of direct modification of internal structures
>> -which does not work for MariaDB.
>> -
>> -Upstream-Status: Pending
>> -
>> -Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
>> ----
>> - _mysql.c | 9 ++++++++-
>> - 1 file changed, 8 insertions(+), 1 deletion(-)
>> -
>> ---- a/_mysql.c
>> -+++ b/_mysql.c
>> -@@ -2002,7 +2002,14 @@ _mysql_ConnectionObject_ping(
>> -       int r, reconnect = -1;
>> -       if (!PyArg_ParseTuple(args, "|I", &reconnect)) return NULL;
>> -       check_connection(self);
>> --      if ( reconnect != -1 ) self->connection.reconnect = reconnect;
>> -+      if ( reconnect != -1 ) {
>> -+#if MYSQL_VERSION_ID >= 50013
>> -+              my_bool recon = reconnect;
>> -+              mysql_options(&self->connection, MYSQL_OPT_RECONNECT, &recon);
>> -+#else
>> -+              self->connection.reconnect = reconnect;
>> -+#endif
>> -+        }
>> -       Py_BEGIN_ALLOW_THREADS
>> -       r = mysql_ping(&(self->connection));
>> -       Py_END_ALLOW_THREADS
>> diff --git a/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb b/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb
>> deleted file mode 100644
>> index 15f6b6fb9..000000000
>> --- a/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb
>> +++ /dev/null
>> @@ -1,26 +0,0 @@
>> -SUMMARY = "Python interface to MySQL"
>> -HOMEPAGE = "https://github.com/farcepest/MySQLdb1"
>> -SECTION = "devel/python"
>> -LICENSE = "GPL-2.0-only"
>> -LIC_FILES_CHKSUM = "file://GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a4263"
>> -
>> -DEPENDS = "mysql5"
>> -
>> -SRCNAME = "MySQL-python"
>> -
>> -SRC_URI = "https://pypi.python.org/packages/source/M/${SRCNAME}/${SRCNAME}-${PV}.zip \
>> -           file://0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch \
>> -"
>> -SRC_URI[md5sum] = "654f75b302db6ed8dc5a898c625e030c"
>> -SRC_URI[sha256sum] = "811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74"
>> -
>> -S = "${WORKDIR}/${SRCNAME}-${PV}"
>> -
>> -SKIP_RECIPE[mysql-python] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"
>> -
>> -inherit ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "setuptools", "", d)}
>> -
>> -python() {
>> -    if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
>> -        raise bb.parse.SkipRecipe('Requires meta-python2 to be present.')
>> -}
>> --
>> 2.39.2
>>
diff mbox series

Patch

diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
index 6f31283fb..9523e78dd 100644
--- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
+++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
@@ -13,7 +13,6 @@  PACKAGES = "\
     packagegroup-meta-oe-crypto \
     packagegroup-meta-oe-bsp \
     packagegroup-meta-oe-dbs \
-    packagegroup-meta-oe-dbs-python2 \
     packagegroup-meta-oe-devtools \
     packagegroup-meta-oe-extended \
     packagegroup-meta-oe-extended-python2 \
@@ -40,7 +39,6 @@  RDEPENDS:packagegroup-meta-oe = "\
     packagegroup-meta-oe-core \
     packagegroup-meta-oe-crypto \
     packagegroup-meta-oe-dbs \
-    ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "packagegroup-meta-oe-dbs-python2", "", d)} \
     packagegroup-meta-oe-devtools \
     packagegroup-meta-oe-extended \
     ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "packagegroup-meta-oe-extended-python2", "", d)} \
@@ -225,10 +223,6 @@  RDEPENDS:packagegroup-meta-oe-dbs ="\
 "
 RDEPENDS:packagegroup-meta-oe-dbs:remove:libc-musl:powerpc = "rocksdb"
 
-RDEPENDS:packagegroup-meta-oe-dbs-python2 ="\
-    ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', 'mysql-python', '', d), "", d)} \
-"
-
 RDEPENDS:packagegroup-meta-oe-devtools ="\
     abseil-cpp \
     apitrace \
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 173241ea5..000000000
--- 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 @@ 
-From 45436592aa64308b2ab46f84c6107c6d7de0a3ec Mon Sep 17 00:00:00 2001
-From: Mingli Yu <mingli.yu@windriver.com>
-Date: Wed, 6 Mar 2019 00:16:17 -0800
-Subject: [PATCH] _mysql.c: fix compilation with MariaDB 10.3.13
-
-Use standard API function MYSQL_OPT_RECONNECT
-instead of direct modification of internal structures
-which does not work for MariaDB.
-
-Upstream-Status: Pending
-
-Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
----
- _mysql.c | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
-
---- a/_mysql.c
-+++ b/_mysql.c
-@@ -2002,7 +2002,14 @@ _mysql_ConnectionObject_ping(
- 	int r, reconnect = -1;
- 	if (!PyArg_ParseTuple(args, "|I", &reconnect)) return NULL;
- 	check_connection(self);
--	if ( reconnect != -1 ) self->connection.reconnect = reconnect;
-+	if ( reconnect != -1 ) {
-+#if MYSQL_VERSION_ID >= 50013
-+		my_bool recon = reconnect;
-+		mysql_options(&self->connection, MYSQL_OPT_RECONNECT, &recon);
-+#else
-+		self->connection.reconnect = reconnect;
-+#endif
-+        }
- 	Py_BEGIN_ALLOW_THREADS
- 	r = mysql_ping(&(self->connection));
- 	Py_END_ALLOW_THREADS
diff --git a/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb b/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb
deleted file mode 100644
index 15f6b6fb9..000000000
--- a/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb
+++ /dev/null
@@ -1,26 +0,0 @@ 
-SUMMARY = "Python interface to MySQL"
-HOMEPAGE = "https://github.com/farcepest/MySQLdb1"
-SECTION = "devel/python"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-
-DEPENDS = "mysql5"
-
-SRCNAME = "MySQL-python"
-
-SRC_URI = "https://pypi.python.org/packages/source/M/${SRCNAME}/${SRCNAME}-${PV}.zip \
-           file://0001-_mysql.c-fix-compilation-with-MariaDB-with-10.3.13.patch \
-"
-SRC_URI[md5sum] = "654f75b302db6ed8dc5a898c625e030c"
-SRC_URI[sha256sum] = "811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74"
-
-S = "${WORKDIR}/${SRCNAME}-${PV}"
-
-SKIP_RECIPE[mysql-python] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"
-
-inherit ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "setuptools", "", d)}
-
-python() {
-    if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
-        raise bb.parse.SkipRecipe('Requires meta-python2 to be present.')
-}