mtop will not install if mysql-server is not present, even though it does not list it in 'depends'

Bug #275881 reported by Attila Csipa
4
Affects Status Importance Assigned to Milestone
mtop (Ubuntu)
Confirmed
Undecided
Unassigned
Declined for Hardy by Luca Falavigna

Bug Description

Binary package hint: mtop

Description: Ubuntu 8.04.1
Release: 8.04

mtop:
  Installed: 0.6.6-1.2

Depends: perl, debconf (>= 1.2.9) | debconf-2.0, libcurses-perl, libdbd-mysql-perl, libnet-perl, mysql-client
Recommends: mysql-server

However, the the install fails if mysql-server is NOT installed.

Setting up mtop (0.6.6-1.2) ...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dpkg: error processing mtop (--configure):
 subprocess post-installation script returned error exit status 1

Apparently it tries to connect to a local mysql server. This means that it should fail gracefully if no mysql server is present, which is a valid use-case scenario (mtopping a remote mysql server, for example).

Revision history for this message
Alessio Treglia (quadrispro) wrote :

Can you confirm this bug for Intrepid?

Revision history for this message
Attila Csipa (achipa) wrote :

Yes, mtop is the same version in Intrepid and behaves just the same.

Revision history for this message
Alessio Treglia (quadrispro) wrote :

In Intrepid, recommended packages will be installed by default, so I think it's unnecessary move mysql-server from Recommends to Depends.

That's a fix for Hardy.

Changed in mtop:
status: New → Confirmed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Package can't depend on mysql-server because great majority of systems don't have it by default. Using debconf or dbconfig-common to skip configuration phase if server is not available is a much better solution, but requires coordination with Debian maintainer.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.