[pkg-horde] Bug#827491: php-horde-db: make test mysql-5.7 compatible

Nishanth Aravamudan nish.aravamudan at canonical.com
Tue Jun 21 23:03:46 UTC 2016


Package: php-horde-db
Version: 2.3.1-5
Followup-For: Bug #827491
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu yakkety ubuntu-patch

Dear Maintainer,

After syncing the Debian 2.3.1-5 to Ubuntu, we are seeing autopkgtest
failures
(ihttps://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-yakkety/yakkety/amd64/p/php-horde-db/20160621_180107@/log.gz).

Our prior version (2.3.1-4ubuntu1)'s delta simply made root have an
empty password, so we didn't notice the dependencies on non-MYSQLI
config changes.

In Ubuntu, the attached patch leads to a successful autopkgtest run.
Thanks for considering the patch.

*** /tmp/tmpmuZaYs/php-horde-db_2.3.1-6.debdiff
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-18 13:46:07.000000000 -0700
+++ php-horde-db-2.3.1/debian/tests/phpunit	2016-06-21 15:22:23.000000000 -0700
@@ -2,9 +2,9 @@
 
 set -e
 
-export DB_ADAPTER_MYSQL_TEST_CONFIG='{"db":{"adapter":{"mysql":{"test":{"host":"localhost","username":"root","password":"","dbname":"test"}}}}}'
+export DB_ADAPTER_MYSQL_TEST_CONFIG='{"db":{"adapter":{"mysql":{"test":{"host":"localhost","username":"root","password":"r00t","dbname":"test"}}}}}'
 export DB_ADAPTER_MYSQLI_TEST_CONFIG='{"db":{"adapter":{"mysqli":{"test":{"host":"localhost","username":"root","password":"r00t","dbname":"test"}}}}}'
-export DB_ADAPTER_PDO_MYSQL_TEST_CONFIG='{"db":{"adapter":{"pdo":{"mysql":{"test":{"host":"localhost","username":"root","password":"","dbname":"test"}}}}}}'
+export DB_ADAPTER_PDO_MYSQL_TEST_CONFIG='{"db":{"adapter":{"pdo":{"mysql":{"test":{"host":"localhost","username":"root","password":"r00t","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; ALTER USER 'root'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY 'r00t';" -uroot


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