Hi all,

TL;DR;1 if your package depends on dbconfig-common please update your
dependencies when my version 2.0.0 hits the archive (I expect in two
weeks).
TL;DR;2 should the new dbconfig-<dbtype> packages recommend or suggest
the database server packages?

Since I took over the dbconfig-common package I have worked on the
following feature in the dbconfig-common framework: binary packages to
specify in the dependency chain which database types a package supports.

The idea is the following. Each package that used the dbconfig-common
framework to set up databases, should depend on dbconfig-<dbtype> |
dbconfig-no-thanks instead of depending on dbconfig-common (as used to
be the case and still works). What this solves is multiple issues:

0) Bug: 353617¹

1) Because there is an alternative, dbconfig-<dbtype> can depend on the
command-line client for dbtype, instead of <your package> recommending
it. Thus properly signifying the hard requirement of dbconfig-common to
have the command-line client available.

2) For multiple dbtype supported packages the system administrator now
has a way outside of debconf to select which dbtype he wants by
installing the right dbconfig-<dbtype> package. Currently the question
will still be asked though.

3) The system administrator now has a way to say no-thanks to
dbconfig-common (by installing the dbconfig-no-thanks package) on the
system level, rather than per package via debconf.

As a bonus, I can now add the database server packages to recommends,
which should make life of the less experienced user easier. Do you think
I should do this, or should I leave the database server package at the
suggests level?

Anyways, so what do you need to do? If your package depends on
dbconfig-common (dd-list attached), the only thing you need to do² is
revisit your dependencies/recommends/suggest. If you properly followed
the dbconfig-common documentation, you have a dependency on
dbconfig-common and at least a recommends (but probably a depends) on
the command-line client(s) for the database type(s) you support. You
should replace these with a depends on dbconfig-<dbtype> |
dbconfig-no-thanks. Two examples.

a) your package supports PostgreSQL, your dependencies now are
Depends: dbconfig-pgsql | dbconfig-no-thanks

b) your package supports sqlite3 or sqlite, your dependencies now are
Depends: dbconfig-sqlite3 | dbconfig-sqlite | dbconfig-no-thanks

For those of you that backport their packages via the Debian backports
achive, I will provide a backport of dbconfig-common once version 2.0.0
reaches testing.

Please speak up now if you think this is a ridiculous idea, if you have
suggestions on improvements, if you have questions or otherwise.

If people want to see how it all works for discussion, I am open to
upload to experimental.

And as always, please report bugs as you find them including wish bugs.

Paul

¹ https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=353617
² Be aware, if your package supports multiple databases, you still need
to set the dbc_dbtypes variable in you config script.
Alexander Wirt <formo...@debian.org>
   icinga (U)
   icinga-web (U)
   icinga2 (U)

Andreas Henriksson <andr...@fatal.se>
   bandwidthd

Andreas Tille <andr...@an3as.eu>
   manila (U)

Antonio Terceiro <terce...@debian.org>
   redmine (U)

Bareos Packaging Team <pkg-bareos-de...@lists.alioth.debian.org>
   bareos

Cacti Maintainer <pkg-cacti-ma...@lists.alioth.debian.org>
   cacti
   cacti-spine

Carsten Leonhardt <l...@debian.org>
   bacula (U)

Christian Hofstaedtler <z...@debian.org>
   pdns (U)

Corey Bryant <corey.bry...@canonical.com>
   murano (U)

Craig Small <csm...@debian.org>
   jffnms

Dain Nilsson <d...@yubico.com>
   yubikey-ksm (U)
   yubikey-val (U)

Daniel Pocock <dan...@pocock.com.au>
   yubikey-ksm (U)
   yubikey-val (U)

Dario Minnucci <mid...@debian.org>
   dotclear

David Gil <d...@telefonica.net>
   phpgacl

David Prévot <taf...@debian.org>
   phpbb3 (U)

Debian Authentication Maintainers <pkg-auth-maintain...@lists.alioth.debian.org>
   yubikey-ksm
   yubikey-val

Debian Bacula Team <pkg-bacula-de...@lists.alioth.debian.org>
   bacula

Debian Nagios Maintainer Group <pkg-nagios-de...@lists.alioth.debian.org>
   icinga
   icinga-web
   icinga2
   ndoutils (U)

Debian PowerDNS Maintainers <pkg-pdns-maintain...@lists.alioth.debian.org>
   pdns

Debian QA Group <packa...@qa.debian.org>
   semanticscuttle
   webissues-server

Debian Request Tracker Group 
<pkg-request-tracker-maintain...@lists.alioth.debian.org>
   request-tracker4

Debian Roundcube Maintainers <pkg-roundcube-maintain...@lists.alioth.debian.org>
   roundcube

Debian Ruby Extras Maintainers 
<pkg-ruby-extras-maintain...@lists.alioth.debian.org>
   redmine (U)

Debian Science Maintainers <debian-science-maintain...@lists.alioth.debian.org>
   tango

Debian Sympa team <pkg-sympa-de...@lists.alioth.debian.org>
   sympa

Dominic Hargreaves <d...@earth.li>
   request-tracker4 (U)

Emmanuel Bouthenot <kol...@debian.org>
   sympa (U)

Evgeni Golov <evg...@debian.org>
   bareos (U)
   bley

Francesco Paolo Lovergine <fran...@debian.org>
   openacs (U)

Francisco Manuel Garcia Claramonte <franci...@debian.org>
   letodms

Gaudenz Steinlin <gaud...@debian.org>
   postfixadmin (U)

Gonéri Le Bouder <gon...@rulezlan.org>
   glpi (U)

Guilhem Moulin <guil...@guilhem.org>
   roundcube (U)

Gunnar Wolf <gw...@debian.org>
   drupal7

gustavo panizzo <g...@zumbi.com.ar>
   nova (U)

Gustavo Panizzo <g...@zumbi.com.ar>
   neutron (U)

Hector Romojaro <hector.romoj...@gmail.com>
   openacs

Hendrik Frenzel <hfren...@scunc.net>
   ndoutils

Ivan Udovichenko <iudoviche...@mirantis.com>
   murano (U)

James Bennet <git...@james-bennet.com>
   pybit (U)

Jan Wagner <w...@cyconet.org>
   icinga (U)
   icinga-web (U)
   icinga2 (U)

Jan-Pascal van Best <janpas...@vanbest.org>
   spotweb

Javier Fernandez-Sanguino Pen~a <j...@computer.org>
   acidbase (U)
   phpgacl (U)

Jeremy T. Bouse <jbo...@debian.org>
   acidbase

Joerg Steffens <joerg.steff...@bareos.com>
   bareos (U)

Jonas Smedegaard <d...@jones.dk>
   sympa (U)

Joost van Baal-Ilić <joos...@debian.org>
   moodle (U)

Jérémy Lal <kapo...@melix.org>
   redmine

Klas Lindfors <k...@yubico.com>
   yubikey-ksm (U)
   yubikey-val (U)

Luigi Gangitano <lu...@debian.org>
   drupal7 (U)

Mahyuddin Susanto <udi...@ubuntu.com>
   cacti (U)
   cacti-spine (U)

Malihe Asemani <ml.asem...@gmail.com>
   manila (U)

Marc Haber <mh+debian-packa...@zugschlus.de>
   pdns (U)

Marcelo Jorge Vieira (metal) <me...@debian.org>
   scuttle
   tt-rss (U)

Markus Frosch <lazyfro...@debian.org>
   icinga-web (U)
   icinga2 (U)

Matthijs Möhlmann <matth...@cacholong.nl>
   pdns (U)

Michael Biebl <bi...@debian.org>
   rsyslog

Michal Čihař <ni...@debian.org>
   phpmyadmin (U)
   ukolovnik

Mickael Profeta <prof...@debian.org>
   prelude-manager (U)

Moodle Packaging Team <pkg-moodle-maintain...@lists.alioth.debian.org>
   moodle

Neil Williams <codeh...@debian.org>
   pybit

Nick Davidson <nicholas.david...@gmail.com>
   pybit (U)

Nicolas Roudaire <nikro...@gmail.com>
   dotclear (U)

Niko Tyni <nt...@debian.org>
   request-tracker4 (U)

Norman Messtorff <nor...@normes.org>
   postfixadmin

Patrick Matthäi <pmatth...@debian.org>
   otrs2
   pnopaste

Paul Gevers <elb...@debian.org>
   cacti (U)
   cacti-spine (U)

Penny Leach <pe...@mjollnir.org>
   moodle (U)

phpBB packaging team <phpb...@lists.a-eskwadraat.nl>
   phpbb3

Picca Frédéric-Emmanuel <pi...@debian.org>
   tango (U)

Pierre Chifflier <pol...@debian.org>
   glpi
   prelude-manager
   prewikka

PKG OpenStack <openstack-de...@lists.alioth.debian.org>
   barbican
   cinder
   designate
   glance
   gnocchi
   heat
   ironic
   keystone
   magnum
   manila
   mistral
   murano
   neutron
   nova
   openstack-meta-packages
   openstack-trove
   rally
   sahara
   tuskar
   zaqar

Radu Spineanu <r...@debian.org>
   simba

Richard Sellam <richard.sel...@orvidia.fr>
   phabricator

Sandro Knauß <b...@sandroknauss.de>
   roundcube (U)

Sean Finney <sean...@debian.org>
   cacti-spine (U)

Sebastian Reichel <s...@debian.org>
   tt-rss

Simon Haswell <maxcad...@hotmail.co.uk>
   pybit (U)

Simon Josefsson <si...@josefsson.org>
   yubikey-ksm (U)
   yubikey-val (U)

Stefan Hornburg (Racke) <ra...@linuxia.de>
   interchange
   sympa (U)

Sylvestre Ledru <sylves...@debian.org>
   phabricator (U)

Thijs Kinkhorst <th...@debian.org>
   phpmyadmin

Thomas Goirand <z...@debian.org>
   barbican (U)
   cinder (U)
   designate (U)
   glance (U)
   gnocchi (U)
   heat (U)
   ironic (U)
   keystone (U)
   magnum (U)
   manila (U)
   mistral (U)
   murano (U)
   neutron (U)
   nova (U)
   openstack-meta-packages (U)
   openstack-trove (U)
   rally (U)
   sahara (U)
   tuskar (U)
   zaqar (U)

Thomas Mueller <tho...@chaschperli.ch>
   otrs2 (U)

Tomasz Muras <nexor1...@gmail.com>
   moodle (U)

Ulises Vitulli <der...@debian.org>
   auth2db

Vincent Bernat <ber...@debian.org>
   pinba-engine-mysql
   roundcube (U)

Xavier Oswald <xosw...@debian.org>
   moodle (U)

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to