Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282617 - dev-python/mysql-python should not depend on virtual/mysql
Summary: dev-python/mysql-python should not depend on virtual/mysql
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 282620 282621 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-24 21:23 UTC by Christian Baumhof
Modified: 2009-09-10 22:58 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Baumhof 2009-08-24 21:23:07 UTC
dev-python/mysql-python installs the whole mysql package, while it can be used just to connect to databases on different machines.

Reproducible: Always
Comment 1 Lars Wendler (Polynomial-C) gentoo-dev 2009-08-25 06:13:49 UTC
*** Bug 282620 has been marked as a duplicate of this bug. ***
Comment 2 Lars Wendler (Polynomial-C) gentoo-dev 2009-08-25 06:13:57 UTC
*** Bug 282621 has been marked as a duplicate of this bug. ***
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-26 10:32:38 UTC
We can add "minimal" USE flag, whose enabling would disable dependency on mysql.
Comment 4 Christian Baumhof 2009-08-26 14:09:14 UTC
I don't really like that idea. minimal is explained as "Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)", but every single feature of dev-python/mysql-python works without a local install of mysql.

And that leads me to the question: Why does that dependency exist in the first place?
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-10 22:58:59 UTC
>>> Compiling source in /var/tmp/portage/dev-python/mysql-python-1.2.3_rc1/work/MySQL-python-1.2.3c1 ...                                                     
python setup.py build                                                                                                                                        
/usr/lib64/python2.6/site-packages/Pyrex/Compiler/Errors.py:17: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6               
  self.message = message                                                                                                                                     
sh: mysql_config: command not found                                                                                                                          
Traceback (most recent call last):                                                                                                                           
  File "setup.py", line 15, in <module>                                                                                                                      
    metadata, options = get_config()                                                                                                                         
  File "/var/tmp/portage/dev-python/mysql-python-1.2.3_rc1/work/MySQL-python-1.2.3c1/setup_posix.py", line 43, in get_config                                 
    libs = mysql_config("libs_r")                                                                                                                            
  File "/var/tmp/portage/dev-python/mysql-python-1.2.3_rc1/work/MySQL-python-1.2.3c1/setup_posix.py", line 24, in mysql_config                               
    raise EnvironmentError("%s not found" % (mysql_config.path,))                                                                                            
EnvironmentError: mysql_config not found                                                                                                                     
 *
 * ERROR: dev-python/mysql-python-1.2.3_rc1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3154:  Called distutils_src_compile
 *             environment, line  783:  Called die
 * The specific snippet of code:
 *           ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed";
 *  The die message:
 *   Building failed