Package: php-horde-db
Version: 2.3.1-4
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu yakkety ubuntu-patch

Dear Maintainer,

The php-horde-db tests will fail due to an incompatible change in MySQL
5.7.

In Ubuntu, the attached patch was applied to achieve the following:
    - Update test compatibility with MySQL 5.7 (LP #1568015).

Thanks for considering the patch.


-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 
'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-24-generic (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru php-horde-db-2.3.1/debian/tests/phpunit php-horde-db-2.3.1/debian/tests/phpunit
--- php-horde-db-2.3.1/debian/tests/phpunit	2016-06-07 13:34:12.000000000 -0700
+++ php-horde-db-2.3.1/debian/tests/phpunit	2016-06-16 15:59:08.000000000 -0700
@@ -7,7 +7,7 @@
 export DB_ADAPTER_PDO_MYSQL_TEST_CONFIG='{"db":{"adapter":{"pdo":{"mysql":{"test":{"host":"localhost","username":"root","password":"","dbname":"test"}}}}}}'
 export DB_ADAPTER_PDO_PGSQL_TEST_CONFIG='{"db":{"adapter":{"pdo":{"pgsql":{"test":{"host":"localhost","username":"test","password":"test","dbname":"test"}}}}}}'
 
-mysql -e 'create database IF NOT EXISTS test;' -uroot
+mysql -e "create database IF NOT EXISTS test; ALTER USER 'root'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY '';" -uroot
 su postgres --command 'createdb test'
 su postgres --command "psql -c \"CREATE USER test WITH PASSWORD 'test';\""
 su postgres --command "psql -c \"GRANT ALL ON DATABASE test TO test;\""

Reply via email to