Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129987 - Version bump for dev-python/mysql-python: 1.2.1
Summary: Version bump for dev-python/mysql-python: 1.2.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 132351 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-14 14:47 UTC by Dirkjan Ochtman (RETIRED)
Modified: 2006-07-16 07:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New ebuild for 1.2.1. (mysql-python-1.2.1.ebuild,712 bytes, patch)
2006-04-14 15:08 UTC, Dirkjan Ochtman (RETIRED)
Details | Diff
New ebuild for new MySQLdb. (mysql-python-1.2.1_p2.ebuild,712 bytes, patch)
2006-05-05 09:34 UTC, Dirkjan Ochtman (RETIRED)
Details | Diff
New version, incorporated comments from adustman. (mysql-python-1.2.1_p2.ebuild,647 bytes, patch)
2006-05-11 02:27 UTC, Dirkjan Ochtman (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirkjan Ochtman (RETIRED) gentoo-dev 2006-04-14 14:47:44 UTC
Okay, there's going to be a patch-level release soon (see http://sourceforge.net/forum/forum.php?forum_id=559852), but it would be seriously nice to have this -- it has some good improvements (character encoding).

I will attach a very basic ebuild (based on 1.2.0-r1).
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2006-04-14 15:08:50 UTC
Created attachment 84669 [details, diff]
New ebuild for 1.2.1.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-05-05 09:16:05 UTC
*** Bug 132351 has been marked as a duplicate of this bug. ***
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2006-05-05 09:33:43 UTC
There's been an updated version from upstream, 1.2.1_p2, which fixes some compatibility problems with MySQL versions < 4.1. I've copied my ebuild, seems to work (attaching).
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2006-05-05 09:34:31 UTC
Created attachment 86206 [details, diff]
New ebuild for new MySQLdb.
Comment 5 Andy Dustman 2006-05-10 11:40:43 UTC
Using the mysqlclient enviroment variable no longer does anything in 1.2.1 and newer. If you have to change any build options, just overwrite site.cfg. By default, it will use the threadsafe (mysqlclient_r) libraries, which should not be an issue for Gentoo. You should be able to remove the src_compile() function.

You may want to reexamine src_install() because there are no HTML docs included anymore; you need to generate them with docutils. Everything in doc is .txt (actually ReStructured Text). You could DEPEND="... ?doc ( dev-python/docutils )" and then use doc && rst2html.py to generate the HTML.

Minimum supported MySQL version is 4.0, but there are no known issues with 3.23. Most of the testing was with 5.0 on amd64, with some on 4.1 on x86 (actually Ubuntu), and not very much (none, really, that's why there's the p2 release) on 4.0. 

Gentoo is still my primary development environment for MySQLdb, so the default settings should work fine. I'm watching this bug but you can mail me off-bug if you have questions/problems.
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2006-05-11 02:26:39 UTC
I think having the ReST-docs is just fine, instead of the HTML-version (but then I never much used the docs myself, I don't usually enable the doc useflag).

Thanks for the comments, though! I incorporated them in the new version I'm about to attach.
Comment 7 Dirkjan Ochtman (RETIRED) gentoo-dev 2006-05-11 02:27:46 UTC
Created attachment 86597 [details, diff]
New version, incorporated comments from adustman.
Comment 8 Martin Mokrejš 2006-05-12 15:03:32 UTC
I tested the ebuild and it works fine for me. More over, the 1.2.1 version has fixed utf8 support so just upgrading from 1.2.0-r1 enabled me to pass unicode data to mysql-python driver which automatically converts that to the utf8 charset, as specified by the mysql column definition. Very nice. The Decimal patch is incorporated in 1.2.1 release so I don't see a reason why this should not be injected into portage. Please mark stable on ~x86. Thanks. ;)
Comment 9 Alastair Tse (RETIRED) gentoo-dev 2006-07-16 07:27:57 UTC
Thanks for the ebuild, it is now in portage and 1.2.0-r1 is now the stable in x86 as it should be.