* Michael Franzl <[email protected]> [121111 16:15]: > While building the package, I came across a problem that I don't > know how to resolve. The spec tests attempt to connect to a running > mysql server. The error message is: > > ./lib/mysql2/client.rb:44:in `connect': Can't connect to local > MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) > (Mysql2::Error) > > Naturally, I added mysql-server as Build-Depends, to no avail. > > The next idea I had was that the server was not running. So I > attempted to start it in an override rule like so: > > override_dh_auto_install: > mysqld_safe & > dh_auto_install
This is not a good idea. Most likely it will fail on the autobuilders or during an auto-testing run then. If the upstream test suite doesn't have provisions to start and reliably stop a mysqld process (and you can't easily add that), it's probably best to not run the test suite. -ch -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/20121111153212.GA10365@monique

