Bug 53381 - new ebuilds: for mysql-python-1.0.0.ebuild, mysql-python-1.1.1.ebuild
Bug#: 53381 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: python@gentoo.org Reported By: alex@halogen-dg.com
Component: Ebuilds
URL: 
Summary: new ebuilds: for mysql-python-1.0.0.ebuild, mysql-python-1.1.1.ebuild
Keywords:  
Status Whiteboard: 
Opened: 2004-06-09 00:25 0000
Description:   Opened: 2004-06-09 00:25 0000
Hi,

In fact, those ebuilds were done by copiyng old 0.9.2-r1 to the new filename. I made several tests, indicating that ebuilds are working fine. 

Download is going from sourceforge in my test attemps, I think somebody will need to place mysql-python tar's to the gentoo mirrors.

I will attach 2 ebuild files and 2 digests.

Thanks.

Alex

------- Comment #1 From Alex V. Koval 2004-06-09 00:27:00 0000 -------
Created an attachment (id=32951) [details]
mysql-python-1.0.0.ebuild

------- Comment #2 From Alex V. Koval 2004-06-09 00:27:19 0000 -------
Created an attachment (id=32952) [details]
digest-mysql-python-1.1.1

------- Comment #3 From Alex V. Koval 2004-06-09 00:27:40 0000 -------
Created an attachment (id=32953) [details]
digest-mysql-python-1.0.0

------- Comment #4 From Alex V. Koval 2004-06-09 00:28:00 0000 -------
Created an attachment (id=32954) [details]
digest-mysql-python-1.1.1

------- Comment #5 From Alex V. Koval 2004-06-09 00:41:34 0000 -------
Created an attachment (id=32955) [details]
mysql-python-1.0.0.ebuild

Fixed ebuild by putting unstable flag (~) to all archs

------- Comment #6 From Alex V. Koval 2004-06-09 00:43:54 0000 -------
(From update of attachment 32951 [details])
obsolete - it should be unstable

------- Comment #7 From Alex V. Koval 2004-06-09 00:44:27 0000 -------
(From update of attachment 32954 [details])
duplicate

------- Comment #8 From Alex V. Koval 2004-06-09 00:46:21 0000 -------
Created an attachment (id=32958) [details]
mysql-python-1.1.1.ebuild

------- Comment #9 From Bryan Østergaard (RETIRED) 2004-06-12 13:06:16 0000 -------
Thanks, I added mysql-python-1.0.0 to portage. Btw, next time is good enough
just saying that copying the existing ebuild worked.

------- Comment #10 From Andy Dustman 2004-06-14 13:41:59 0000 -------
Not a big issue, but note that the setup.py has changed in 1.0.0 and newer.
Instead of this:

src_compile() {
        if has_version '>=dev-db/mysql-4.0.10' >& /dev/null ; then
                sed -i 's/thread_safe_library = YES/thread_safe_library = NO/'
setup.py
        fi
        distutils_src_compile
}

you should do this:

src_compile() {
        if has_version '>=dev-db/mysql-4.0.10' >& /dev/null ; then
                export mysqlclient="mysqlclient"
        else
                export mysqlclient="mysqlclient_r"
        fi
        export mysqlversion="$(mysql_config --version)"
        distutils_src_compile
}

None of that thread_safe_library stuff is there anymore. It still works,
though, by virtue of defaulting to using -lmysqlclient. (Please test this; I
wrote the above on the fly.)

Additionally, I'd like to see see 1.1.2 in the Portage tree (masked for
testing, of course) once I release it. 1.1.2 will probably be the last release
before 1.2. I hope to release 1.2 in early July. 1.1/1.2 drops  support for
ancient versions of Python (needs at least 2.3), so it should be faster and
less kludgy/crufty.