[DRE-maint] Bug#782768: Tests fail against MySQL 5.6

Robie Basak robie.basak at ubuntu.com
Fri Apr 17 15:15:58 UTC 2015


Source: ruby-mysql2
Version: 0.3.16-2
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu vivid

Hi,

I'm wearing both my Ubuntu developer hat and my Debian MySQL packaging
team hat for this report. This bug will impact Debian when we update to
MySQL 5.6 in stretch.

In the transition for MySQL 5.6 in Ubuntu, I found that the ruby-mysql2
package failed to build due to failing tests.

This seems to be because debian/start_mysqld_and_auto_install.sh
attempts to create a database called "test", except that the previous
call to mysql_install_db already created it. In 5.6, we are no longer
patching mysql_install_db to not create the test database, since we
aren't using this path to create the default database.

Downstream bug: https://launchpad.net/bugs/1423026

The workaround I applied was just to comment out the CREATE DATABASE
line:

http://launchpadlibrarian.net/197980584/ruby-mysql2_0.3.16-2_0.3.16-2ubuntu1.diff.gz

Norvald's suggestion to use IF NOT EXISTS seems to be the best one to
me, since I don't particularly want to continue patching
mysql_install_db.

Robie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20150417/9e4dce71/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list