- Package:
- roundcube-core
- Source:
- roundcube
- Submitter:
- Chloé Desoutter
- Date:
- 2021-05-27 00:15:07 UTC
- Severity:
- minor
- Tags:
Roundcube is most often used with MySQL on bigger hosts. It uses the MDB2 PHP
library. The package should suggest php-mdb2-driver-mysql and/or
php-mdb2-driver-pgsql, otherwise it does not work straight out of the box,
and only a quite misleading error message ("Could not establish connection
to the database") is displayed.
This would be a good improvement, especially since we have dbconfig proposed
as an option.
OoO Peu avant le début de l'après-midi du jeudi 13 janvier 2011, vers 13:52, Chloé Desoutter <chloe.desoutter@gmail.com> disait : roundcube-mysql already depends on php-mdb2-driver-mysql.
2011/1/13 Vincent Bernat <bernat@debian.org> Wouldn't it be adapted, since roundcube depends on either mysql, postgresql or sqlite to make roundcube a virtual or so package provided by roundcube-mysql, roundcube-pgsql and roundcube-sqlite, and depending on roundcube-core and a new roundcube-common ? This way, a Roundcube setup would work straight out of the box and we users would have to make a choice at setup. Since a database backend is absolutely necessary for Roundcube, this seems to be a better option. What's your opinion ?
OoO Pendant le journal télévisé du jeudi 13 janvier 2011, vers 20:46,
Chloé Desoutter <chloe.desoutter@gmail.com> disait :
Currently, roundcube depends on roundcube-sqlite | roundcube-mysql |
roundcube-pgsql. roundcube-{backend} does not pull roundcube because
there would be a circular dependency and this is considered bad
practice.
Your solution would be to turn roundcube into a virtual package provided
by roundcube-{backend}. Therefore, installing roundcube will pull one of
the roundcube-{backend}. I don't see any improvement over the current
solution.
Maybe, the confusion is that the user type "apt-get install roundcube",
then is asked whetever he wants to use "sqlite", "mysql" or "postgresql"
even if "roundcube-sqlite" was pulled and the system does not contain
the appropriate dependencies for the other two. We did not find any
simple solution to this problem. Maybe, roundcube could suggests
php-mdb2-driver-pgsql and php-mdb2-driver-mysql. Those are small
dependencies. This way, a user using "apt-get install roundcube" and
having a working installation of MySQL (and therefore a working mysql
client) but not MDB2 driver for MySQL will get a functional installation
even if he did not notice that there is a roundcube-mysql package that
should be used in his case.