[Bug 1592664] [NEW] python-pymysql fails to build on xenial and yakkety

Launchpad Bug Tracker 1592664 at bugs.launchpad.net
Thu Aug 4 17:52:45 UTC 2016


You have been subscribed to a public bug by Robie Basak (racb):

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://github.com/PyMySQL/PyMySQL/issues/478

[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://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20160614-xenial.html

   debian/rules override_dh_auto_test
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/run_tests.sh
+ mktemp -d
+ MYTEMP_DIR=/tmp/tmp.i5ZAMugsdp
+ whoami
+ ME=buildd
+ mysql_install_db --no-defaults --datadir=/tmp/tmp.i5ZAMugsdp --force --skip-name-resolve --user=buildd
mysql_install_db: [ERROR] unknown option '--force'
2016-06-03 11:03:28 [ERROR]   Unrecognized options
debian/rules:25: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
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

** Affects: python-pymysql (Ubuntu)
     Importance: High
     Assignee: Lars Tangvald (lars-tangvald)
         Status: Triaged

** Affects: python-pymysql (Ubuntu Xenial)
     Importance: High
     Assignee: Lars Tangvald (lars-tangvald)
         Status: Triaged


** Tags: ftbfs mysql-5.7-transition patch
-- 
python-pymysql fails to build on xenial and yakkety
https://bugs.launchpad.net/bugs/1592664
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list