Patchwork [meta-oe,04/12] mysql-python: add dependency on mysql

login
register
mail settings
Submitter Martin Jansa
Date Aug. 9, 2013, 8:54 a.m.
Message ID <1376038471-32202-4-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/55381/
State Accepted
Commit f32956c1d6b473c80512c5ad82754ce090524a02
Headers show

Comments

Martin Jansa - Aug. 9, 2013, 8:54 a.m.
* fails without mysql_config:
  ERROR: Function failed: do_compile (log file is located at mysql-python/1.2.4-r0/temp/log.do_compile.29833)
  ERROR: Logfile of failure stored in: mysql-python/1.2.4-r0/temp/log.do_compile.29833
  Log data follows:
  | DEBUG: Executing shell function do_compile
  | sh: 1: mysql_config: not found
  | Traceback (most recent call last):
  |   File "setup.py", line 18, in <module>
  |     metadata, options = get_config()
  |   File "mysql-python/1.2.4-r0/MySQL-python-1.2.4/setup_posix.py", line 43, in get_config
  |     libs = mysql_config("libs_r")
  |   File "mysql-python/1.2.4-r0/MySQL-python-1.2.4/setup_posix.py", line 25, in mysql_config
  |     raise EnvironmentError("%s not found" % (mysql_config.path,))
  | EnvironmentError: mysql_config not found
  | ERROR: python setup.py build_ext execution failed.
  | ERROR: Function failed: do_compile (log file is located at mysql-python/1.2.4-r0/temp/log.do_compile.29833)
  NOTE: recipe mysql-python-1.2.4-r0: task do_compile: Failed
  ERROR: Task 6 (meta-oe/recipes-support/mysql/mysql-python_1.2.4.bb, do_compile) failed with exit code '1'

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-oe/recipes-support/mysql/mysql-python_1.2.4.bb | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta-oe/recipes-support/mysql/mysql-python_1.2.4.bb b/meta-oe/recipes-support/mysql/mysql-python_1.2.4.bb
index 37ad21c..678f17c 100644
--- a/meta-oe/recipes-support/mysql/mysql-python_1.2.4.bb
+++ b/meta-oe/recipes-support/mysql/mysql-python_1.2.4.bb
@@ -4,6 +4,8 @@  SECTION = "devel/python"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
+DEPENDS = "mysql5"
+
 PR = "r0"
 SRCNAME = "MySQL-python"