Package: moin
Version: 1.9.7-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu wily ubuntu-patch
Dear Maintainer,
In Ubuntu, the attached patch was applied to achieve the following:
* debian/patches/pymysql-replacement.patch: Use pymysql as drop in
replacement for MySQLdb.
* debian/control: Drop python-mysqldb in favor of python-pymysql.
Thanks for considering the patch.
-- System Information:
Debian Release: jessie/sid
APT prefers vivid-updates
APT policy: (500, 'vivid-updates'), (500, 'vivid-security'), (500, 'vivid'),
(100, 'vivid-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.19.0-26-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru moin-1.9.7/debian/patches/pymysql-replacement.patch moin-1.9.7/debian/patches/pymysql-replacement.patch
--- moin-1.9.7/debian/patches/pymysql-replacement.patch 1969-12-31 19:00:00.000000000 -0500
+++ moin-1.9.7/debian/patches/pymysql-replacement.patch 2015-08-25 15:30:13.000000000 -0400
@@ -0,0 +1,16 @@
+Description: Use pymysql as a drop-in replacement for MySQLdb.
+Author: Corey Bryant <[email protected]>
+Forwarded: not-needed
+
+--- a/MoinMoin/auth/mysql_group.py
++++ b/MoinMoin/auth/mysql_group.py
+@@ -8,6 +8,9 @@
+ @license: GNU GPL, see COPYING for details.
+ """
+
++import pymysql
++pymysql.install_as_MySQLdb()
++
+ import MySQLdb
+
+ from MoinMoin import log
diff -Nru moin-1.9.7/debian/patches/series moin-1.9.7/debian/patches/series
--- moin-1.9.7/debian/patches/series 2015-08-24 09:39:40.000000000 -0400
+++ moin-1.9.7/debian/patches/series 2015-08-25 15:28:38.000000000 -0400
@@ -7,3 +7,4 @@
mail-verification.patch
external_account_creation_check.patch
avoid_empty_dir_creation.patch
+pymysql-replacement.patch