← 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.6-1ubuntu1

---------------
python-pymysql (0.7.6-1ubuntu1) yakkety; urgency=medium

  * Fix ftfs with MySQL 5.7
    - d/run_tests.sh was using old MySQL initialization. Updated for 5.7:
      - Switched mysql_install_db with mysqld --initialize
      - Removed deprecated option --skip-grant from mysqld
      - Added -uroot to client commands
    (LP: #1592664)

 -- Lars Tangvald <lars.tangvald@xxxxxxxxxx>  Tue, 05 Jul 2016 10:37:47
+0200

** Changed in: python-pymysql (Ubuntu)
       Status: Triaged => 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:
  Incomplete

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