← Back to team overview

group.of.nepali.translators team mailing list archive

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

 

This bug was fixed in the package python-pymysql - 0.7.2-1ubuntu1

---------------
python-pymysql (0.7.2-1ubuntu1) xenial; urgency=medium

  * Fix ftbfs for MySQL 5.7
   - Update database initialization in d/run_tests.sh for 5.7:
     - Switch mysql_install_db with mysqld --initialize
     - Replace --skip-grant with --skip-grant-tables (deprecated)
   - Added patch to fix test failure with 5.7
   (LP: #1592664)

 -- Lars Tangvald <lars.tangvald@xxxxxxxxxx>  Fri, 16 Sep 2016 07:14:50
+0200

** Changed in: python-pymysql (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1592664

Title:
  python-pymysql fails to build on xenial and yakkety

Status in python-pymysql package in Ubuntu:
  Fix Released
Status in python-pymysql source package in Xenial:
  Fix Released

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://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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pymysql/+bug/1592664/+subscriptions