pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/py-mysqldb



Module Name:    pkgsrc
Committed By:   tron
Date:           Wed Oct  6 18:00:13 UTC 2021

Modified Files:
        pkgsrc/databases/py-mysqldb: Makefile PLIST distinfo
        pkgsrc/databases/py-mysqldb/patches: patch-_mysql.c

Log Message:
py-mysqldb: Update to version 1.3.10

- Python 3 support
- bug fixes


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 pkgsrc/databases/py-mysqldb/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/databases/py-mysqldb/PLIST
cvs rdiff -u -r1.14 -r1.15 pkgsrc/databases/py-mysqldb/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/databases/py-mysqldb/patches/patch-_mysql.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/py-mysqldb/Makefile
diff -u pkgsrc/databases/py-mysqldb/Makefile:1.51 pkgsrc/databases/py-mysqldb/Makefile:1.52
--- pkgsrc/databases/py-mysqldb/Makefile:1.51   Tue Jul 27 23:21:23 2021
+++ pkgsrc/databases/py-mysqldb/Makefile        Wed Oct  6 18:00:12 2021
@@ -1,24 +1,23 @@
-# $NetBSD: Makefile,v 1.51 2021/07/27 23:21:23 tron Exp $
+# $NetBSD: Makefile,v 1.52 2021/10/06 18:00:12 tron Exp $
 
-DISTNAME=      MySQL-python-1.2.5
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/MySQL-python/mysqldb/}
-PKGREVISION=   2
+DISTNAME=      mysqlclient-1.3.10
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/mysqlclient/mysqldb/}
 CATEGORIES=    databases python
-MASTER_SITES=  ${MASTER_SITE_PYPI:=M/MySQL-python/}
-EXTRACT_SUFX=  .zip
+MASTER_SITES=  ${MASTER_SITE_PYPI:=m/mysqlclient/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://github.com/farcepest/MySQLdb1/
+HOMEPAGE=      https://pypi.org/project/mysqlclient/1.3.10/
 COMMENT=       MySQL interface for Python
 LICENSE=       gnu-gpl-v2
 
-PYTHON_VERSIONS_ACCEPTED=      27 # not yet ported as of 1.2.5
-
 USE_LANGUAGES=         c
 
-# These files must not be world-writable.
-pre-configure:
-       ${CHMOD} go-w ${WRKSRC}/MySQL_python.egg-info/*
+PYPKGVER=      ${PYPKGPREFIX:S/py//}
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/${PYSITELIB}/MySQLdb/__pycache__ && \
+       ${RM} -f compat.cpython-${PYPKGVER}.opt-1.pyc \
+           compat.cpython-${PYPKGVER}.pyc
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/mysql.buildlink3.mk"

Index: pkgsrc/databases/py-mysqldb/PLIST
diff -u pkgsrc/databases/py-mysqldb/PLIST:1.7 pkgsrc/databases/py-mysqldb/PLIST:1.8
--- pkgsrc/databases/py-mysqldb/PLIST:1.7       Tue Oct 16 07:39:10 2012
+++ pkgsrc/databases/py-mysqldb/PLIST   Wed Oct  6 18:00:12 2021
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2012/10/16 07:39:10 wiz Exp $
+@comment $NetBSD: PLIST,v 1.8 2021/10/06 18:00:12 tron Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -6,6 +6,7 @@ ${PYSITELIB}/${EGG_INFODIR}/top_level.tx
 ${PYSITELIB}/MySQLdb/__init__.py
 ${PYSITELIB}/MySQLdb/__init__.pyc
 ${PYSITELIB}/MySQLdb/__init__.pyo
+${PYSITELIB}/MySQLdb/compat.py
 ${PYSITELIB}/MySQLdb/connections.py
 ${PYSITELIB}/MySQLdb/connections.pyc
 ${PYSITELIB}/MySQLdb/connections.pyo

Index: pkgsrc/databases/py-mysqldb/distinfo
diff -u pkgsrc/databases/py-mysqldb/distinfo:1.14 pkgsrc/databases/py-mysqldb/distinfo:1.15
--- pkgsrc/databases/py-mysqldb/distinfo:1.14   Tue Jul 27 23:21:23 2021
+++ pkgsrc/databases/py-mysqldb/distinfo        Wed Oct  6 18:00:12 2021
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.14 2021/07/27 23:21:23 tron Exp $
+$NetBSD: distinfo,v 1.15 2021/10/06 18:00:12 tron Exp $
 
-SHA1 (MySQL-python-1.2.5.zip) = b935a26b3cf80338bcc21b8a991081d83eb9c3ae
-RMD160 (MySQL-python-1.2.5.zip) = f6638f1bda4c6a3f721c05a5f0029951d07430a9
-SHA512 (MySQL-python-1.2.5.zip) = 37521c6fd855c4cde495cc8ec085aca79c2d441a6e3710759385bf2e2c17f43d3311cf1166663892829d2e3999c419443c358c7031cdda225ac44611ced188d0
-Size (MySQL-python-1.2.5.zip) = 108935 bytes
-SHA1 (patch-_mysql.c) = ebe33a112bb16de85d0bbc4e090c51527cbcdc1d
+SHA1 (mysqlclient-1.3.10.tar.gz) = 2159b38d2a26db7b2c80e47f0c37546832ad2aa5
+RMD160 (mysqlclient-1.3.10.tar.gz) = bcd390694527a5ea71fc3da2d91acd121826a099
+SHA512 (mysqlclient-1.3.10.tar.gz) = 05924b363431e1208c39d4ee39199b06f29025e4fb2abdba5b85e2755d7a69ff921752754700ad34118ce6502ab654eb3e46192b5085f5fb5dca1ac46eaa412e
+Size (mysqlclient-1.3.10.tar.gz) = 82102 bytes
+SHA1 (patch-_mysql.c) = b11be19fbfb3182c218d6186f9ff4890b0f51cfb

Index: pkgsrc/databases/py-mysqldb/patches/patch-_mysql.c
diff -u pkgsrc/databases/py-mysqldb/patches/patch-_mysql.c:1.1 pkgsrc/databases/py-mysqldb/patches/patch-_mysql.c:1.2
--- pkgsrc/databases/py-mysqldb/patches/patch-_mysql.c:1.1      Tue Jul 27 23:21:23 2021
+++ pkgsrc/databases/py-mysqldb/patches/patch-_mysql.c  Wed Oct  6 18:00:12 2021
@@ -1,19 +1,10 @@
-$NetBSD: patch-_mysql.c,v 1.1 2021/07/27 23:21:23 tron Exp $
+$NetBSD: patch-_mysql.c,v 1.2 2021/10/06 18:00:12 tron Exp $
 
 Use official MySQL API to fix build with latest version of MariaDB
 
---- _mysql.c.orig      2014-01-02 13:52:50.000000000 +0000
-+++ _mysql.c   2021-07-28 00:17:13.849678370 +0100
-@@ -40,8 +40,6 @@
- #include "structmember.h"
- #if defined(MS_WINDOWS)
- #include <config-win.h>
--#else
--#include "my_config.h"
- #endif
- #include "mysql.h"
- #include "mysqld_error.h"
-@@ -2002,7 +2000,11 @@
+--- _mysql.c.orig      2017-01-04 12:47:08.000000000 +0000
++++ _mysql.c   2021-10-06 18:21:05.978598645 +0100
+@@ -1908,7 +1908,11 @@
        int r, reconnect = -1;
        if (!PyArg_ParseTuple(args, "|I", &reconnect)) return NULL;
        check_connection(self);



Home | Main Index | Thread Index | Old Index