python-pymysql fails to build on xenial and yakkety
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-pymysql (Ubuntu) |
Fix Released
|
High
|
Lars Tangvald | ||
Xenial |
Fix Released
|
High
|
Lars Tangvald |
Bug Description
Python-pymysql sets up MySQL in a temporary location for running its tests. It runs mysql_install_db and mysqld using options that have been removed in 5.7, causing d/run_tests.sh to fail.
Additionally, there's a test that fails in 5.7; It expects a deprecation warning that 5.7 gives, but only for python >= 3.2. The test failure has been fixed upstream: https:/
[Impact]
Test run fails, causing build to fail
[Test Case]
Build python-pymysql from source
[Regression Potential]
The altered database init will not work with MySQL earlier than 5.7 (even the xenial patch that still uses mysql_install_db)
[Original description]
seen with a test rebuild on xenial:
http://
debian/rules override_
make[1]: Entering directory '/«PKGBUILDDIR»'
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
chmod +x debian/run_tests.sh
./debian/
+ mktemp -d
+ MYTEMP_
+ whoami
+ ME=buildd
+ mysql_install_db --no-defaults --datadir=
mysql_install_db: [ERROR] unknown option '--force'
2016-06-03 11:03:28 [ERROR] Unrecognized options
debian/rules:25: recipe for target 'override_
make[1]: *** [override_
make[1]: Leaving directory '/«PKGBUILDDIR»'
debian/rules:10: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Changed in python-pymysql (Ubuntu): | |
assignee: | nobody → Ubuntu Server Team (ubuntu-server) |
tags: | added: mysql-5.7-transition |
Changed in python-pymysql (Ubuntu): | |
assignee: | Ubuntu Server Team (ubuntu-server) → Lars Tangvald (lars-tangvald) |
Changed in python-pymysql (Ubuntu Xenial): | |
assignee: | nobody → Lars Tangvald (lars-tangvald) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in python-pymysql (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in python-pymysql (Ubuntu): | |
milestone: | xenial-updates → none |
Changed in python-pymysql (Ubuntu Xenial): | |
milestone: | none → xenial-updates |
Changed in python-pymysql (Ubuntu Xenial): | |
status: | Incomplete → In Progress |
tags: | removed: verification-needed |
tags: | removed: removal-candidate |
Lars, could you advise please? I suspect the mysql_install_db invocation needs replacing with the new method?