[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Specifying alternative sets of dependencies

Hi folks!

I'm currently developing a web application written in python and want
to package it (not yet for official upload, but packages are needed).

The application itself works both with apache and apache2, but there
are different mod_python packages for each web server (of course). So
currently the dependencies are:

unconditional dependencies: python-pygresql

dependencies when using Apache 1:
libapache-mod-python,  apache | apache-ssl | apache-perl

dependencies when using Apache2:
libapache2-mod-python,  apache2-mpm-prefork | apache2

Is it possible somehow to specify alternative sets of dependencies?
Such as 

  Depends: (a1, a2) | (b1, b2) 


If that is not possible or does not make sense, I see the following

- create two packages, one for each webserver: webapp-apache1.3 and
  webapp-apache2; but apart from the dependencies the packages are
  exactly the same, so this is highly redundant

- make libapache-mod-python depend on apache[-ssl|-perl] and
  libapache2-mod-python depend on apache2-mpm-* (currently it only
  depends on apache2-common).

A similar case is libapache2-mod-php4, which depends on
apache2-mpm-prefork, so PHP web applications don't have this problem
when using apache2; however, they have it with apache1.3 since there
is no such thing like apache-php4 at all. I'm maintaining the PHP web
application fibusql and would like to make it apache2-compatible, too.

Thanks in advance for any hints!


Martin Pitt                 Debian GNU/Linux Developer
martin@piware.de                      mpitt@debian.org
http://www.piware.de             http://www.debian.org

Reply to: