* Emilien Klein: " Re: Upload GNU Health 2.0 to experimental" (Sun, 15 Sep 2013 23:32:14 +0200):
> So what happens here is:
> gnuhealth-server depends on tryton-server
> tryton-server recommends on postgres
>
> When installing the gnuhealth-server and all its dependencies, the packages
> get configured in this order:
> tryton-server
> gnuhealth-server
> postgres
>
> Since gnuhealth-server is using dbconfig-common to configure the database,
> it needs postgres configured and running. On my development box, that was
> the case (since dpkg -i doesn't pull in the dependencies, I had always
> installed those manually beforehand). But when installing on a system that
> doesn't have postgres installed, the incorrect order results in gnuhealth
> not being configured properly.
>
> I had wrongly assume that tryton-server would depend on postgres. But since
> that package requires manual configuration from it's user, they're actually
> fine with only suggesting it (when installing with apt-get/aptitude, by
> default the dependencies are pulled in), so for most users of the
> tryton-server package, suggesting has virtually the same end effect as
> depending:
As you say above: postgresql is in Recommends, not in Suggests. tryton-server
is multi-database capable with a strong preference for postgresql. So Recommends
is the correct place for postgresl /nad will be pulled in default
installations).
> postgres will be configured on the system before the user hand-edits the
> configuration files.
I did not have yet a look at the current package, but I see some potential
conflicts here. I think you should never interfere with the package
configuration on the system, be it from the package installation, be it by the
sysadmin. As a solution I would propose to create a completely separate
postgresql cluster for gnuhealth, for which you are free to configure
everything like you want (thus avoiding problems with systems running
postgresql before and besides gnuhealth).
HTH,
Mathias
--
Mathias Behrle
MBSolutions
Gilgenmatten 10 A
D-79114 Freiburg
Tel: +49(761)471023
Fax: +49(761)4770816
http://m9s.biz
UStIdNr: DE 142009020
PGP/GnuPG key availabable from any keyserver, ID: 0x8405BBF6
signature.asc
Description: PGP signature

