[pkg-horde] Bug#829264: php-horde-activesync: update for MySQL 5.7 compatibility by setting root password

Nishanth Aravamudan nish.aravamudan at canonical.com
Fri Jul 1 19:44:28 UTC 2016


Package: php-horde-activesync
Version: 2.34.0-1
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu yakkety ubuntu-patch

Dear Maintainer,

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.

*** /tmp/tmpvIXQYx/php-horde-activesync_2.34.0-1ubuntu1.debdiff
diff -Nru php-horde-activesync-2.34.0/debian/tests/control php-horde-activesync-2.34.0/debian/tests/control
--- php-horde-activesync-2.34.0/debian/tests/control	2016-06-08 12:00:51.000000000 -0700
+++ php-horde-activesync-2.34.0/debian/tests/control	2016-07-01 12:28:02.000000000 -0700
@@ -1,3 +1,3 @@
 Tests: phpunit
-Restrictions: needs-recommends isolation-container
+Restrictions: needs-recommends needs-root isolation-container
 Depends: @, php-cli, php-horde-test, php-sqlite3, mysql-server, php-mysql
diff -Nru php-horde-activesync-2.34.0/debian/tests/phpunit php-horde-activesync-2.34.0/debian/tests/phpunit
--- php-horde-activesync-2.34.0/debian/tests/phpunit	2016-06-08 12:00:51.000000000 -0700
+++ php-horde-activesync-2.34.0/debian/tests/phpunit	2016-07-01 12:04:20.000000000 -0700
@@ -2,11 +2,11 @@
 
 set -e
 
-export ACTIVESYNC_SQL_MYSQL_TEST_CONFIG='{"activesync":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}'
-export ACTIVESYNC_SQL_MYSQLI_TEST_CONFIG='{"activesync":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}'
-export ACTIVESYNC_SQL_PDO_MYSQL_TEST_CONFIG='{"activesync":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"","dbname":"test","charset":"utf-8"}}}}'
+export ACTIVESYNC_SQL_MYSQL_TEST_CONFIG='{"activesync":{"sql":{"mysql":{"adapter":"mysql","host":"localhost","username":"root","password":"r00t","dbname":"test","charset":"utf-8"}}}}'
+export ACTIVESYNC_SQL_MYSQLI_TEST_CONFIG='{"activesync":{"sql":{"mysqli":{"adapter":"mysqli","host":"localhost","username":"root","password":"r00t","dbname":"test","charset":"utf-8"}}}}'
+export ACTIVESYNC_SQL_PDO_MYSQL_TEST_CONFIG='{"activesync":{"sql":{"pdo_mysql":{"adapter":"pdo_mysql","host":"localhost","username":"root","password":"r00t","dbname":"test","charset":"utf-8"}}}}'
 
-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 'r00t';" -uroot
 
 cd Horde_ActiveSync*/test/./Horde/ActiveSync
 phpunit -v .


-- 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)

-- 
Nishanth Aravamudan
Ubuntu Server
Canonical Ltd



More information about the pkg-horde-hackers mailing list