Hi! On Sun, Nov 11, 2012 at 04:15:24PM +0100, Michael Franzl wrote: > I see there are the mailing lists "pkg-ruby-extras-maintainers" and > "pkg-ruby-extras-commits". Should the discussion continue there? pkg-ruby-extras-maintainers mailing list is for technical messages (bug reports, notifications of transition to testing, confirmation of uploads and other notifications). pkg-ruby-extras-commit mailing list contains the commits in the repos of the team. So definitely, it is better to keep the discussion here. > 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 > It didn't work. `service mysql start` complained that the partition > /var was full, so that didn't work either. > Then I looked at the ruby-mysql package, and it seems that it > doesn't run the tests at all. > What to do? Maybe you can have a look at ruby-dataobjects-mysql. A script is called to run the mysql server before running the tests. It was adapted from the libdbi-drivers source package. Maybe you'll find it inspiring. Cédric
Attachment:
signature.asc
Description: Digital signature